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.
Yup, and this wasn’t fiction https://www.imdb.com/title/tt11846996/