Been down a similar rabbit hole recently with my EasySolar-II setup. Got to the point where I wanted to automate my immersion heater and a small water feature pump based on SOC and solar surplus — sounds like a simpler version of what you're tackling but same basic idea.
Node-RED talking to the GX via MQTT is genuinely solid once you get your head around the topic structure. The Victron MQTT broker exposes pretty much everything you'd want — SOC, PV power, grid import/export, the lot.
My current logic is roughly:
- Immersion on when SOC > 85% AND PV output > load by 800W+
- Pump off if SOC drops below 40%
Works a treat most days. The tricky bit was building in hysteresis so things weren't switching on and off every few minutes.
Few questions for anyone who's done similar:
- Are you using the relay outputs on the GX directly, or going through something like a Shelly or Sonoff for the switching? I'm using a Shelly 1 at the moment but wondering if I'm overcomplicating it.
- Anyone integrated a time-of-use element too? I'm on Octopus and want to factor in cheap rate periods for any grid top-up logic.
The Fogstar batteries I'm running report nicely over BMS → GX so SOC is reliable enough to trust for automation — that helps a lot.
Would be good to hear how others have structured their flows. Happy to share my Node-RED export if anyone wants a starting point.