Closed xane256 closed 7 months ago
Unaware of this ticket, I just made an improvement to the "on" command so it no longer tries to create a websocket connection to the TV when we want it to turn on: https://github.com/klattimer/LGWebOSRemote/pull/141. It has been merged in now. It's possible that might help you out.
I am experiencing an issue similar to #124, using an LG C3 42", model OLED42C3PUA The command
lgtv --name c3 --ssl on
works and turns on the TV but doesn't return / exit. So Hammerspoon is able to turn on the TV but it hangs afterwards and requires force quitting.The output of the above command is
The config
~/.lgtv/config.json
has the correct MAC address of the TV and runningwakeonlan 84:90:0a:95:02:18
in a shell correctly turns on the TV and exits.Here is a watcher I added to
lgtv_init.lua
while troubleshooting. I replaced the provided watcher with this one. The print statements before theexec_command("on")
sometimes don't print even though that's the line that freezes.