Config is passed directly to IkeaOutlet and now supports turning off automatically after a specified amount of time

This commit is contained in:
2022-12-27 22:26:42 +01:00
parent f735216dc4
commit fb455b4e4c
5 changed files with 76 additions and 34 deletions

View File

@@ -38,7 +38,7 @@ pub struct ZigbeeDeviceConfig {
#[derive(Debug, Deserialize)]
pub struct KettleConfig {
// @TODO Add options for the kettle
pub timeout: Option<u64>, // Timeout in seconds
}
#[derive(Debug, Deserialize)]