Skip to content

Commit

Permalink
Use a time trigger to turn on festive lights
Browse files Browse the repository at this point in the history
  • Loading branch information
golles committed Dec 24, 2024
1 parent add22e5 commit 7c03fea
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions automations/tuin/achtertuin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
mode: single
max_exceeded: silent
triggers:
- trigger: numeric_state
entity_id: sensor.achtertuin_sensor_1_licht
below: 60
for:
minutes: 5
- trigger: time
at: "15:30:00"
conditions:
- condition: template
value_template: > # All days in December after Sinterklaas.
- alias: All days in December after Sinterklaas.
condition: template
value_template: >
{{ now().month == 12 and now().day >= 6 }}
actions:
- alias: Turn on the light
Expand Down

0 comments on commit 7c03fea

Please sign in to comment.