Closed RoyTrenneman closed 6 years ago
Hi @RoyTrenneman,
thx for finding that bug. The same is probably true for the conductivity. That should also be unsigned.
Have you ever seen brightness values > 65536 lux? So might is be 3 bytes of data, instead of 2 bytes?
I'll fix that in the next days...
Hi ChristianKuehnel,
For conductivity, I am not sure that the value can be > 32768, but I will test that by putting the sensor in water...
Have you ever seen brightness values > 65536 lux? So might is be 3 bytes of data, instead of 2 bytes?
You meant instead of 4 bytes ? For lux value, I've never seen values > 65536 lux, but I don't know how to unpack only 3 bytes??
I've looked at a few samples from my machine and you're probably right: the brightness is 4 bytes instead of 2 --> I created a PR with the patch
Hi, Yesterday was sunny, I saw a high lux value, ~77000
I changed the unpack data in miflora_poller.py, it seems work fine: