2017-03-22 12:39:20 : Fine Offset Electronics, WH25
ID: 239
Temperature: 1663.5 C
Humidity: 84 %
Pressure: 1011.0 hPa
I made the following change to fineoffset.c and it's now returning the correct temperature. All good!
pi@homewx:~/rtl_433-master/src/devices $ diff fineoffset.c fineoffset.c.orig
167c167
< float temperature = (float)((uint16_t)(buffer[4] & 0xF) << 8 | buffer[5]) / 10.0 - 40.0;
---
> float temperature = (float)((uint16_t)buffer[4] << 8 | buffer[5]) / 10.0 - 40.0;
I hope this helps, if someone else has this problem.
John
Hi Tommy,
The official docs to similar sensors suggest there is a battery_low bit and 11 instead of 12 bits for temperature seem sensible. I'll patch this.
The docs are for WH24, see https://github.com/merbanan/rtl_433/issues/764
Someone requested those docs from Fine Offset and sent them in.Those are official specs from FO and from what I see other FO devices follow roughly the same design decisions.