Skip to content

Commit

Permalink
Added main light as a condition before using light as a notification …
Browse files Browse the repository at this point in the history
…when other bedroom doors are opened.
  • Loading branch information
dannytsang committed Jun 4, 2024
1 parent a705963 commit 3c5ce1e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/rooms/bedroom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,13 @@ automation:
from: "off"
to: "on"
condition:
- condition: state
entity_id: light.bedroom_lamps
state: "on"
- or:
- condition: state
entity_id: light.bedroom_lamps
state: "on"
- condition: state
entity_id: light.bedroom_main_light
state: "on"
- condition: time
after: input_datetime.childrens_bed_time
- not:
Expand Down

0 comments on commit 3c5ce1e

Please sign in to comment.