ThomDietrich/miflora-mqtt-daemon

Integration of connectivity stats in MQTT messages

ThomDietrich opened this issue · 0 comments

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

flora['stats'] = {"count": 0, "success": 0, "failure": 0}

However, this is not yet published to MQTT.

for param,_ in parameters.items():
data[param] = flora['poller'].parameter_value(param)
print_line('Result: {}'.format(json.dumps(data)))

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