When I use climate service (e.g., Nest thermostat), the entity and states are like this. In this case, when I call “climate.set_temperature” service then, HA will change “temperature” state in the entity. It is OK.
However, when my thermostat is “range” mode (not one setpoint, define range to either cool or heat), the entity and its states changes like this.
Here, we got new “target_temp_high” and “target_temp_low”. In this case, how can I change each high and low setpoints?
For example, in heat or cool mode, I used this scripts (this is part of automation script, I omitted the trigger part… However, I found out this is not working when I am in “range” mode. I think I need to define new service. The last figure is “set_temperature” service. How can I define new service? If let me know what API or what python script or what example page do I need to look for, I will appreciate it. I looked over but I am not sure where I need to start it. Kind of pseudo code or simple example code will be very very helpful for me. Thank you so much.
action:
service: climate.set_temperature
entity_id:
- climate.living_room
data:
temperature: 85