Testing configuration at /home/hass/.homeassistant

This commit is contained in:
CCOSTAN
2017-01-06 01:37:28 +00:00
parent feb025480d
commit f5dbe7e8f2
2 changed files with 30 additions and 29 deletions

View File

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