You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 config ~/.lgtv/config.json has the correct MAC address of the TV and running wakeonlan 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 the exec_command("on") sometimes don't print even though that's the line that freezes.
simplewatcher=hs.caffeinate.watcher.new(function(event_type)
event_name=event_type_description(event_type)
log_d("Received event: " .. (event_typeor"") .."" .. (event_name))
iflgtv_disabled() thenlog_d("LGTV feature disabled. Skipping.")
returnendif (event_type==hs.caffeinate.watcher.screensDidWakeorevent_type==hs.caffeinate.watcher.systemDidWakeorevent_type==hs.caffeinate.watcher.screensDidUnlock) thensw_info=exec_command("swInfo")
log_d("got info: " ..sw_info)
ifnottv_is_connected() thenlog_d("TV was not turned on because it is not connected")
returnendlog_d("before power on")
exec_command("on")
log_d("after power on")
endend)
The text was updated successfully, but these errors were encountered:
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: #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.The text was updated successfully, but these errors were encountered: