Announcement

Collapse
No announcement yet.

Activate Screensaver

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Activate Screensaver

    Is there a way that i can call an action in events that can activate the screensaver mode on a Kodi client 17.x or newer.

    I have Kodi on some Pi3 and they turn off the TV when the screensaver goes on (CEC control). So i would like to have an event that uses the screen saver mode to turn off the kids TV.

    How can i do this?

  • #2
    you can try an event like this

    Kodi Action
    Action Type: GUI Activate Window
    Instance: your instance
    Window: screensaver

    But I doubt it does what you want. From my quick test it activates the screensaver, but then to deactivate it you need to send another GUI Activate Window action with Home as the Window parameter.

    Comment


    • #3
      Originally posted by spud View Post
      you can try an event like this

      Kodi Action
      Action Type: GUI Activate Window
      Instance: your instance
      Window: screensaver

      But I doubt it does what you want. From my quick test it activates the screensaver, but then to deactivate it you need to send another GUI Activate Window action with Home as the Window parameter.
      You are correct, is does not work.
      The screen just goes blank. So this function does not call the configured screensaver, as i have the screensaver configured as 'Dim'

      There must be another solution to call the configured screensaver.
      I have the screensaver set to 15min, so if kodi is not used for 15min, the TV is powered off.

      But would like HS to control it.
      Last edited by ldplusse; November 20th, 2017, 06:16 PM.

      Comment


      • #4
        Any comment on this.
        Can i activate the configured screensaver?


        Sent from my iPhone using Tapatalk Pro

        Comment


        • #5
          I couldn't find a way to activate the screen saver from the API

          However I find some simple script addon that allows you to send some CEC commands through the API: https://github.com/joshjowen/script.json-cec

          install the addon

          then from an HS Event action, use the Execute Addon action with
          id = script.json-cec
          parameters = {"command":"standby"}

          I haven't tested it, but it should work

          Comment


          • #6
            Thanks. Sounds a little complicated.
            But will give it a shot in the near future.


            Sent from my iPhone using Tapatalk Pro

            Comment

            Working...
            X