splits the lights into a dedicated yaml

This commit is contained in:
2026-04-17 13:45:50 +02:00
parent a317b07c19
commit 30397fe9ef
3 changed files with 23 additions and 22 deletions

26
apps/yaml/lights.yaml Normal file
View File

@@ -0,0 +1,26 @@
light_corridor:
module: smartlight
class: SmartLight
entity: light.corridor
smart_conditions:
trigger_conditions: sensor.corridor_last_motion < 5
blocking_conditions: sensor.corridor_motion_light_level > 10 and not self
light_hallway:
module: smartlight
class: SmartLight
entity: light.hallway
smart_conditions:
trigger_conditions: sensor.hallway_last_motion < 5
blocking_conditions: sensor.hallway_motion_light_level > 10 and not self
light_restroom:
module: smartlight
class: SmartLight
entity: light.restroom
smart_conditions:
trigger_conditions: sensor.restroom_last_motion < 5
blocking_conditions: sensor.restroom_motion_light_level > 10 and not self