The sensor is defined to HA through the Hubitat integration. It is not referenced in configuration.yaml
Here is what MQTT is passing (from MQTT Explorer).
Here is what HA is reporting.
Seems to me that HA is picking up the temperature to 1 decimal place, but storing and reporting it using whole numbers.
I think the Hubitat custom integration uses MQTT to transmit messages between the Hubitat Hub and HA. I can’t think of any other way to explain the sensor showing up in MQTT Explorer (in the Homie group - source of the graph already shared) or MQTT being mentioned on the HA device screen for the sensor, as shown here:
Well, no. Your screenshot shows it goes indeed through MQTT, not through a HA Hubitat integration.
As you seem unaware, you surely didn’t define the MQTT sensor manually in HA, so it comes from a discovery topic.
That topic is likely named homeassistant(ha_stream for me)/sensor/<name_of_sensor>/config
Please post its content.
I don’t think there is a custom integration, at least not an HA one (what would be the point to go through MQTT?).
There is some confusion, here, and I suspect it is some sort of Hubitat addon.
Yes, whatever it is (addon, integration), it’s creating the rounded discovery information. Once OP figures out what’s creating that discovery, he can move on to fix it.
Thanks for your help guys. I will leave this open for now. Will investigate further and post an update once I have figured out how to change the precision.
I’m thinking it has to be something on the HA side of the MQTT Broker , since MQTT Explorer shows the broker is getting the temperature to one decimal place. Whatever it is was probably put there by the HACS Hubitat custom integration.
My man, it’s the discovery info being sent to HA. It’s not where you think it is. You already proved this by showing us the discovery info. You’re welcome to ignore the advice, but realize that you’re chasing something that’s not the problem.
You were right! It’s been so long since I set these sensors up that I’d forgotten how they were working. Thank-you for your pointing me in the right direction. For the benefit of anyone else reading this, here’s what you need to do (using the Hubitat Hub app)