So I want to make one rule for all day periods for my climate system. From 8am to 5pm - 81f, for 5pm to 10 - 78f and so on.
- id: 'honor_daytime_temp'
alias: 'Honor Daytime Temp'
trigger:
- platform: time
hours: '/1'
minutes: 2
action:
- service: climate.set_temperature
data_template:
entity_id: climate.2gig_technologies_ct101_thermostat_iris_cooling_1
# value: >
temperature: >
{% if now().hour >= 8 and now().hour < 17 %}
{{ 81 | float }}
{%-elif now().hour >= 17 and now().hour < 22 %}
{{ 78 | float }}
{%-elif now().hour >= 22 and now().hour < 5 %}
{{ 76 | float }}
{%-elif now().hour >= 5 %}
{{ 78 | float }}
{% else %}
{{ 80 | float }}
{% endif %}
It looks fine for me. Every 1 hour on 2nd minute we check current hour and if elseif we send command to CT101 unit.
But, when I enable this automation I get storm of messages to z-wave unit (around 1500 in half hour), then my device become dead (literally, it stops working at all, not just z-wave).
How do you think why? Maybe there is more nice solution to do my task without making bunch of automatons?
Thx!