-
-
Notifications
You must be signed in to change notification settings - Fork 28.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KNX.send DTP 9.001 (temperature) conversion not ok #44792
Comments
knx documentation |
Hey there @Julius2342, @farmio, @marvin-w, mind taking a look at this issue as its been labeled with an integration ( |
Have you tried casting the state to float in the template? |
Hi, That doesn't work neither: action:
service: knx.send
data_template:
address: 5/1/9
payload: "{{ trigger.event.data.new_state.state|float }}"
type: temperature In the ETS monitor I see 23 as incoming value From the event trace:
|
fixes home-assistant#44792 also enables strings to be sent
Thanks! There was an error in our schema which coerced every value to int. |
Thanks guys for the fast response! |
The problem
I want to update a temperature group object with a non integer value. The KNX.send service drops the fractional part when converting based on data type "temperature".
Environment
Problem-relevant
configuration.yaml
Trigger:
Action, doesnt work correctly -> drops fractional part:
Action, works correctly -> workaround crafted for my specific use case (ie. positive temperatures below 40,5°C where fractional part is 0 or 1/2):
Traceback/Error logs
n/a
Additional information
The text was updated successfully, but these errors were encountered: