Posts by Jooobs

    Thanks for the reply vpeter....

    I've pressed the power button so many times I'll soon have RSI!

    The thing is if I press any other button (such as the home button) then press the power button the script runs just fine. I'm starting to suspect it is the something to do with the software\drivers for the RF remote and that the power button is somehow different from all the others. Not sure how to proceed though.

    Hello All

    I have a raspberry Pi 3 setup with the latest LibreELEC version (brand new install) in my office\guest room and have it connected to a basic 32 inch monitor (that I also use for work), I have been working on this as a fun little project to set it up as a smart TV for any guests that stay (so it needs to be very simple to operate - think mother-in-law!).
    To switch the monitor off or on, I have a python script that detects the state of a smart plug and turns it off if currently on, or on if currently off. I trigger the script via the power button on one of those very basic RF Kodi remotes using keymap.

    My basic requirement is that I need the power button on my remote to toggle my smart plug.

    It all works really well apart from one frustrating problem: If the screensaver has kicked in, the script just will not trigger! I can get around this by pressing the Home button on the remote to get out of the screensaver and can then turn the monitor on\off via the power button / script (but that is not gonna fly with Mother).

    Any thoughts on what could be happening here? the Keymap 'Runscript' feature is obviously working because when I exit screensaver it triggers successfully... I've scoured the Kodi.log intently and don't see any clue there - just nothing happens, nothing logged when in screensaver, while conversely the script is logged when not in screensaver. I've also tried multiple global\fullscreenvideo\visualisation XML setups in the keymap file all to no avail.

    Any help is appreciated!

    P.S. I've also posted a similar question in the Kodi forum but haven't been able to get a solution