Toggle smart plug based on solar power and output power (car charger)

Hello,
I’ve made this simple flow to turn on my car charger whenever there is more than 2500W being generated by my solar panels:

However, I want to make this flow a bit more “smart” by turning off the plug when my car is charged (the Device Capabilities card) but of course this fights with the initial card (DC says it’s done, but then the Energy Dongle says it needs to turn back on).

Basically what I would need is that the plug stays on while charging even if power becomes more than -2500W; I don’t want it to stop when a cloud passes for example. Although it would be nice of course to achieve a high level of efficiency whereby the car only charges when power stays below -2500W (say it becomes overcast for the rest of the day, then I don’t want to be charging).

Then when the car is charged (output power of the plug is less than 5W) it should turn off the plug.

So there’s basically two triggers that can turn off the plug (solar power or plug output power) and one trigger to turn it on (solar power becomes more than 2500W).