Powerwall max charge control

I want to set an automation for when my solar output exceeds a threshold to divert that energy to the grid rather than charge a Powerwall 2 (or charge the car for that matter).

My logic is to set a max charge to xx % (= to the current charge %) when solar exceeds xx kW, but I find no way to set the max charge of the PW like I do in the MY. I have the solar rate trigger and tested to set the PW reserve %, however cannot find any logic to stop the PW from charging.

I have automations to charge the PW from the grid when my supply rate falls below a certain threshold, however this one has me stumped…

TIA.