core icon indicating copy to clipboard operation
core copied to clipboard

BSB LAN temperature unit conversion

Open dbarvik opened this issue 2 years ago • 3 comments

The problem

Hello I am using BSB LAN integration in Home Assistant, but I have a problem with temperature conversion. Temperature input is in Celsius, but the integration converts that to Celsius from Fahrenheit. For example I can see value -4.4°C instead of 24°C. I didn't find any solution how to cancel this conversion in my system.

What version of Home Assistant Core has the issue?

2022.10.4

What was the last working version of Home Assistant Core?

2022.10.4

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

bsblan

Link to integration documentation on our website

https://www.home-assistant.io/integrations/bsblan/

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

dbarvik avatar Oct 23 '22 12:10 dbarvik

Hey there @liudger, mind taking a look at this issue as it has been labeled with an integration (bsblan) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of bsblan can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant unassign bsblan Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


bsblan documentation bsblan source (message by IssueLinks)

home-assistant[bot] avatar Oct 23 '22 12:10 home-assistant[bot]

I am not sure yet what the issue exactly is. Is your bsblan server in Fahrenheit? En the integration converting it to Celsius? Which version of firmware are you using?

In the next release of ha a revamped version of the integration is included.

liudger avatar Oct 24 '22 05:10 liudger

I am using last release version of BSB-Lan (v2.1) with latest BSB-LAN integration. In BSB lan web interface of my device, I can see the right temperature value in Celsius. When I send this value to mqtt broker, the value is also in Celsius. Only the integration shows me "converted" value from Fahrenheit to Celsius, so I get wrong temperature.

When I switch Home Assistant to imperial units, the value is recalculated to Fahrenheit, with the °F unit but it shows the exact value in Celsius.

dbarvik avatar Oct 24 '22 12:10 dbarvik

Ok this is expected result. This integration support only v1 of the firmware. see docs. In later firmware versions a lot of parameters are remapped. In next release the integration will start to support multiple versions of firmware. This will be done by updating the library. So it will take some time before I figured out where the changes are. The integration is now able to check the version of BSBLan and could than retrieve the correct parameters. So be patient and for safety reason do not use the integration now as it could set the wrong parameters.

liudger avatar Oct 25 '22 08:10 liudger

You can leave the issue open and rename it to firmware v2 support. I hope to release this upgrade soon.

liudger avatar Nov 05 '22 17:11 liudger