Node Red - SOC to turn off relay on cerbo, but wait until recharges?

Hello all.

I have installed node red on my cerbo gx. I am wanting to trigger relay 1 on cerbo to turn OFF when SOC of my battery goes to 10%. But not turn back on until it has come back to 30%.
I have a smart shunt.

I planned to use the normally closed port on relay 1. It will trigger the “remote” port on a DC to DC 48/48 device. So having it in normally closed would mean it’s always on until it hits 10%.

Basically shutting down my “stuff” if the battery gets to low and not turning it back on until its recharged a bit.

I am lost in node red and wondering if someone can give me some guidance on best way to achieve this.

Would this work?

EDIT: This worked. I had to select “dont set initial value” for it to ignore 10%-30% and its always the last value it was.


On your second screenshot, when you inject the values does the relay engage or disengage over as it should?

If you want to avoid using Node Red, you could just use the Generator Start function in the Cerbo.
Or if you have a Multiplus, Assistants. Both can do that, unless you have ‘special’ needs.

1 Like

Yes it seems to work. I had to set the “dont set initial value” though on the relay control.
That way when it hit 10% it would shut off relay… but when recharging and between 10-30 it keeps it off.
But when it hits 30 or more it can go back down to 10 without turning off until 10 again.

It basically ignores 10%-30% and keeps it the “last value”

So this seems to work good.

I didn’t really see on the generator start where I could let it go down to 10% but not start it back up till it recharged to 30%

Dont bother with the generator it is terrible. Try this its working. You just need to join up the SOC to the delay node. I sent a 50 and it stay open then a 9 it closes then an 11 stays closed until I send a 31. Enjoy JSON code in the text file.

The inputs I have are to test just disable them once you see what it does. If I have the logic wrong I added a node to change reverse the logic and change a 0 to a 1 and a 1 to a 0. You can also update the payload of the function.


control relay based on SOC.txt (8.5 KB)
REVERSE NODE LOGIC.txt (716 Bytes)

Cerbo manual generator section

Go to: Settings → Relay and set the function options to Generator start/stop

Then settings / generator start stop / settings / conditions then enable Battery SOC