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
610 stars 140 forks source link

Integration of connectivity stats in MQTT messages #106

Open ThomDietrich opened 4 years ago

ThomDietrich commented 4 years ago

The daemon already collects statistics on the communication success rate of each sensor.

https://github.com/ThomDietrich/miflora-mqtt-daemon/blob/04e43f23feb349ce062345e6c2d17bfe6f94ddef/miflora-mqtt-daemon.py#L238

However, this is not yet published to MQTT.

https://github.com/ThomDietrich/miflora-mqtt-daemon/blob/04e43f23feb349ce062345e6c2d17bfe6f94ddef/miflora-mqtt-daemon.py#L386-L388

Suggest to publish a percentage success rate in parallel to the actual sensor values.