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

@@ -18,9 +18,13 @@
- switch.foyer_outlet
- service: light.turn_on
entity_id:
- light.outdoor_bathroom
- group.living_room_accents
#- delay: '00:{{ (range(1, 20)|random|int) }}:00'
- 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:
@@ -28,25 +32,9 @@
{%- macro dark_outside() -%}
{{ [
"It is pretty dark outside. I will turn on the outside lights now.",
"It's a little past Sunset. Time to turn on the outside lights. I'm on it.",
"I'll switch on the outside lights. It's getting dark outside.",
"Time to turn on the front lights. I'll take care of it."
"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() }}"
######################################################################
- alias: 'Sunset Stuff off'
trigger:
- platform: sun
event: sunrise
offset: '-01:00: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

@@ -54,6 +54,7 @@ ifttt:
logbook:
exclude:
entities:
- automation.detect_lights_and_adjust_the_brightness_when_turned_on_based_on_time
- sensor.since_last_boot
- sensor.since_last_boot_templated
- sensor.small_garage_status

View File

@@ -8,6 +8,7 @@ Weather:
- sensor.dark_sky_minutely_summary
# - sensor.dark_sky_nearest_storm_distance
- sensor.dark_sky_precip_intensity
- sensor.dark_sky_wind_speed
- sensor.dark_sky_humidity
- sensor.dark_sky_temperature
- sensor.moon

View File

@@ -24,8 +24,18 @@ front_house_motion:
value1: 'Motion has been detected by the front door.'
- service: scene.turn_on
entity_id: scene.front_full_brightness
- service: light.turn_on
data:
entity_id:
- light.outdoor_bathroom
brightness: 255
- delay: '00:{{ (range(5, 20)|random|int) }}:00'
- service: light.turn_off
entity_id: group.outdoor_front_lights
- service: light.turn_on
data:
entity_id:
- light.outdoor_bathroom
brightness: 15
- delay: '00:00:10'
- service: script.monthly_color_scene