Setting up Halloween lights

This commit is contained in:
CCOSTAN
2016-10-19 17:38:48 +00:00
parent 0f4041c31d
commit 5fdc5762da
8 changed files with 42 additions and 5 deletions

23
automation/holiday.yaml Executable file
View File

@@ -0,0 +1,23 @@
- alias: 'Holiday Stuff on'
trigger:
- platform: sun
event: sunset
- platform: event
event_type: halloween_lights_on
action:
- service: switch.turn_on
entity_id: switch.halloween_lights_den
- alias: 'Holiday Stuff off'
trigger:
- platform: sun
event: sunrise
offset: '-03:00:00'
- platform: event
event_type: halloween_lights_off
action:
- service: switch.turn_on
entity_id: switch.halloween_lights_den