ST Leak Sensor Below 0 degrees C

OK.. So it's cold here.. -1 C

But my ST leak sensor is showing somewhat warmer.. :slight_smile:
-1

This works fine down to 0 degrees.
as soon as it went below ) ... this is what I got!

Andy

This is some logging I was doing at the time in a test app...

Although it says 'average temp' this was the only sensor configured at the time

Andy

This is similar to the bug I opened with support Feb. 16 (request 10230) on temperature reporting with the generic zigbee contact sensor driver and motion sensor driver. Still is an issue with these sensors as well on the current firmware. Must be using the same algorithm

I
l look into this

Thanks Mike
I’m using the generic zigbee driver

Andy

This just has to do with the way the raw temperature hexadecimal value send by the device is handled.

It looks like with your sensor the raw value sent jumps up to 655 when the temperature crosses down below 0 C.

So the method to calculate would just need to subtract 655 whenever the raw value goes over a threshold (like over 100, since we’d be dead if it was 100 C!!!)

the returned value from this cluster is signed, and we’re not treating it as such in the drivers…