-
Notifications
You must be signed in to change notification settings - Fork 4
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
Actual temperature unit conversion error reported in climate sensor #21
Comments
Had the exact same issue. I tried to modify the conversion logic on my own, but could not get it to work properly anyway. Happy to help test if anyone comes up with a solution. |
Glad to see others are using this! Sorry I've been MIA (two kids being born will really sap your time). I don't use Celsius myself, so unless somebody else comes up with a solution I'll have to find some time when I can switch mine over to test. Hopefully that can happen in the next couple months, but I'll look at the code regardless to see if anything jumps out. |
I opened a new case but realised this was a duplicate of this case. Anyway it appears that the temperature error when using celcius is due to a conversion on the celcius value already. So I suspect either a double conversion is being done or there is no need for the conversion due to the correct value being presented already. e.g. device reporting current temp of 26°C but HA shows Current temperature -3.3 °C Taking the 26°C and converting that into F ( 26-32 * 5/9) = -3.3°C could this be the issue ? _attr_temperature_unit = UnitOfTemperature.FAHRENHEIT (climate.py line 63) |
In addition to my findings, it seems like some forks of your integration already have some handling for celcius temps. |
System Health details
System Information
Home Assistant Community Store
Home Assistant Cloud
Dashboards
Recorder
Checklist
Describe the issue
Actual temperature is reported as - C, which is obviously not correct. I suspect this is an issue with unit conversion. My Ooler is set up in Celsius.
I recall a similar issue with a previous MQTT integration and suspect that Ooler may report actual temperature in Farenheight regardless of temperature unit set but am unable to figure out how to see the raw data in order to check.
P.S. Thanks for creating this integration - It would be great to expose some of the other diagnostic data if you get a chance
Reproduction steps
...
Debug logs
Diagnostics dump
n/a - Can't locate
The text was updated successfully, but these errors were encountered: