3 ms·
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 ge
by bioemerl 4y ago
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.
- cesarb 4y ago> I discovered that if the server gets hard shutdown by killing the power it will automatically start back up when the power turns on. That's usually a configuration option in the BIOS setup screen, what to do on power loss: "Last state" or "Off", and your server probably has it configured as "Last state".
- counttheforks 4y agohttps://www.home-assistant.io/integrations/wake_on_lan/ https://www.home-assistant.io/integrations/wake_on_lan/ and https://www.home-assistant.io/integrations/shell_command/ https://www.home-assistant.io/integrations/shell_command/ with `ssh server poweroff` if you want something a bit less risky measure the power draw from your smart plug when the machine is on & off, then use that to set up https://www.home-assistant.io/integrations/switch.template/ https://www.home-assistant.io/integrations/switch.template/ which combines all of this
- bioemerl 4y agoOh man, that shell command is awesome. I could set it up to run some of the services I have to manually do from my phone right now. Thanks for that information.