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

one sensor stopped answering, but works in the app #172

Open mkaut opened 11 months ago

mkaut commented 11 months ago

I have several sensors and one of them stopped reporting a couple of days ago, but it still works in the Flower Care app. I put in a new battery (old one was at 33%) and moved the plant close to the sensor (closer than the other plants), but it did not help.

After restart of the demon, it reports:

juli 19 20:29:34 zigbeepi python3[140641]: [2023-07-19 20:29:34] Initial connection to Mi Flora sensor "FlowerCare-1" (80:EA:CA:88:BA:EA) failed due to exception:
juli 19 20:34:08 zigbeepi python3[140641]: [2023-07-19 20:34:08] Failed to retrieve data from Mi Flora sensor "FlowerCare-1" (80:EA:CA:88:BA:EA), success rate: 0%

In the logs, I see that the success rate was around 66% before the restart - even if the sensor had been reported as offline for at least two days at that point.

The system runs on a Raspberry Pi 3. The app reports sensor's firmware version as 3.3.5, the same as for several other sensors.

Anything I can try to make the sensor work again?

ThomDietrich commented 11 months ago

Hey @mkaut, are you sure you didn't update the firmware while checking status in the app? I can only offer limited support but if you were to resolve the issue, we are more than interested to learn from you! Good luck!!

mkaut commented 11 months ago

Hey @mkaut, are you sure you didn't update the firmware while checking status in the app?

I am not 100% sure - if the Flower Care app offered an update, I might have accepted it without thinking much about it. Do you mean that one should stop the daemon when doing firmware upgrade of the sensors? Why is that?