2.1.1-beta2-monitorsleep
Pre-releasePlease do not download files from this "release"
It's only purpose is to provide unstable testing for insiders/issue reporters.
Unless explicitly instructed by the developers, please don't download and use anything from this repository :)
Attempt in this test release
To handle newer devices and their "modern sleep"/"s0ix sleep" causing issues with waking up the device.
New command has been added to turn off the screen by manipulating the power plans of the device.
In addition, this build contains hidden option to create a power request preventing the device from going to sleep.
Based on: development-2.1.1-beta2 (latest published beta in the main hass-agent organisation)
Installation instructions
This version requires additional actions that need to be performed after installation.
- Install the test version from the release
- Launch HASS.Agent
- Close (exit from) HASS.Agent so it's not running in the background
- Open the "appsettings.json" file in "installation path\config" (you can open the logs folder from the settings before closing HASS.Agent and then navigate one folder up and to the config folder)
- Add following line at the bottom of the json
"PreventDeviceSleep": true
- Launch HASS.Agent
- Verify that you see following line/s in the log file
2024-11-03 23:07:31.998 +01:00 [INF] [MAIN] Trying to set power request to prevent device sleep
2024-11-03 23:07:32.000 +01:00 [DBG] [MAIN] Power request has been set
-
(Optional) Run terminal/cmd as administrator and use "powercfg /requests" to view the power requests, you should see the following
-
Add "MonitorSleepPowerPlan" command and test :)