Been down a similar rabbit hole recently with Node-RED and thought it worth sharing here.
After the 4.x updates settled down, I finally got a workflow running on my Victron Cerbo that does something I'd wanted for ages — dynamic ESS switching based on a combination of my solar forecast (via Solcast), grid tariff window, and battery SOC. Sounds straightforward, but getting the logic to actually behave took a fair bit of wrangling.
What pushed me over the line was leaning on AI assistance for the trickier function nodes. Not a silver bullet — it confidently generated some nonsense at times — but for boilerplate MQTT topic handling and conditional branching it shaved hours off the job. The Victron MQTT paths alone are enough to send you cross-eyed.
My setup covers both the boat (when she's on shore power over winter) and the garden office, so I needed the flow to handle two quite different load profiles and charging priorities. The office runs a Fogstar 48V pack; the boat is a more cobbled-together affair. Getting them to behave sensibly under one flow without stepping on each other was the interesting bit.
A few things I'd flag for anyone attempting this:
- Node-RED version matters — some older Victron nodes behave oddly post-4.1
- Test in
injectmode first before letting any automation near your actual grid connection - Keep your flow modular — one giant tangle of wires will haunt you
Curious whether anyone else here has built custom ESS logic, particularly around Octopus Agile or similar variable-rate tariffs. Feels like there's a lot of untapped potential in combining real tariff data with proper battery management.