Temperature Measurement Update Threshold Too High
The problem
I was debugging what seemed to be issues getting updates from a SNZB-02D temperature sensor when I found this thread. It turns out the issue is caused by the large temperature measurement update threshold (set to 0.5 deg c). This is configured in Home Assistant Core here:
https://github.com/home-assistant/core/blob/ab68a26000017ae845dbd1900e4d6ce450baaf4a/homeassistant/components/zha/core/cluster_handlers/measurement.py#L145-L151
I've confirmed that updating this value from 50 (representing 0.5 deg c I believe) to 5 (representing 0.1-ish deg f), and then re-configuring my sensors, I get much more accurate temperature data.
I'm happy to make a PR if this is an acceptable change. Thank you!
What version of Home Assistant Core has the issue?
core-2024.2.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
Hey there @dmulcahey, @adminiuga, @puddly, @thejulianjes, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of zha can trigger bot actions by commenting:
-
@home-assistant closeCloses the issue. -
@home-assistant rename Awesome new titleRenames the issue. -
@home-assistant reopenReopen the issue. -
@home-assistant unassign zhaRemoves the current integration label and assignees on the issue, add the integration domain after the command. -
@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue. -
@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
zha documentation zha source (message by IssueLinks)
The reporting threshold isn't a static 0.5C: the sensor also sends an update every couple of minutes as well.
From what I remember, these Sonoff sensors do not themselves respect the attribute reporting configuration very well. Can you upload a debug log of the sensor operating for an hour with the original config?
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.