Try the EMHASS project:
https://community.home-assistant.io/t/emhass-an-energy-management-for-home-assistant/338126
But I think you’ll have to figure out yourself how to control the battery (maybe ask SMA).
Try the EMHASS project:
https://community.home-assistant.io/t/emhass-an-energy-management-for-home-assistant/338126
But I think you’ll have to figure out yourself how to control the battery (maybe ask SMA).