Send to knx bus a variable on payload

Hi,
Please i need to send a variable to a group adress on the knx bus instead of “25”:

service: knx.send
data:
  response: false
  address: 5/6/3
  payload: 25            <---- input_number.temperature_ideale
  type: temperature

Thank you for your help.

Hi :wave:!
Use a template {{ states("sensor.entity_id") }} https://www.home-assistant.io/docs/configuration/templating/
Or knx expose https://www.home-assistant.io/integrations/knx/#exposing-entity-states-entity-attributes-or-time-to-knx-bus