Template input number

templates
Tags: #<Tag:0x00007f2048d9e9e0>

#1

I’m trying to control the temperature on my heating pump with a inputnumber.
I use a harmony hub to set the temperature on the heating pump.
But nothing happens.
Please help

- alias: Temp varmepumpe
  trigger:
    platform: state
    entity_id: input_number.varmepumpe_temp
  action:
    - service: remote.send_command
      data_template:
        entity_id: remote.harmony_hub
        command: >
          {% if is_state('input_number.varmepumpe_temp', '16.0')%}
            - "16C"
          {% else %}
            - "24C"
          {% endif %}
        device: 60756081
        delay_secs: 0.6