ThomDietrich / miflora-mqtt-daemon

Linux service to collect and transfer Xiaomi Mi Flora plant sensor data via MQTT to your smart home system, with cluster support 🌱🌼πŸ₯€πŸ‘🌳
MIT License
606 stars 141 forks source link

Light measurement disturbed by flashing LED #152

Open BastiJoe opened 2 years ago

BastiJoe commented 2 years ago

Hey Thom,

first of all, thank you very much for that great work. I am using your code on raspbian and reading the values via mosquitto into openhab. The only issue i have now, is that the sunlight measurement is being disturbed by the LED which is flashing during READ. Please check this image:

image

two times the value is correct, the next two times it is not.

Do you have any hint, how to disable or delay the flashing LED?

Thank you very much in advance.

Best regards

Basti

ThomDietrich commented 2 years ago

Hey Basti, no sorry nothing we can do about that. I ended up filtering the readings to get a longer-term trend for further consideration. Supposedly the Miflora Sensors also send measurements passively, which the daemon does not cover. I wonder if those passive readings are influenced by any LED blinking. You could check that out...