Unstable MQTT

hi every one, im using MQTT data for my project, i read the published MQTT data and use them to analyze if power is getting exported to grid or imported and so on. MQTT data is very unstable, sometimes it get frozen and sometimes it runs for hours without any problem. do you have any idea what the reason could be? i read data with a ESP32. but i think the problem is on Cerbo side. since i read the data parallelly in my PC, using Mosquitto, and there i also see MQTT gets frozen and doesn’t publish anything. interesting is that as soon as i open VRM in a browser, MQTT starts publishing data again.

thanks for help in Advance

never saw that problem

Perhaps Keepalive will help.

See:

HI Rick, i read a little bit about this, topic in internet, it seems like this is not a problem, its Victron’s design. They want to reduce traffic on Cerbo. A dirty and not professional solution would be to install VRM on an old smart and let it run permanently, ( i havnt tested this ), or a clean solution which I also chose, to get the data over modbus which worked perfectly, its very stable and fast. I recommend you to just move to modbus, you will like it . good luck and have fun

I’ve already got custom Python code to do everything I need over Modbus, including logging everything I care about at 1 Hz to a local server.