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.
I must be too old school because my first thought when i read this was “with an old solenoid lying around and a few lines of code, an AtTiny could strike a key on the bluetooth keyboard, waking the laptop!