Yes, here is a python script to grab data and send to a MQTT server to do exactly what you describe. On OpenEVSE you would enable Eco mode - Solar divert and the station would follow along.
https://github.com/OpenEVSE/Solar_MQTT
The script prioritizes filling the Powerwall until it gets to the target State of Charge Default is 90%, then the Vehicle gets all the excess production.
Elias