Skip to content

2.1.1-beta2-monitorsleep

Pre-release
Pre-release
Compare
Choose a tag to compare

Please 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.
obraz

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.

  1. Install the test version from the release
  2. Launch HASS.Agent
  3. Close (exit from) HASS.Agent so it's not running in the background
  4. 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)
  5. Add following line at the bottom of the json
"PreventDeviceSleep": true

obraz

  1. Launch HASS.Agent
  2. 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
  1. (Optional) Run terminal/cmd as administrator and use "powercfg /requests" to view the power requests, you should see the following
    obraz

  2. Add "MonitorSleepPowerPlan" command and test :)

Copy paste of my explanation regarding the sleep issue:

fiWJ6N