2016-12-21 21:43:52 +00:00
|
|
|
###################################
|
2016-12-21 21:14:06 +00:00
|
|
|
## Sunrise and Sunset stuff
|
|
|
|
###################################
|
|
|
|
|
|
|
|
- alias: 'Sunset Stuff on'
|
|
|
|
trigger:
|
|
|
|
- platform: sun
|
|
|
|
event: sunset
|
|
|
|
|
|
|
|
action:
|
2017-01-06 00:39:14 +00:00
|
|
|
- delay: '00:{{ (range(1, 59)|random|int) }}:00'
|
2016-12-21 21:14:06 +00:00
|
|
|
- service: script.monthly_front_house_scene
|
|
|
|
- service: script.holiday_switches_on
|
2017-01-06 00:39:14 +00:00
|
|
|
- delay: '00:{{ (range(1, 59)|random|int) }}:00'
|
2016-12-21 21:14:06 +00:00
|
|
|
- service: light.turn_on
|
|
|
|
entity_id:
|
|
|
|
- light.outdoor_bathroom
|
|
|
|
- light.tv_light
|
|
|
|
- light.tv_stand_light
|
|
|
|
data:
|
|
|
|
transition: 1200
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
- alias: 'Sunset Stuff off'
|
|
|
|
trigger:
|
|
|
|
- platform: sun
|
|
|
|
event: sunrise
|
2017-01-06 01:13:40 +00:00
|
|
|
offset: '-{{ (range(1, 3)|random|int) }}:{{ (range(1, 59)|random|int) }}:00'
|
2016-12-21 21:14:06 +00:00
|
|
|
|
|
|
|
action:
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: group.all_lights
|
|
|
|
- service: script.interior_off
|
|
|
|
- delay: '00:01:00'
|
|
|
|
- service: script.switch_turn_off_all
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-20 20:02:58 +00:00
|
|
|
|