Radio Thermostat CT-50 Target Temperature is not changing using Input Number

I have a Radio Thermostat CT-50 and trying to change the set temperature using input number.
If I used a number then it works most of the time but when using the input number, the temperature stays the same.

My Script File
sanctuary2_on:
alias: On Sanctuary 2 AC
sequence:

  • service: climate.set_operation_mode
    data:
    entity_id: climate.sanctuary_2
    operation_mode: cool
  • service: climate.set_hold_mode
    data:
    entity_id: climate.sanctuary_2
    hold_mode: ‘home’
  • service: climate.set_away_mode
    data:
    entity_id: climate.sanctuary_2
    away_mode: ‘off’
  • service: climate.set_temperature
    data:
    entity_id: climate.sanctuary_2
    operation_mode: cool
    temperature: “{{ states.input_number.temp1 | int }}”
  • service: climate.set_fan_mode
    data:
    entity_id: climate.sanctuary_2
    fan_mode: ‘on’
  • service: climate.turn_on
    data:
    entity_id: climate.sanctuary_2

My Configuration File

climate:
platform: radiotherm
host:
- 10.0.0.11
- 10.0.0.6
- 10.0.0.80
- 10.0.0.81
- 10.0.0.5
- 10.0.0.9
- 10.0.0.83
- 10.0.0.85
- 10.0.0.4
hold_temp: true

input_number:
temp1:
name: Sanctuary temp
initial: 72
min: 65
max: 80
step: 1
mode: box

Any help would be appreciated.

Use the template editor to check but I think

temperature: “{{ states.input_number.temp1 | int }}”

Should be

temperature: “{{ states.input_number.temp1.state | int }}”

That’s for pointing me in the right direction. I checked your suggestion on the template editor and it is correct compared to my version.

The problem that I am having now is that the script still doesn’t take the variable to actually change the temperature accordingly.

Any other suggestions would be appreciated.

Hello,

Found the problem, there were a few things that were wrong in my script.

The first thing is that I was adding operation_mode into the service for climate.set_temperature.
The second thing is that I was using climate.turn_on and it was not supported by the code.

So after looking at the log file, I was able to check to see what the problems looks like.