The light in the bathroom will now turn off automatically after 45 min
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
76a5a39ca9
commit
76b75b0cfb
|
@ -35,6 +35,14 @@ room = "Kitchen"
|
|||
topic = "zigbee2mqtt/kitchen/kettle"
|
||||
timeout = 300
|
||||
|
||||
[devices.bathroom_light]
|
||||
type = "IkeaOutlet"
|
||||
outlet_type = "Light"
|
||||
name = "Light"
|
||||
room = "Bathroom"
|
||||
topic = "zigbee2mqtt/bathroom/light"
|
||||
timeout = 2700
|
||||
|
||||
[devices.workbench_charger]
|
||||
type = "IkeaOutlet"
|
||||
outlet_type = "Charger"
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
base_url = "https://login.huizinga.dev/api/oidc"
|
||||
|
||||
[mqtt]
|
||||
host="olympus.lan.huizinga.dev"
|
||||
port=8883
|
||||
client_name="automation-zeus"
|
||||
username="mqtt"
|
||||
password="${MQTT_PASSWORD}"
|
||||
tls=true
|
||||
host = "olympus.lan.huizinga.dev"
|
||||
port = 8883
|
||||
client_name = "automation-zeus"
|
||||
username = "mqtt"
|
||||
password = "${MQTT_PASSWORD}"
|
||||
tls = true
|
||||
|
||||
[ntfy]
|
||||
topic = "${NTFY_TOPIC}"
|
||||
|
@ -36,6 +36,14 @@ room = "Kitchen"
|
|||
topic = "zigbee2mqtt/kitchen/kettle"
|
||||
timeout = 5
|
||||
|
||||
[devices.bathroom_light]
|
||||
type = "IkeaOutlet"
|
||||
outlet_type = "Light"
|
||||
name = "Bathroom light"
|
||||
room = "Bathroom"
|
||||
topic = "zigbee2mqtt/bathroom/light"
|
||||
timeout = 5
|
||||
|
||||
[devices.workbench_charger]
|
||||
type = "IkeaOutlet"
|
||||
outlet_type = "Charger"
|
||||
|
|
|
@ -6,8 +6,8 @@ pub enum Type {
|
|||
Kettle,
|
||||
#[serde(rename = "action.devices.types.OUTLET")]
|
||||
Outlet,
|
||||
#[serde(rename = "action.devices.types.GRILL")]
|
||||
Grill,
|
||||
#[serde(rename = "action.devices.types.LIGHT")]
|
||||
Light,
|
||||
#[serde(rename = "action.devices.types.SCENE")]
|
||||
Scene,
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user