Node-Red : switch off Multiplus 10minutes after Grid Lost


Trying to find a program in order to switch off the multiplus 10 minutes after a Grid Failure :

  1. I managed to do it with my attached “initial program” : the Multiplus switches OFF 10 minutes after a Grid Lost alarm appears → GREAT !

BUT I need to take into account the following scenario : in case the Grid Lost alarm dissapears before the Timer ends (AC In recovery within less than 10 minutes), I do not want the Multiplus to switch OFF at the end of the Timer !

  1. So I imagined the attached program n°2 :
  • When Grid Lost Alarm is not active, I send an “ON” command to the Multiplus every 5 seconds.
  • When Grid Lost Alarm is active, I send a delayed “OFF” command to the Multiplus (only one, node configured as “only changes”)
    → In case of a Grid failure lasting less than 10 minutes, only one “switch off” command will be sent to the Multiplus, and “switch on” commands will be sent every 5 seconds (so that the Multi does not switch off for more than 5 seconds).

Explanation of the problem :

  • When I test the program only with the debug function (disactivating the Switch Position) output : everything works fine.
    I can see the Grid Lost Alarm appear on the Node-Red, on the Dashboard, and I can hear the BIP of the Cerbo that means that an alarm is ON.

  • BUT when I test the program completely (activating the Switch position output on the Node-Red program), the system does not detect the Grid Lost Alarm anymore !
    I can see on the Dashboard that the grid is lost, the Multiplus is inverting, but no alarm detected (and no BIP coming out of the Cerbo).

I guess the fact that the Multiplus receives “switch on” commands every 5 seconds prevents it from being able to send the Grid Lost Alarm (but I am note sure about that).

Can someone help me solve this problem ?
Is there a more elegant way to program this function ?

Thanks !!

Hello,

instead of followig the Alarm, why don’t you follow the AC itself.

And replacing the Timer by a trigger that you rearm unless the AC is present ?

I can get the switch command on my setup/installation as the Multi control panel is also installed…

Xavier

I also use System/Ac/In/NumberOfPhases to detect grid presence. It’s null / 0 when grid is down, else 1,2,3, depending on.

Eventually using the physical test does cut of your internet connection, therefore vrm / node red data access? (Dunno if node red is local or cloud based)

@dognose
Node red is hosted on the gx itself usually, it is on venus os large. (It is accessible via local and vrm for programming.)

Thank you Xabi, using the Trigger helped me solve my problem !
I still use the Grid Lost Alarm but the Reset function of the trigger allows me to configure the input to “Only Changes”.
Great !!