We have a Solaredge inverter and battery. It’s completely controllable through Home Assistant using the excellent
As for discharging the battery into the car battery, with Solaredge you can shut the battery off when you’re charging the car battery to prevent that from happening.