-
Notifications
You must be signed in to change notification settings - Fork 479
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
Broadlink device returns incorrect room_temp value (rounded, not floating) #678
Comments
Hi @rjulius23, I have the same issue, but I am pretty sure that the first part of the payload[17] 'unknown' contains the missing information for room_temp. (The second half maybe for the external temp?) You should add the following decimal to your room_temp.
In your case the 'unknown' is 34 hex. The first part is 3. That means you should add 0.4 to 23.0. |
Thanks. I will play around with it and open a PR. |
I think the easiest solution to get the correct room_temp is: |
@rjulius23 Can you create a PR? I don't need glory, just a (better) working code. |
I can just my todo list is pretty long nowadays but will try to take care
of it this week :)
…On 2022. Oct 4., Tue at 0:00, fustom ***@***.***> wrote:
@rjulius23 <https://github.com/rjulius23> Can you create a PR? I don't
need glory, just a (better) working code.
—
Reply to this email directly, view it on GitHub
<#678 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGHK4RT7C2HQLKLLMYWN7ELWBNJPNANCNFSM5UJERYLA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi everyone,
I have a Thermostat that is recognized by the Broadlink module as a Hysen thermostat. Everything works except that the room_temp is rounded to .0 or .5. So when the device shows 23.4 degrees on its screen, the module returns 23.0, and when it is 23.6 it returns 23.5. The reason for this is because the broadlink logic returns the double of the values as far as I know, so when it is 23 degrees it returns 46 and the code in the climate.py divides it by 2.0 hence the roiunding to 23.0 and 23.5 for example.
I would need some help to understand the payload format coming from the Broadlink device, but my understanding, that we may cut the missing .X value somehow. So when it is 23.4 it should return 46.8 but we get 46.0 only.
Here is a small snippet when the device actually showed 23.4 C:
Can you please guide me towards the solution ? I can create the PR once I understand where is the issue.
The text was updated successfully, but these errors were encountered: