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

pull/81/head
CCOSTAN 9 years ago
parent a7e99a62fe
commit 566624d0d8

@ -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

@ -18,9 +18,13 @@
- switch.foyer_outlet - switch.foyer_outlet
- service: light.turn_on - service: light.turn_on
entity_id: entity_id:
- light.outdoor_bathroom
- group.living_room_accents - 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.monthly_color_scene
- service: script.Voice_notify - service: script.Voice_notify
data_template: data_template:
@ -28,25 +32,9 @@
{%- macro dark_outside() -%} {%- macro dark_outside() -%}
{{ [ {{ [
"It is pretty dark outside. I will turn on the outside lights now.", "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.", "It is 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.", "I will switch on the outside lights. It is getting dark outside.",
"Time to turn on the front lights. I'll take care of it." "Time to turn on the front lights. I will take care of it."
] | random }} ] | random }}
{%- endmacro -%} {%- endmacro -%}
"{{ dark_outside() }}" "{{ 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

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

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

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

Loading…
Cancel
Save

Powered by TurnKey Linux.