What solar inverter has local control for switching between battery charging vs grid feeding

So I am looking to install 10kW solar array with char charger and I am looking for hybrid inverter.
The ‘deal braker’ for me is the ability to control the where the inverter is sending power locally preferably with a native manufacturer maintained api or protocol.

I think the best control I saw was for Huawei inverter: GitHub - wlcrs/huawei_solar: Home Assistant integration for Huawei Solar inverters via Modbus
With second best being Sungrow
GitHub - mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant: Sungrow SH Integration for Home Assistant for SH3K6, SH4K6, SH5K-20, SH5K-V13, SH3K6-30, SH4K6-30, SH5K-30, SH3.RS, SH3.6RS, SH4.0RS, SH5.0RS, SH6.0RS, SH5.0RT, SH6.0RT, SH8.0RT, SH10RT, SH5.0RT-20, SH6.0RT-20, SH8.0RT-20, SH10RT-20, SH5.0RT-V112, SH6.0RT-V112, SH8.0RT-V112, SH10RT-V112, SH5.0RT-V122, SH6.0RT-V122, SH8.0RT-V122, SH10RT-V122, SH4.6R
I also heard good things about Fronius

My initial choice was Huawei however I heard that you can only connect branded batteries to them and that is not ideal.
Also my utilities company issues fines if there is even a little more energy supplied than it is permitted, so having that controlled reliably is very important.

P.S. I apologize for another inverter topic however I am a littler overwhelmed and trying to get multiple sources for things.

I’m using 2 Goodwe inverters (GW5048ES) and can control them via the HA Goodwe integration. It’s not perfect - currently it’s using UDP which is not 100% reliable, but I’m going to switch to RS485 which should work better, but by and large it works pretty well. I have it set up to automatically switch to discharge mode when the feed-in price spikes, as it did this evening, and sets a zero export limit when the feed-in price goes negative.

Good to know it is an option.

This is one of my concers. I want avoid a situation where manufacturer issues OTA an update that breaks existing integrations. I would love to see an option with natively supported local control.
Am I just being naive? Is the subscription cash model is to much of temptation for any company to not attempt it?