WOL and LG Smart TV Discovery 2012+

Probably need to go to LG support, but thought someone smart here might be able to answer.

I'm guessing my TV doesn't support Wake on LAN ...but having a real problem verifying that.
I have a LG OLED65B7A running WebOs 3.9.2-6270911. I am no expert here, but I think you can only upgrade the TV OS...not the WebOS. I did see something that said version 3+ should support it. But I'm having no luck Googling for what version does because all I find are post trying to solve it.

I was able to discover the TV and turn it off. I can't turn it on. Apparently, I am not alone. I read several blogs that said you could fix this by turning off the quick start feature and that it only worked on wireless. I saw one post that said it worked on hardwired if you turned off that feature as well. I've tried both. Neither worked.
I have the LG Apps feature enabled, and it connected, but it also can't find a turned off TV.

I see this in the log...
dev:4332024-08-18 05:13:26.109 PMerrorgroovy.lang.MissingMethodException: No signature of method: static com.hubitat.hub.service.LanService.sendWOLMagicPacket() is applicable for argument types: (java.lang.String, java.lang.Integer) values: [MY MAC, 0] (method on)

Anyway...thanks for any help.

The error message says the the call failed because the arguments to sendWOLMagicPacket() are not the correct type(s) - where is this documented and what are you using to call that?

Even if you fix that you still don't know that the TV woke up - It might take minutes to start or 10 seconds or get hung up on a 'firmware update is available` screen. I have long ago abandoned WOL as being useful but that might just be me.

Thanks...been busy. I wonder if this is a port number problem. LG's may use port 9761 from what I see online, while most WoL ports I know are UDP ports 7 and 9. I'll try installing the app again, but I can't remember I that was definable in the app...I know it's not on the TV.

Please, what app is this?

Sorry...thought I'd already deleted the app code, but I have not.

LG Smart TV Discovery 2012+

LG WebOS TV Discovery

@ccoupe is asking for more information to try to understand which specific app or driver you installed on your Hubitat hub.

The name of the app, by itself, isn’t particularly helpful.

How did you find the app code and install it on your hub? Do you know the name of the developer who wrote the code?

LG+
Original Author: Sam Lalor

  • Ported to Hubitat by: Mike Magrann, 3/27/2019
  • Modified to support WebOS SSAP protocol: Cybrmage, 7/18/2019
  • portions of the websocket code modified from the Logitech Harmony plugin by Dan G Ogorchock

WebOS
Copyright (C) Sebastian YEPES

  • Original Authors: Sam Lalor, Andrew Stanley-Jones

The Web OS one is in Hubitat Package Manager...it's been months since I installed them. I'm guessing I found the other in a Blog or a Google search.

I don’t think that code is maintained anymore. The dev hasn’t posted here in this forum for a year, and I believe there may have been changes on LG’s end that have resulted in a generally broken integration.

Thanks for taking the time in trouble to look into that. I certainly have workarounds, but it would’ve been nice to be able to control the LG TV directly without the Harmony app being involved….

Hi,
I have the same issue. I can wake up the TV using the LG App (LG ThinQ) and I can also wake up the TV, using a Powershell script

However using this Hubitat driver fails to wake up the TV.

I used ChatGPT to create the two files above (forgive me).

I used wireshark to analyse the network traffic and also sent this to ChatGPT and it provided this analysis.

However when ChatGPT proposes adjustments to the driver, it introduces errors that it had previously fixed.

I feel that I'm very close, but after working on this for hours, I reaching out for help.

Finally got it to work by using this post here.

Thanks!!!