HI
I have HASS agent putting my PC to sleep with a button press from dashboard, and I wake atm with a keypress on my kb.
I want to also switch my TV off when I put the PC into sleep.
I created an automation firstly including the sleep command and then if sleep command then TV entity off.
It works but when I wake the PC again with KB the TV will switch off after about 5 seconds after booting in to Windows 11.
Its like it thinks I have hit sleep again but Im not using the sleep command to wake the PC ofc.
Any ideas?