Hi, Please help!
I am not very familiar with node red but i am struggling all day now.
I want to switch relais on cerbo (to trigger rapid shutdown on PV) based on AC in off (Multiplus 2) and 100% SOC of battery.
I created some nodes which indicate the correct status of SOC and AC in. Switching relais is also working.
But the function node is to difficult for me. I copied some info from Harold Halewijn, but without luck.
Looks like you need to change the msg.topic. I have included a modified flow that should work. It is a txt file just need to copy the flow from it Cerbo Relay Control.txt (2.5 KB)
I am afraid it did not work.
Doublechecked the relais is set on manual, copied text in function node but no luck.
Inputs are showing values for SOC and grid. Turning off AC in, SOC >95 resulted in value 240.
Tonight I tested your import by changing grid from 0 to 1 and SOC from >95 to <81. This worked because grid was on and SOC went below 81. Relais switched. Could it be that the value 240 should be in for AC in?
I know what it means, the overview is in the Node visible.
That’s not the point. I want to know what is the difference between “0” and “240”.
If the grid is not present at input of MPll I would expect “0” to be displayed because grid is not present.
So in my function Node which was made for me the “0” was used in the settings instead of “240”. After I changed it to “240” it worked.
So I want to understand…