So, fun story. I've got an "AI" server which has three P40s and a M40 in it. I'm doing my own version of "off while idle".
I discovered that if the server gets hard shutdown by killing the power it will automatically start back up when the power turns on.
As a result I just set up home assistant with a power toggle and when I want the server off or on I can start it up by restoring the power.
Way more brute force than this guy's solution, but hey, it works.