Victron start fail atemempt retry code

good day
I am a first time node user i am trying to write a code for a Victron gx to restart a gen set that has not started the first time

so under the conditions set in the Cerbo the gx starts the gen but gen fails to run once this happens i would want the gx device to restart the gen up to 5 x max or until it sees the ac input from the gen once the start signal is sent at needs to wait for 65 sec before re attempting if the ac is not seen from gen but if ac is seen from gen for example on attempt 3 the program must reset until the gx gives a start signal again under set conditions

at the moment i have gen set to start at 45% and stop at 95% but lately my gen cranks the first time only and then i have to manually start it the second time and this s annoying the shit out of me

and if possible after 5 failed attempt's send a vrm alarm is her some one thats willing to help with the code and email it or something please

Welcome to the forum @deonvanzyl.

We do see a few people posting about Node-red on Victron hardware, but it's not exactly common.
Hopefully someone may be able to help.

Are you using Node-red to monitor and control your systems?
Does it run on the Victron or on some other device?

Is this a commercial setup or domestic?

Perhaps you could show us some screen captures of the flow that is failing?

Are you from the Nederlands?

Sorry, all questions.

Are you running Node-RED under the VenusOS (Cerbo GX/RPi)?

What is the Interface between the CerboGX and the Generator?

Does the Generator use MQTT?