LGWebOSRemote icon indicating copy to clipboard operation
LGWebOSRemote copied to clipboard

Possible to adjust energy saving settings?

Open jorlarsen opened this issue 1 year ago • 2 comments

Hi, I just wondered if it is possible to change the energy saving settings (screen brightness) with this tool?

jorlarsen avatar Feb 07 '24 19:02 jorlarsen

It should be possible, especially considering we now have cursor support in there although it might be a bit around the houses.

It might even be worth implementing a setBrightness stub in the code if there is a web remote method for it now.

It would be something like this in remote.py

def setVolume(self, level, callback=None):
    self.__send_command("request", "ssap://audio/setVolume", {"volume": level}, callback)
    

You'd have to figure out the url though, maybe ssap://display/setBrightness?

klattimer avatar Feb 07 '24 19:02 klattimer

Great, will give it a shot in the near future 👍

jorlarsen avatar Feb 07 '24 20:02 jorlarsen