Closes #418 - Backyard light dimmed when we are home and Bright when we are not home.

This commit is contained in:
ccostan
2018-10-10 21:38:18 -04:00
parent 37342edfdf
commit 27ab6dd86a
4 changed files with 14 additions and 4 deletions

View File

@@ -47,13 +47,18 @@
- service: homeassistant.turn_on
entity_id:
- switch.front_landscaping
- light.bedroom
- service: script.monthly_color_scene
- service: light.turn_on
entity_id:
- light.outdoor_bathroom
- light.bedroom
data:
brightness: 10
data_template:
brightness: >
{% if states.group.family.state == 'home' -%}
10
{% else %}
200
{% endif %}
- wait_template: >-
{{ states.group.family.state == 'home' }}
- service: switch.turn_on