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:
|
2017-02-02 02:15:33 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: sun.sun
|
|
|
|
state: 'below_horizon'
|
2017-01-06 01:37:28 +00:00
|
|
|
|
2016-12-21 21:14:06 +00:00
|
|
|
action:
|
2017-01-20 19:42:12 +00:00
|
|
|
- service: switch.turn_on
|
|
|
|
entity_id:
|
|
|
|
- switch.front_door_outlet
|
2016-12-21 21:14:06 +00:00
|
|
|
- service: light.turn_on
|
|
|
|
entity_id:
|
|
|
|
- light.outdoor_bathroom
|
|
|
|
- light.tv_light
|
|
|
|
- light.tv_stand_light
|
2017-01-20 19:42:12 +00:00
|
|
|
- service: script.holiday_switches_on
|
|
|
|
- delay: '00:{{ (range(1, 59)|random|int) }}:00'
|
|
|
|
- service: script.monthly_front_house_scene
|
2016-12-21 21:14:06 +00:00
|
|
|
######################################################################
|
|
|
|
|
|
|
|
- alias: 'Sunset Stuff off'
|
|
|
|
trigger:
|
|
|
|
- platform: sun
|
|
|
|
event: sunrise
|
2017-01-20 19:42:12 +00:00
|
|
|
offset: '-01:00:00'
|
2016-12-21 21:14:06 +00:00
|
|
|
|
|
|
|
action:
|
|
|
|
- service: light.turn_off
|
2017-01-25 16:29:28 +00:00
|
|
|
entity_id:
|
|
|
|
- group.all_lights
|
|
|
|
- light.outfoor_front
|
|
|
|
- group.outdoor_lights
|
2016-12-21 21:14:06 +00:00
|
|
|
- service: script.interior_off
|
2017-01-20 19:47:54 +00:00
|
|
|
|
2016-12-21 21:14:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-20 20:02:58 +00:00
|
|
|
|