Hi,
I am trying to set the temperature on a thermostatic radiator valve (TRV) thermostat (climate.lumi_lumi_airrtc_agl001_thermostat_3
) based on a schedule.
I have created a schedule called schedule.thermostat_schedule_bedroom
which can be “off” or “on”.
When it is “off”, I want the TRV temperature = 7, and when it is “on”, TRV temp = 17.
I have tried to write the following automation to test for the “on”/“off” conditions. However, it does not control the temperature when the automation is run.
Any advice on how to write an automation with conditions based on the schedule state would be much appreciated. I am fairly new to HA.
trigger:
- platform: state
entity_id: schedule.thermostat_schedule_bedroom
condition: []
action:
- choose:
- conditions:
- condition: template
value_template: "{{ trigger.to_state.state in ['off'] }}"
sequence:
- service: climate.set_temperature
target:
entity_id: climate.lumi_lumi_airrtc_agl001_thermostat_3
data:
temperature: 7
hvac_mode: heat
- conditions:
- condition: template
value_template: "{{ trigger.to_state.state in ['on'] }}"
sequence:
- service: climate.set_temperature
target:
entity_id: climate.lumi_lumi_airrtc_agl001_thermostat_3
data:
temperature: 17
hvac_mode: heat
mode: single