Import KNX group address value to "input_button" variable

Hey there,

I’m just getting into the KNX integration with HA.
What I want to do is to read the target_temperature_state_address - let’s say 1/2/3 and paste the value into an input_button helper in HA.

The value of the helper then should be set as temperature for an other thermostat.

Maybe there is no need for the input_button helper, currently I only know how to set the temperature value from that helper for the thermostat, but lacking on putting the value from KNX into the helper.

Any help appreciated!

If I understand correctly, I don’t think you’d need a helper entity for that. You could just create an automation that listens on state attribute change of one climate entity and call an action to set another climate entity (climate.set_temperature) to that value via a template
{{ state_attr("climate.bad", "temperature") }}

Awesome! {{ state_attr("climate.bad", "temperature") }} was the command I was missing!

Anyone facing the same issue, this yaml code worked for me:

action: climate.set_temperature
data:
  temperature: "{{ state_attr('climate.bad', 'temperature') }}"
target:
  entity_id: climate.other-thermostat
enabled: true