Dynamic ESS in Node-RED mode: GX planning with my 3-price tariff and market-price export

by JX_Boats · 1 day ago 23 views 7 replies
JX_Boats
JX_Boats
Active Member
12 posts
thumb_up 1 likes
Joined Feb 2025
1 day ago
#35669

Been meaning to post about this for a while. Running a similar-ish setup on my cabin — EasySolar-II GX with a MultiPlus-II 48/5000, three Pylontech US3000Cs, and about 4kWp on the roof — and I've been poking at Dynamic ESS through Node-RED since early this year.

The interesting bit for me is trying to squeeze value out of a three-tier tariff (peak, off-peak, and a shoulder rate in between) whilst also watching the export price, which on Agile fluctuates enough to actually matter. The GX does a decent job of the basics, but once you want it making proper decisions — like "should I charge now at 8p, hold back, or export at 22p in two hours?" — you really need something smarter sitting on top.

My current Node-RED flow pulls the Agile half-hourly forecast, checks battery SOC via the Victron MQTT broker, then nudges the ESS minimum SOC setpoint up or down accordingly. Rough and ready, but it's genuinely shifted my self-consumption numbers.

What I haven't cracked yet is weighting the cost of cycling the Pylontechs into the decision. Technically they're not free to discharge, even if the marginal cost is small.

Curious whether anyone else here is doing something similar — particularly if you've got a smarter model for the battery degradation side of things. Also wondering if anyone's tried this with Fogstar Drift cells instead of Pylontechs, where the cycle life maths might be different.

Worth sharing flows if there's enough interest?

DODQueen
DODQueen
Regular
92 posts
thumb_up 24 likes
Joined Jul 2023
1 day ago
#35721

@JX_Boats interesting setup — I'm on a similar path with my tiny house. One thing worth flagging: Dynamic ESS via the GX is still fairly locked down compared to what you can achieve rolling your own logic in Node-RED via the MQTT/dbus interface.

For a 3-price tariff with market-price export, I'd look at pulling your tariff windows into Node-RED and setting the com.victronenergy.settings ESS minimum SOC dynamically. Essentially let cheap-rate slots charge to 100%, hold at a higher minimum during mid-rate, then discharge aggressively when export price peaks.

The Victron Node-RED palette makes this much cleaner than fighting the GX GUI. What's your export price source — Agile, or something else? That changes how you'd structure the scheduling logic considerably.

Marine Geoff
Marine Geoff
Senior Member
140 posts
thumb_up 42 likes
Joined Nov 2023
1 day ago
#35728

@JX_Boats the bit nobody warns you about with Dynamic ESS in Node-RED mode is that the GX planning algorithm assumes your battery SOC limits are gospel — so if your Pylontechs are reporting a slightly optimistic SOC (they do), you'll find the schedule quietly robbing you of the cheap-rate charging window you carefully set up at midnight.

Worth cross-referencing the actual watt-hours via the Victron VRM portal against what the BMS is reporting, and setting your minimum SOC floor a touch higher than you think you need — say 15% rather than 10% — as a fudge factor until you've got a few weeks of data to trust.

Also, on market-price export: make sure your DNO G98/G99 notification is squared away before you start letting Dynamic ESS go feral with export decisions.

Ben
Ben
Active Member
12 posts
Joined Feb 2025
1 day ago
#35731

@JX_Boats great thread, been running something similar for about eight months now. One thing worth adding to what @DODQueen and @MarineGeoff have touched on — with a three-price tariff, the GX planning algorithm can get a bit confused around the boundary times if your system clock drifts even slightly. Worth making sure your GX is syncing NTP reliably, ideally via a wired connection rather than WiFi if you can manage it. I lost a couple of cheap-rate charging windows before I spotted that one.

Also with Pylontechs specifically, I've found the SOC reporting to DESS can lag a little under heavy discharge — worth factoring a small buffer into your minimum SOC settings rather than trusting the displayed figure completely. Nothing dramatic, just 3-5% headroom seems to keep things stable.

Forest Jenny
Forest Jenny
Regular
87 posts
thumb_up 57 likes
Joined Mar 2023
1 day ago
#35740

Been running a 3-price tariff setup on my narrowboat for nearly a year now — Agile import, fixed export, plus overnight Economy rates when I'm moored somewhere with hookup.

The bit that tripped me up early on: the GX planning horizon only looks so far ahead, so if your expensive peak window is short, it can miscalculate how aggressively to charge beforehand. I ended up writing a small Node-RED flow that pushes a manual SOC target into the system about 90 minutes before peak — essentially nudging the planner with a firmer floor.

Worth also checking your Pylontech's actual usable capacity in the DVCC settings rather than trusting defaults. Mine was reporting optimistically, which threw the planning right off.

@MarineGeoff's point about assumptions is key — the algorithm is only as good as the data you're feeding it.

ExFarmer
ExFarmer
Active Member
39 posts
thumb_up 9 likes
Joined Oct 2023
1 day ago
#35754

@ForestJenny narrowboat solidarity — mine's currently deciding whether to charge from the grid or just dramatically drain the batteries while I'm moored under a bridge with zero solar, like a Victron-powered sulking teenager.

LH_Marine
LH_Marine
Senior Member
130 posts
thumb_up 84 likes
Joined May 2023
19 hours ago
#35800

@JX_Boats good setup. One thing worth flagging with Dynamic ESS in Node-RED mode specifically — the GX planning algorithm doesn't natively handle asymmetric tariff structures particularly well. If you've got three price bands on import plus a separate market-linked export rate, you'll want to override the scheduled charge logic manually via the MQTT topics rather than relying on the built-in ESS assistant schedule.

I do this on my narrowboat with a Cerbo GX and two Fogstar Drift 200Ah batteries — push custom SOC targets into com.victronenergy.settings/Settings/CGwacs/BatteryLife/MinimumSocLimit based on day-ahead prices fetched from an Octopus API call. Keeps the Pylontechs from being unnecessarily cycled during low-export-value windows.

The gotcha: Dynamic ESS and manual Node-RED SOC overrides will fight each other unless you explicitly disable the GX self-consumption optimiser first.

Glen Simon
Glen Simon
Active Member
28 posts
thumb_up 3 likes
Joined Feb 2024
2 hours ago
#35912

@LH_Marine the GX planning algorithm also throws a wobbly if your SOC target and your scheduled charge window overlap — mine spent a confused Tuesday morning arguing with itself like a Fogstar battery trying to decide whether it's full or not, while the Victron portal just watched and said nothing useful.

Log in to join the discussion.

Log In to Reply