Wallbox Pulsar Plus load balancing

Our car is able to charge at maximum 3600W / 16A
we are in possesion of a Wallbox Pulsar +
the connection with the wallbox app on the homey works excelent.
Also a P1 meter is available in the wallbox.

I am looking for someone who can help me define a (advanced) flow to do the following:

When the wallbox starts loading it needs to start at 1 Amp.
If the P1 power is negative (supply to the net) increase charging speed untill the power is around 0
If the P1 power is positive pause charging and continue if the power is negative again.
I think there should be a delay in switching to prevent fast changes. please advise if you have experience on this.

Problem I am facing is that I can not figure out how to put the calculation in the (advanced) flow. If the charging amps are to be changed it should also include the actual amps, otherwise it will create an oscilation effect.

Hope someone can help me in the right direction.

Is this your own wish? Or is it from the specs?

Most cars require at least 6A to even start charging.
So setting the wallboard to 1A might result in “no charging

I calculate the new required charging current this way (be aware: this is for 3 phase, so I use the sum of all 3 phases)
LSenergy stored is the calculated current on the P1 meter, Current P1 is the measured current of phase1 on the charger

The new current is calculated by substracting the current from this.
(So if I return to grid (negative current) it will result in an increase of the current of my charger

PS: this is not load balancing. It’s making sure you use the maximums your produced energy… (steering from negative to zero)

Load balancing is preventing you plugs are blown because multiple devices are using power. (Steering to max 16A usage)