-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
MQTT Number Entity Native Unit Comparison Error #135619
Comments
Hey there @emontnemery, @jbouwh, @bdraco, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) mqtt documentation |
You are right. The comparison should be with |
The linked PR should fix the issue. |
The problem
I have a number entity being created by an external device via MQTT Discovery:
The external device is publishing a temperature state:
tesla_ble/number/driver_temp_setting 24.5
My instance is set to use US Customary units vs. this device providing values in Metric. It appears that the number validation is currently done:
raw value vs. native min/max
instead ofnative value vs. native min/max
leading to the error below. In this case I would expect 24.5 to be a valid state that HA would then convert to native units for frontend display.2025-01-14 10:57:39.590 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.tesla_ble_climate_temp: 24.5 (range 59.0 - 82.4)
What version of Home Assistant Core has the issue?
2025.1.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
MQTT Number
Link to integration documentation on our website
https://www.home-assistant.io/integrations/number.mqtt/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: