Hey folks… Just wanted to raise this issue. I am new to Node Red and only be dabbling with Victron stuff for a short time… I was looking for a way to charge my batteries automatically overnight or if they are critically low through out the day.
I found while poking around the help that Victron has a Sample code to do exactly what I wanted…
So I imported this and it looked like it should work. Just changed from the Quatro that was selected to my MP and SmartShunt.
Running this however I could never get it to work. It would rapidly switch from Charging to Inverter Only. Then stop for awhile, then cycle again.
So after bashing my head against the wall for the last couple of days and finally figuring out how to use the Debug nodes I found the problem. The SOC Switch is firing for two outputs instead of just one.
If my battery is for example at 10% SOC, That is both less then 25 - so it fires out 1, and it is also less then 50 - so it fires out 2. This leads to the turning off/on issue.
To resolve this I switched the middle statement to be between instead of less then.
With this change only one output ever fires… Less then 25%, or 25-50%, or Greater then 50.
Perhaps this is a Me issue… But as best I can tell anyone using this sample would have the same issue. It maybe worth updating the Sample code in the import function with this change.
Maybe, possibly, this will help someone…
Cheers Folks,
Mike