Maintenance run diesel generator, Node Red script for switching off the MPPTs wanted

Hello everyone

I am looking for a solution or Node Red script for the following problem:

In an off-grid solar system, the routine maintenance run of the diesel generator, which is controlled via the Cerbo GX, takes place every 28 days. So far so good.

In order for the diesel generator to run at full load all the time, it is necessary that the batteries do not have a too high SOC and that the two SmartSolar MPPT RS do not charge at the same time.

Has anyone already written a Node Red script for this that they could provide me with, or another technical solution?

Thank you