Using another Temperature Sensor as a reference for my Thermostats

If it works, it can be reduced to this, although not sure what the set_temperature call to 0 is about?

alias: Handtuchheizung Test
description: ""
trigger:
  - platform: state
    entity_id: input_boolean.trv
action:
  - service: climate.set_temperature
    target:
      entity_id: climate.devolo_thermostat_09356
      data:
        temperature: >
          {{ (state_attr('climate.xhandtuch', 'temperature')|float + 5)
             if trigger.to_state.state == 'on' else 15 }}
mode: single

I don’t think anyone but you know what that climate entity is.
It’s not the same as the one in the automation, that one is named climate.devolo_thermostat_09356.

Now being at home, I checked and unfortunately the actual Danfoss heating device does not update/synchronize with the input I make using the automation and the created climate entity (generic Thermostat). Moreover taking a closer look at the device is strange enough, because it seems to give me two entities for each device.

 climate.devolo_thermostat_09356

and

climate.devolo_thermostat_09356_3

which looks like this in the device overview.
image
The info of these two items do synchronize and it also equals to that is shown in the display of the Danfoss device.
So what I have now is a nice automation which does not trigger anything. I know I could easily and more sophisticatedly do it with Better Thermostat but doing it the hard/manual way I am actually aiming to understand what is happening.
My current automation is this but still no improvement.

alias: Handtuchheizung Test
description: ""
trigger:
  - platform: state
    entity_id:
      - input_boolean.trv
    to: "on"
    id: "on"
  - platform: state
    entity_id:
      - input_boolean.trv
    to: "off"
    id: "off"
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - "on"
        sequence:
          - service: climate.set_temperature
            target:
              entity_id:
                - climate.devolo_thermostat_09356_3
                - climate.devolo_thermostat_09356
            data:
              temperature: "{{ state_attr('climate.xhandtuch', 'temperature') |float + 5 }}"
      - conditions:
          - condition: trigger
            id:
              - "off"
        sequence:
          - service: climate.set_temperature
            target:
              entity_id:
                - climate.devolo_thermostat_09356_3
                - climate.devolo_thermostat_09356
            data:
              temperature: 15
      - conditions: []
        sequence:
          - service: climate.set_temperature
            target:
              entity_id:
                - climate.devolo_thermostat_09356_3
                - climate.devolo_thermostat_09356
            data:
              temperature: 0
mode: single

Thank you so much for your patience.

Remove the device(s) and readd it.
If that to fails then submit it as a bug report, there shouldn’t be two devices like that.
I’m quite sure that is the issue.

Or its something with that type of TRV.