2016-12-21 21:43:52 +00:00
|
|
|
###################################
|
2016-12-21 21:14:06 +00:00
|
|
|
## Sunrise and Sunset stuff
|
|
|
|
###################################
|
|
|
|
|
2017-02-15 18:36:45 +00:00
|
|
|
- alias: 'Sunset Stuff on'
|
2016-12-21 21:14:06 +00:00
|
|
|
trigger:
|
2017-02-02 02:15:33 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: sun.sun
|
|
|
|
state: 'below_horizon'
|
2017-02-02 02:42:03 +00:00
|
|
|
from: 'above_horizon'
|
2017-02-15 18:36:45 +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
|
2017-02-07 03:50:25 +00:00
|
|
|
- switch.living_room_outlet
|
|
|
|
- switch.den_outlet
|
|
|
|
- switch.foyer_outlet
|
2016-12-21 21:14:06 +00:00
|
|
|
- service: light.turn_on
|
2017-02-15 18:36:45 +00:00
|
|
|
entity_id:
|
2017-02-03 00:05:26 +00:00
|
|
|
- group.living_room_accents
|
2017-02-23 04:36:34 +00:00
|
|
|
- service: light.turn_on
|
|
|
|
data:
|
|
|
|
entity_id:
|
|
|
|
- light.outdoor_bathroom
|
|
|
|
brightness: 15
|
|
|
|
- delay: '00:{{ (range(1, 20)|random|int) }}:00'
|
2017-02-05 04:45:46 +00:00
|
|
|
- service: script.monthly_color_scene
|
2017-02-03 21:34:35 +00:00
|
|
|
- service: script.Voice_notify
|
2017-02-07 03:50:25 +00:00
|
|
|
data_template:
|
|
|
|
value1: >
|
2017-02-15 18:36:45 +00:00
|
|
|
{%- macro dark_outside() -%}
|
|
|
|
{{ [
|
|
|
|
"It is pretty dark outside. I will turn on the outside lights now.",
|
2017-02-23 04:36:34 +00:00
|
|
|
"It is a little past Sunset. Time to turn on the outside lights. I'm on it.",
|
|
|
|
"I will switch on the outside lights. It is getting dark outside.",
|
|
|
|
"Time to turn on the front lights. I will take care of it."
|
2017-02-15 18:36:45 +00:00
|
|
|
] | random }}
|
|
|
|
{%- endmacro -%}
|
|
|
|
"{{ dark_outside() }}"
|