I operate a rooftop solar power station. While I have scripted all the individual components like battery management, Inverters and the various sinks (for where the power goes when it’s not needed immediately) using Grafana to get alerts, I use automation to activate the various scenes and settings to maximise the useful power I get from the system.
https://gridwatch.templar.co.uk
link with added security