Files
ad_trident/apps/rooms/corridor.yaml

54 lines
1.3 KiB
YAML

light_corridor:
module: smartlight
class: SmartLight
entity: light.corridor
smart_conditions:
trigger_conditions: sensor.corridor_last_motion < 3
blocking_conditions: sensor.corridor_motion_light_level > 10 and not self
light_brightness_pct:
1: binary_sensor.is_everybody_sleeping
25: binary_sensor.day_interval_night
100: True
light_hallway:
module: smartlight
class: SmartLight
entity: light.hallway
smart_conditions:
trigger_conditions: sensor.hallway_last_motion < 3
blocking_conditions: sensor.hallway_motion_light_level > 10 and not self
light_brightness_pct:
1: binary_sensor.is_everybody_sleeping
25: binary_sensor.day_interval_night
100: True
light_restroom:
module: smartlight
class: SmartLight
entity: light.restroom
smart_conditions:
trigger_conditions: sensor.restroom_last_motion < 3
blocking_conditions: sensor.restroom_motion_light_level > 10 and not self
light_brightness_pct:
1: binary_sensor.is_everybody_sleeping
25: binary_sensor.day_interval_night
100: True
light_porche:
module: smartlight
class: SmartLight
entity: light.porche
smart_conditions:
trigger_conditions: sensor.porche_last_motion < 3
blocking_conditions: sensor.porche_motion_light_level > 10 and not self