Give the Outdoor Helper some more smarts about whether it's morning or not.

This commit is contained in:
ccostan 2018-10-05 20:16:42 -04:00
parent 13ab87b0d8
commit 1c2aef0b1c
2 changed files with 8 additions and 1 deletions

View File

@ -36,7 +36,14 @@
{% else %}
gold
{% endif %}
- service: switch.turn_on
- service_template: >
{% set hour=states("sensor.time").split(':')[0] | int %}
{% if hour >= 5 and hour <= 9 and states.group.bed.state == 'on'%}
switch.turn_off
{% else %}
switch.turn_on
{% endif %}
entity_id:
- switch.master_bathroom_accents
- switch.back_landscaping

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 134 KiB