We have a visual alarm connected to Relay 2 of a Cerbo GX. It is set on Manual and controlled by a simple flow in Node-Red that closes the relay once the battery SoC goes below 20%.
Our problem is that the relay is constantly flapping between Closed and Open all the time. We debug the output of the Node-Red flow controlling the Relay 2, and it is constantly 0 (open), so I don´t think Node-Red is the problem.
I noticed something similar over the last couple of weeks but it’s not related to any Node Red flow.
I using the relay 2 of the Cerbo to simple switch on a 48V charger to charge my battery once in a while.
The last 2 times I did this, switching the relay on was completely normal but when I switched the relay to off the contact started to flapping very quickly and all the time! I could stop the flapping only by rebooting the Cerbo.
No idea if this behavior is related to a firmware bug or something like that.
Yep, I was doing that. As it turn out the Change node I was using in Node-Red had the output set as a string. I changed it to number and now everything works fine
Never payed attention to this. I think that when I was using the Change node in previous occasions it was set to have a number output by default. In any case now it is solved, and I know that I need to pay close attention to this small but important detail!