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

pull/502/head
ccostan 7 years ago
parent 13ab87b0d8
commit 1c2aef0b1c

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

Loading…
Cancel
Save

Powered by TurnKey Linux.