Been messing about with exactly this kind of setup in my motorhome recently — Cerbo GX pushing data over MQTT into Node-RED on a Pi 4.
Voltage and current came through dead easy, but SoC was a nightmare to pull reliably. Took me ages to figure out the topic path was slightly different to what I expected. For anyone else struggling, the Victron MQTT topic for SoC on the Cerbo is:
N/{portal_id}/system/0/Dc/Battery/Soc
Key thing I missed — you have to keep alive the MQTT connection by publishing to the keepalive topic every 60 seconds or the Cerbo stops broadcasting. That tripped me up completely and I thought the setup was broken for about two days 😅
R/{portal_id}/keepalive
There's a Victron GitHub repo with all the topic paths documented which is worth bookmarking.
Also worth noting — I'm running a Fogstar Drift 100Ah with a Victron SmartShunt feeding the Cerbo, and the SoC accuracy is spot on once it's all talking properly. Much better than trying to infer SoC from voltage alone.
Anyone else running a similar Pi/Node-RED dashboard? Curious whether people are pulling data direct from the Cerbo over local MQTT or going via the VRM portal API instead. Local feels more reliable for van life where signal can be dodgy, but the VRM route has its own advantages I suppose.
Would love to see what dashboards people have built — mine's pretty basic still but functional.