The light in the bathroom will now turn off automatically after 45 min
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-13 23:20:07 +02:00
parent 76a5a39ca9
commit 76b75b0cfb
4 changed files with 26 additions and 8 deletions

View File

@@ -25,6 +25,7 @@ pub enum OutletType {
Outlet,
Kettle,
Charger,
Light,
}
#[derive(Debug, Clone, Deserialize)]
@@ -179,6 +180,7 @@ impl GoogleHomeDevice for IkeaOutlet {
match self.outlet_type {
OutletType::Outlet => Type::Outlet,
OutletType::Kettle => Type::Kettle,
OutletType::Light => Type::Light, // Find a better device type for this, ideally would like to use charger, but that needs more work
OutletType::Charger => Type::Outlet, // Find a better device type for this, ideally would like to use charger, but that needs more work
}
}