HASS.Agent icon indicating copy to clipboard operation
HASS.Agent copied to clipboard

Both sleep/hibernate options only hibernate pc, can't put pc in sleep state

Open erbmur opened this issue 2 years ago • 5 comments

Hello, I am running windows 11 along with agent 2022.14.0. I have setup two commands, one to hibernate, and one to sleep on hass.agent. No matter which one i pick, the computer will hibernate, there doesn't seem to be a way to get it into a sleep state. Is there a seperate option I am ment to click somewhere to get the sleep state to work as well as hibernate? Thanks in advance!

erbmur avatar Feb 16 '23 23:02 erbmur

Having the same issue. The app description says if hibernate is enabled, sleep will just hibernate the PC. I have hibernate disabled in the power options, but still sleep hibernates the PC.

backslashV avatar Mar 25 '23 08:03 backslashV

For now, I came up with this solution to put the computer to sleep without any extra software. I am using a MultipleKeys button with these keycodes: [^{ESC}] [{TAB 5}] [{RIGHT}] [{ENTER}] [{DOWN}] [{ENTER}] [{ESC}]

backslashV avatar Mar 25 '23 08:03 backslashV

This is actually a Windows by design feature that I've had to find the hard way. I've used this registry key on to disable every sleep & hibernation mode possible: reg add HKLM\System\CurrentControlSet\Control\Power /v PlatformAoAcOverride /t REG_DWORD /d 0

It's worked previously on a Windows 10 & Windows 11 device, as it would stop them going to sleep or hibernation when I'd turn the display off, however on my most recently installed machine it's putting it to sleep - so I'll need to play around some more.

loryanstrant avatar Apr 06 '23 23:04 loryanstrant

same issue

GOUKI9999 avatar Aug 31 '23 05:08 GOUKI9999