thomasdelaet / python-velbus

A python library to control the Velbus home automation system
MIT License
17 stars 8 forks source link

Fix negative temperatures #77

Closed bdewitte123 closed 3 years ago

bdewitte123 commented 3 years ago

With outside temperatures going below 0 °C some weeks ago, I noticed my VMBPIRO reporting negative temperatures as 127°C. The proposed fix takes into account the sign-bit and adds the proper offset of -127.

thomasdelaet commented 3 years ago

Thanks! I've merged this and uploaded a new package.

If you are also using this in home assistant it's probably worth submitting a small PR there so that next release uses latest version