HueLight is now HueGroup and uses a scene to turn the light on, the contact sensor will also not override the current light state if it is already on
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-18 04:08:15 +02:00
parent 044c38ba86
commit 9628b8a94b
7 changed files with 77 additions and 38 deletions

View File

@@ -93,15 +93,16 @@ room = "Workbench"
topic = "zigbee2mqtt/workbench/outlet"
[device.hallway_light]
type = "HueLight"
[device.hallway_lights]
type = "HueGroup"
ip = "10.0.0.146"
login = "${HUE_TOKEN}"
light_id = 16
group_id = 81
scene_id = "3qWKxGVadXFFG4o"
timer_id = 1
[device.hallway_frontdoor]
type = "ContactSensor"
topic = "zigbee2mqtt/hallway/frontdoor"
presence = { topic = "automation/presence/contact/frontdoor", timeout = 900 }
trigger = { devices = ["hallway_light"], timeout = 60 }
trigger = { devices = ["hallway_lights"], timeout = 60 }

View File

@@ -95,15 +95,16 @@ room = "Workbench"
topic = "zigbee2mqtt/workbench/outlet"
[device.hallway_light]
type = "HueLight"
[device.hallway_lights]
type = "HueGroup"
ip = "10.0.0.146"
login = "${HUE_TOKEN}"
light_id = 16
group_id = 81
scene_id = "3qWKxGVadXFFG4o"
timer_id = 1
[device.hallway_frontdoor]
type = "ContactSensor"
topic = "zigbee2mqtt/hallway/frontdoor"
presence = { topic = "automation_dev/presence/contact/frontdoor", timeout = 10 }
trigger = { devices = ["hallway_light"], timeout = 10 }
trigger = { devices = ["hallway_lights"], timeout = 10 }