Files
fresh-home/automations/rooms/garage/garage_lights_to_off.yaml
T
2025-02-10 15:08:18 -05:00

46 lines
1.1 KiB
YAML

alias: Garage Lights to Off
id: automation_garage_lights_to_off
mode: restart
trigger:
- platform: state
entity_id: input_boolean.garage_occupied
to: 'off'
- platform: state
entity_id:
- binary_sensor.inner_garage_door
- binary_sensor.outer_garage_door
- binary_sensor.garage_door
- binary_sensor.outer_garage_door_contact
- binary_sensor.inner_garage_door_contact
to: 'off'
for: '00:10:00'
- platform: state
entity_id: binary_sensor.garage_naturally_lit
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: input_boolean.lighting_automations
state: 'on'
- condition: state
entity_id: light.garage_overhead
state: 'on'
- condition: state
entity_id:
# Disabled these top two while I work on fixing the door sensors
# - binary_sensor.inner_garage_door
# - binary_sensor.outer_garage_door
#- binary_sensor.garage_door
- input_boolean.garage_occupied
state: 'off'
action:
- service: light.turn_off
data:
entity_id: light.garage_overhead