Interesting concept. I have a script that uses long term tokens and curl to tell HA to turn on certain things I need before running a certain game, then turns them back off afterward. Presumably this could take the place of that script.
It's an interesting idea, I wonder what other ideas people will have once it's working.
I just wish I could get my script to disable the screensaver in KDE. I have the command that should do it, and it's changing the right setting (ie, changing the same setting manually in the gui works correctly), but it seems like KDE isn't aware of the config change, and the things I've tried to get KDE to reload that config aren't working. No error, but the screen saver stays active.