Hello, I'm having some trouble using HASS.Agent's monitor wakeup command. Here's some context, please ask if I missed something, sorry for the wall of text.
What I'm trying to achieve: Protect my OLED panel from burn-in by putting it to sleep when I step away from my desk and turn it back on when I return, without affecting the current task at hand (most likely a game that's running).
My setup: My monitor has a built-in KVM switch with all peripherals connected directly to the monitor. I have a Everything Presence Lite with Zone configured to detect occupancy at my desk. I have WoL configured in Windows and BIOS, fast startup disabled and hybrid sleep disabled through group policy. Automations setup in Homeassistant to sleep/wakeup the monitor based on Zone presence.
What works: I did a test for this and it works perfectly when I had a YouTube video playing in full screen. I am able to sleep and wake the monitor.
What doesn't work: When I have some (Red Dead Redemption 2) game running, wakeup doesn't work.
What I've tried that hasn't worked: Using key and multikey command to send key code 124 (F13 key). Using WoL to send a magic packet. Turning the monitor off and on.
What I've tried that has worked: Switching my keyboard from cable to 2.4GHz wireless mode with the dongle connected to the PC and pressing a key (I have to do this because my Keyboard turns off with the monitor). Clicking somewhere on my second monitor before the monitor is put to sleep so that the game is not in the foreground anymore (active window shows as Program Manager rather than Red Dead Redemption 2).
My best guess: HASS.Agent does monitor wakeup using a key press input which is eaten up by the game when it is in the foreground. I think this is the case because the Windows (Super) key also doesn't work when I'm in the game, unless I click somewhere on the second monitor before pressing it.
Is there some solution to this that can be automated?
Thanks in advance for any suggestions.
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
H
HASS.Agent
HASS.Agent's discord community server for getting help and chatting with other users.