-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set_picture_mode() method doesn't work #30
Comments
This function cannot actually switch between pc and non-pc mode. What this function call will do is change the picture mode in the pc mode. So if you call that and then manually change hdmi_2 to pc-mode, then you should find that the picture mode has been set to expert2. I'm not aware of exactly how to automatically change between pc-mode and non-pc mode (but it's likely possible by manipulating other settings through similar api calls) |
I see, and indeed works like this, thanks. |
1 more question, how can I use
|
I don't think you can do that using the command line. Everything is possible from a python script :) |
Yes, you are right, not by default, but it can be achieved by passing dictionary via JSON string (although dunno how to automate this for every argument, maybe checking that argument string starts and ends with And thanks, it works from a script well: import asyncio
from aiopylgtv import WebOsClient
async def runloop():
client = await WebOsClient.create('192.168.1.78')
await client.connect()
settings={"brightness": "75"}
await client.set_current_picture_settings(settings)
await client.disconnect()
asyncio.run(runloop()) |
For changing pc mode I THINK it would be something like
|
Thanks, but it doesn't seem to do anything (non-PC HDMI2 input is selected). |
Yah unfortunately this method of accessing the settings can't return any error messages, so it's a bit difficult to debug. |
Actually the PC mode trick works! :) |
I updated the PC mode PR to only apply to the selected HDMI input. |
Hi Josh!
Thanks for adding these new methods!
set_current_picture_mode()
works fine here:aiopylgtvcommand 192.168.1.78 set_current_picture_mode expert2
But not
set_picture_mode()
:aiopylgtvcommand 192.168.1.78 set_picture_mode expert2 hdmi2_pc
Basically, I try to switch to the same preset but into PC mode from non-PC mode. Does it work for you?
Thanks
TV: LG B8, fw 4.10.25, webos 4.1.0-5511
The text was updated successfully, but these errors were encountered: