parent
feb025480d
commit
f5dbe7e8f2
@ -1,27 +1,27 @@
|
|||||||
###################################
|
###################################
|
||||||
## Holiday Lights on/off with IFTTT/Alexa support
|
## Holiday Lights on/off with IFTTT/Alexa support
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
- alias: 'Holiday Stuff on'
|
- alias: 'Holiday Stuff on'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: sun
|
- platform: sun
|
||||||
event: sunset
|
event: sunset
|
||||||
- platform: event
|
- platform: event
|
||||||
event_type: holiday_lights_on
|
event_type: holiday_lights_on
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.holiday_switches_on
|
- service: script.holiday_switches_on
|
||||||
|
|
||||||
|
|
||||||
- alias: 'Holiday Stuff off'
|
- alias: 'Holiday Stuff off'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: sun
|
- platform: sun
|
||||||
event: sunrise
|
event: sunrise
|
||||||
offset: '-03:30:00'
|
offset: '-0{{ (range(1, 3)|random|int) }}:{{ (range(1, 59)|random|int) }}:00'
|
||||||
- platform: event
|
- platform: event
|
||||||
event_type: holiday_lights_off
|
event_type: holiday_lights_off
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.switch_turn_off_all
|
- service: script.switch_turn_off_all
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in new issue