mr-manuel / venus-os_dbus-mqtt-grid

This Venus OS driver gets the data from MQTT and displays it as grid, genset or ac load meter.
MIT License
59 stars 20 forks source link

MQTT connection of venus os disconnects once per minute if grid meter and standard MQTT requests are operated in parallel #17

Closed SSonder0815 closed 8 months ago

SSonder0815 commented 8 months ago

I have set up this enhancement to emulate a grid meter. I am sending once per second a new value to the venus os via this connection. When I also used the venus os MQTT for other communication the MQTT connection disconnected once per second for a few seconds. When I removed all the other MQTT connections and only left this one for the emulated grid meter, the disconnection did not happen anymore. There seems to be a conflict when using this MQTT connection in parallel to the other topics. I solved it for the time being by using the modbus protocoll for all the other connections i needed.

mr-manuel commented 8 months ago

What does the log say? In the readme it is well documented how to troubleshoot.

SSonder0815 commented 8 months ago

When I observed the issue, I looked into the log file under /var/log/flashmq/current and could not find any error there. Unfortunately I did not store the log output. When I now reactivated the MQTT calls again, the issue did not pop up again. I have no clue why this was observable over days, then I reconstructed the calls to modbus interface and now reactivating the old status does not show it again. Anyhow, I will close it. Maybe someone else will stumble about this again.