-
Notifications
You must be signed in to change notification settings - Fork 36
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
Correct Sonoff TRVZB local temperature calibration min/max #300
Conversation
I think the step should also be 0.1 |
@tr4nt0r, can you elaborate on why you think so? The original change uses 0.2. |
I can write to the |
The max and min don't necessarily imply those are the values you can use; they correspond to the range for this type -128..127 (int8) before applying the multiplier. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #300 +/- ##
=======================================
Coverage 96.33% 96.33%
=======================================
Files 61 61
Lines 9388 9388
=======================================
Hits 9044 9044
Misses 344 344 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
I think we could increase the step size if we wanted. I'd guess 0.2 was originally chosen, as it's easier doing 0.2°C steps when moving the slider in the HA frontend. I'll merge this for now, as Z2M also uses step size 0.2 Feel free to open a separate PR if you'd prefer the smaller step size. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@TheJulianJES if the number entity is used, Home Assistant validates the inputs and allows only the values within min/max and I think it also the step is validated, but I'm not 100% sure about that right now. Currently the entity for the offset has a step of 0.1 so it would change with the update. Having a step of 0.1 would make it easier when calculating the offsets via automation. |
Ah, the ZCL entity indeed has a 0.1 step. I've only looked at the Sonoff one before. We should probably change this one then. |
@TheJulianJES Ok, if a 0.1 step is the norm, I can open a PR to do this. |
From Koenkk/zigbee-herdsman-converters#8214 via zigpy/zha-device-handlers#3358 (comment).