Hi,
I need some support for sending values via KNX. The purpose is to control my Dimplex heatpump via KNX interface.
I am recalculating the temperature from KNX sensors to values needed for my heatpump. This is done the following way: {{ states('number.eg_wohnzimmer_soll_temp_2', ) | float(0) * 10 }}
It shows me the value with one decimal number (242,0). Then I have created a script where I use this template sensor, but according to the error, I would assume that I have to send via KNX 242 instead of 242,0. For this parameter the KNX interface on the Dimplex has DPT 7.001 set and is defined
Here the error I get: Validation error: Invalid payload for knx.send service: <ConversionError description="Could not serialize DPT2Ucount" value="input_number.eg_wohnzimmer_soll_temp_2"/>
When I change from template sensor to a fixed value in script, this value is sent via KNX.
How can I modify the template or script to send the template value via KNX?
thanks for any support,
Matthias
Hi !
Can you post the full script / automation you are running here? (Where knx.send is called)
This seems like an issue with formatting since it tries to send the value “input_number.eg_wohnzimmer_soll_temp_2” instead of the template result.
Another way may be to use expose for that, if you only want to send when a state changes (which would work differently than your delay blocks automation - so may not fit your use case).