Closs #69 - Back lights part of motion group. dim light at night.

This commit is contained in:
CCOSTAN
2017-02-23 04:36:34 +00:00
parent a7e99a62fe
commit 566624d0d8
5 changed files with 39 additions and 21 deletions

View File

@@ -0,0 +1,18 @@
###################################
## Sunrise and Sunset stuff
###################################
- alias: 'Sunset Stuff off'
trigger:
- platform: sun
event: sunrise
offset: '-01:30:00'
action:
- service: light.turn_off
entity_id:
- group.exterior_lights
- group.outdoor_front_lights
- group.outdoor_pool_lights
- group.all_lights
- service: script.interior_off

View File

@@ -0,0 +1,40 @@
###################################
## Sunrise and Sunset stuff
###################################
- alias: 'Sunset Stuff on'
trigger:
- platform: state
entity_id: sun.sun
state: 'below_horizon'
from: 'above_horizon'
action:
- service: switch.turn_on
entity_id:
- switch.front_door_outlet
- switch.living_room_outlet
- switch.den_outlet
- switch.foyer_outlet
- service: light.turn_on
entity_id:
- group.living_room_accents
- service: light.turn_on
data:
entity_id:
- light.outdoor_bathroom
brightness: 15
- delay: '00:{{ (range(1, 20)|random|int) }}:00'
- service: script.monthly_color_scene
- service: script.Voice_notify
data_template:
value1: >
{%- macro dark_outside() -%}
{{ [
"It is pretty dark outside. I will turn on the outside lights now.",
"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."
] | random }}
{%- endmacro -%}
"{{ dark_outside() }}"