Skip to content

Commit

Permalink
feat: turn off hallway lights if turned on manually
Browse files Browse the repository at this point in the history
  • Loading branch information
TribuneX committed Apr 5, 2024
1 parent 8f2e6cf commit 00a841a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions automation/lights/hallway_lights.yaml
Expand Up @@ -38,3 +38,22 @@
motion_sensor: binary_sensor.motion_eingang
target_light:
entity_id: light.eingang

- alias: Turn off hallway & eingang lights if manually turned on
initial_state: "on"
trigger:
- platform: state
entity_id:
- light.eingang
- light.gang
condition:
- condition: state
entity_id: binary_sensor.dark_outside
state: "off"
action:
- delay:
minutes: 2
- service: light.turn_off
entity_id:
- light.eingang
- light.gang

0 comments on commit 00a841a

Please sign in to comment.