JPersson77 / LGTVCompanion

Power On and Off WebOS LG TVs together with your PC
MIT License
992 stars 40 forks source link

Only turn off the TV and shortcuts #46

Closed imartz0 closed 2 years ago

imartz0 commented 2 years ago

Hello, I wanted to know if it is possible to just synchronize the turning off of the TV I also wanted to know if I can only use the shortcuts, if I uncheck "restart" in the settings the shortcuts don't work Thank you very much

JPersson77 commented 2 years ago

Hi @imartz0,

That is not exactly possible! I can consider adding it as an option.

What you describe about unchecking "restart" and not being able to use the command line sounds like a bug - will investigate!

You can certainly control the TV using only the command line (i e no automatic on/off...). First you need to disable the automatic management of the device in the UI or using the command line and then you can run the executable with the proper command line argument. Reference to the readme: link

JPersson77 commented 2 years ago

Actually, come to think of a sort of workaround which in effect do what you want, temporarily. If you have automatic management of the display enabled in the UI but change the MAC-address of the display (in the configuration) to something which is invalid then I would assume the display will not turn on automatically, but it should still turn off properly. Not exactly a pretty workaround, but it might achieve what you want for now :)

imartz0 commented 2 years ago

Hi @imartz0,

That is not exactly possible! I can consider adding it as an option.

What you describe about unchecking "restart" and not being able to use the command line sounds like a bug - will investigate!

You can certainly control the TV using only the command line (i e no automatic on/off...). First you need to disable the automatic management of the device in the UI or using the command line and then you can run the executable with the proper command line argument. Reference to the readme: link

Hi again, It worked perfect since I configure it using AHK but now it stop working. Only the command to turn on the tv works. Thank you!

JPersson77 commented 2 years ago

Hi @imartz0 can you paste a log over at pastebin please and also indicate the timecode when the issue occurs so I can have a look?

imartz0 commented 2 years ago

Hi @imartz0 can you paste a log over at pastebin please and also indicate the timecode when the issue occurs so I can have a look?

I fixed it by rescanning the tv again. Thank you!

JPersson77 commented 2 years ago

Good to hear! Maybe double check that you have set your router to permanently assign the same IP to the TV. THanks too!