klattimer / LGWebOSRemote

Command line webOS remote for LGTVs
MIT License
511 stars 99 forks source link

Possible to adjust energy saving settings? #155

Open jorlarsen opened 7 months ago

jorlarsen commented 7 months ago

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

klattimer commented 7 months ago

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?

jorlarsen commented 7 months ago

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