I do control my multiplus2 48/3000 over VE.Bus with an esp32. The esp32 reads the Shelly3EM and tries to nullify net power by charging or discharging the battery.
Code and hardware: https://github.com/PepeTheFroggie/Victron-VE.Bus---esp32
This is derived from PV-Baxi...