delid4ve / openhab-3.x-sonoff

Openhab Binding for Sonoff Devices
26 stars 11 forks source link

Temperature & Humidity are rounded instead of showing decimals #3

Closed acmaarts closed 3 years ago

acmaarts commented 3 years ago

Using OH3 and Sonoff Version 2.2r1 I only get rounded temperature values from my Sonoff Zigbee Temperature and Humidity Sensor. Instead of showing 20.2 it's showing 20.0.

The same sensor shows the Humidity rounded as well. If I'll go to "Analyze" on the Humidity sensor it is off by a factor 100. So instead of 34% it's showing 0.34%

I'm completely new to OH so I don't know if it's a configuration or a code issue. Can you help me figure that out?

delid4ve commented 3 years ago

Can you test with this please. https://github.com/delid4ve/openhab-sonoff-compiled/blob/main/org.openhab.binding.sonoff-3.1.0-SNAPSHOT_v2.4r2.jar

let me know if it’s still an issue

TefiLaci commented 3 years ago

I using OH3.0.2 and Sonoff v2.4r2.jar and the situation is the same. Thermo & humidity sensor type: SNZB-02 Thanks for your help in advance!

kép

delid4ve commented 3 years ago

I’ll take a look tomorrow 👍

delid4ve commented 3 years ago

Should now be fixed, can you test and let me know. https://github.com/delid4ve/openhab-sonoff-compiled/blob/main/org.openhab.binding.sonoff-3.1.0-SNAPSHOT_2.5r1.jar https://github.com/delid4ve/openhab-sonoff-compiled/blob/main/org.openhab.binding.sonoff-2.5.13-SNAPSHOT_2.4r3.jar

TefiLaci commented 3 years ago

Thats working well! kép

Thanks!

acmaarts commented 3 years ago

@delid4ve I just tried the 2.5r1 version (OH 3.1.0) but it's still not working for me. Do I have to do something to make this work other than replacing the jar?