2016-10-19 17:47:13 +00:00
|
|
|
###################################
|
|
|
|
## Holiday Lights on/off with IFTTT/Alexa support
|
|
|
|
###################################
|
|
|
|
|
2016-10-19 17:38:48 +00:00
|
|
|
- alias: 'Holiday Stuff on'
|
|
|
|
trigger:
|
|
|
|
- platform: sun
|
|
|
|
event: sunset
|
|
|
|
- platform: event
|
2016-12-06 23:06:03 +00:00
|
|
|
event_type: holiday_lights_on
|
2016-10-19 17:38:48 +00:00
|
|
|
|
|
|
|
action:
|
|
|
|
- service: switch.turn_on
|
2016-12-13 02:32:14 +00:00
|
|
|
entity_id: switch.den_outlet
|
2016-10-20 21:39:40 +00:00
|
|
|
- delay: 00:00:30
|
|
|
|
- service: switch.turn_on
|
2016-12-13 02:32:14 +00:00
|
|
|
entity_id: switch.living_room_outlet
|
2016-12-13 23:05:47 +00:00
|
|
|
- service: switch.turn_on
|
|
|
|
entity_id: switch.dining_room_outlet
|
|
|
|
- delay: 00:00:30
|
2016-10-20 21:39:40 +00:00
|
|
|
|
2016-10-19 17:38:48 +00:00
|
|
|
- alias: 'Holiday Stuff off'
|
|
|
|
trigger:
|
|
|
|
- platform: sun
|
|
|
|
event: sunrise
|
2016-10-20 21:39:40 +00:00
|
|
|
offset: '-03:30:00'
|
2016-10-19 17:38:48 +00:00
|
|
|
- platform: event
|
2016-12-06 23:06:03 +00:00
|
|
|
event_type: holiday_lights_off
|
2016-10-19 17:38:48 +00:00
|
|
|
|
|
|
|
action:
|
2016-12-06 23:06:03 +00:00
|
|
|
- service: script.switch_turn_off_all
|
2016-11-05 23:35:54 +00:00
|
|
|
|
2016-10-19 17:38:48 +00:00
|
|
|
|