richibrics / IoTuring

Your Windows, Linux, macOS computer as MQTT and HomeAssistant integration
https://pypi.org/project/IoTuring/
GNU General Public License v3.0
70 stars 6 forks source link

Add hibernate to Power Entity #95

Closed infeeeee closed 4 months ago

infeeeee commented 7 months ago

Idea from #94

Windows command:

%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate

Source: https://superuser.com/questions/463646/is-there-a-command-line-tool-to-put-windows-8-to-sleep/463652#463652

Linux command:

systemctl hibernate
richibrics commented 7 months ago

Sure I agree, I though the same while reading the discussion