Controling Phase Imbalance

Hello community,

I am operating a MultiPlus II 48/5000 with a Cerbo GX and a VM-3P75CT on a three-phase system.

I would like to know if it is possible in Node-RED to control phase imbalance.

For example, by creating a function node that reduces the feed-in when the difference between phases exceeds a certain value, so that the maximum imbalance of 4600 W is not exceeded.

I would be grateful for any help.

Thanks Manuel