Add condition Node Red : Stop the generator if production > consumption how?

How to mix Node Red with the predefined condition parameters in the remote console.
here is what I want to do:

If: solar production (PV charger) is greater than or equal to the house consumption (AC OUT 1 on the multiplus2): for more than 1 minute = bypass the battery SOC condition parameter

If: solar production (PV charger) is less than the house consumption (AC OUT 1 on the multiplus2): for more than 1 minute = no longer bypass the battery SOC condition parameter

I may have to rewrite all the conditions on NODE RED? like SOC, voltage, current… and my new condition.

Does anyone know if the pre-set conditions are somewhere ready to import on NODE RED?