question

daza avatar image
daza asked

Battery maintenance Using NodeRed Help

Hi everyone i would like to know how to setup a nodered to start about 20:00 every night to discharge the batteries when its above 40% SOC for maximum discharge and stop discharging at 40% SOC. I'm doing this for a maintance point to veiw in the ESS system as i charge the system up every night from 2330, i'm using a Multiplus2 10000 and have 4 pylontech US5000 Any help on this @Craig Chamberlain @matt1309

Node-RED
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

4 Answers
matt1309 avatar image
matt1309 answered ·

So few options. Can use cron nodes, or just a function and if statements


If you go cron route I would set cron to run every few minutes between 8pm and 11.30 (just incase system goes offline at exactly 8pm you won't miss the cron task if you repeat every few mins)


Then have cron task execute a function node that does something like

(just rough code as typing on phone but I can send u a complete version if you need it)


//set variables being soc, gridsetpoint

if(soc > 40) {

msg.payload = -7000 //export 7kw if doc greater than 40%

} else if(gridsetpoint! = 0 && soc <40){ //if grid setpoint not equal to 0 or whatever default is then set it to 0


msg.payload = 0;

return msg;

}

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

nickdb avatar image
nickdb answered ·

Please post this is the modifications section on the new forum. Thanks.

@matt1309 this topic continues at https://victron.discourse.group/t/battery-charge-discharge-nodered-for-battery-maintenance/1100/6

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

matt1309 avatar image
matt1309 answered ·

Hi @Daza,

When you say max discharge down to 40%, would you want something simple like just scheduling grid setpoint to negative amount at specific time and if so above 40%. (this won't change grid setpoint frequently)

Or do you want something more complex that sets grid setpoint to max discharge less current loads? This will rewrite grid setpoint very frequently (might be nervous doing this is not running on a pi/burning through flash memory if permenantly used in system)

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

daza avatar image
daza answered ·

@matt1309 no just something to discharge the batteries if it’s above 40% and to stop discharging when at it gets to 40% but with a schedule that happens at 2000 as nothing high load runs at those times so I’m able to nurse it into its charge period at 2330. the charge period is just done on GX schedule so it’s just the state of charge stuff really I see ESS in ordered has max state of discharge in watts I assume that’s what I need but know idea how to do the state of charge stuff and assume it just runs from a cron trigger

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.