Skip to content

Commit

Permalink
Add KE100 child support in H100 example
Browse files Browse the repository at this point in the history
  • Loading branch information
pwoerndle committed Nov 23, 2023
1 parent cae27f1 commit 410f6f8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tapo/examples/tapo_h100.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
temperature_humidity_records.records.first()
);
}
ChildDeviceResult::KE100(device) => {
info!(
"Found KE100 child device with nickname: {}, id: {}, current temperature: {} {:?} and target temperature: {} {:?}.",
device.nickname,
device.device_id,
device.current_temperature,
device.temperature_unit,
device.target_temperature,
device.temperature_unit,
);
}
_ => {
info!("Found unsupported device.")
}
Expand Down

0 comments on commit 410f6f8

Please sign in to comment.