*** Edit - I figured it all out in the end - I need to spend more time playing in the developer tools section ***
I want to have an automation to slowly raise the target temp in a room rather than the air con blast away with 5KW power an impossible mission when it is 45 degrees C outside!!!
I want to compare two sensors and if one is 0.5 higher than the other, then add 1 to one of them. (with a slight variation on an additional automation to lower this also)
In English with the correct sensor names (there are 6 zones all with names as per below - but I can copy to the others - this one below is coby (others are cameron, tallon, lounge, master, dining) -
Raise Coby Room setpoint automation -
If sensor.coby_temperature is 0.3 higher than sensor.coby_target_temperature, then add 1 to sensor.coby_target_temperature
Lower Coby Room setpoint automation -
If sensor.coby_temperature is 1 lower than sensor.coby_target_temperature, then subtract 1 from sensor.coby_target_temperature
Ignoring the lowering for now, I have the template sort of working with this below - but now I have no way of actually setting the new target temperature.
trigger:
- platform: template
value_template: “{{ (states(‘sensor.coby_temperature’)|float > states(‘sensor.coby_target_temperature’)|float +0.3) }}”
action:
- service: input_number.set_value
data:
entity_id: input_number.coby_auto_set_target_temp
value: “{{ states(‘sensor.coby_target_temperature’)|float +1 }}”