Also, I know you have ruled out power as a culprit, but I was having issues like this and it was power related (issue with my charge controller not supplying enough power).
I was also having another similar issue after fixing the power issue. I was nesting the topic in a sub-topic, e.g. emon/solar/coop. I completely fixed it by just entering coop, without any slashes and it has been working great without issue for a few months now.
I am using InfluxDB, Telegraf's MQTT Consumer, and Grafana to display the data.
If you're using Influx/Telegraf, here is my schema for MQTT Consumer:
Code: Select all
[inputs.mqtt_consumer]]
servers = ["tcp://192.168.1.181:1883"]
qos = 0
connection_timeout = "30s"
topics = [
"coop/#"
]
data_type = "float"
data_format = "json"