Control Sunny Boy Storage with HA

Hi there, I´ll start with a disclaimer, I am a bit slow with getting acquainted to HA…

I have a raspi4 installation running but not in active use.

Plan was/is to control homematic smarthome installation (>>100 devices), and my heating & cooling (NIBE heat pump and several aircons with WLAN), and then continue from there.

I didn’t really get the Nibe controlled so I stalled. (Hope to get to this once I learn a bit more about HA).

But now I have a really urgent topic:

I have a SMA based photovoltaic system: two non hybrid tripowers (STP9000TL-20 & STP5000TL20) as well as a Homemanage2 and a Sunny boy Storage 5.0 with 7.7kWh BYD H battery. All controlled with Sunny Portal, and also read by my OpenWB Wall Box for solar charging the car. (Integration in HA was planned as second priority).

Now I want to extend my solar zoo by an SAM STP8000SE hybrid with 11kWh battery on it. But for some friggin reason SMA only allows one battery per setup. I don´t want to connect the second battery to my SBS5 as I would be limited by charging and discharging at 5kW. I want the 10kW from the hybrid to charge the new battery and the 5 kW from the SBS for the old one.

In the photovoltaikforum.com some one wrote that he has a solution. If you unregister the SBS in the Homemangaer both batteries can coexist in one network, but of course only the hybrid gets controlled from the homemanager.

But the SBS can be controlled via MODBUS! This can be done by reading the power balance (import/export in kW) of the Homemanager power meter function and a self defined logic what to send to the SBS.

Implementations seem to work in FHEM and iobroker. Both of which I do not use - I am looking into setting up a tiny FHEM server just for that purpose, but that is again a steep learning curve.

I would much rather do it in HA, but would need help….

Is this doable at all and who could point me to the help I will need?

Thanx in advance

Hannes