LG WebOS better integration

At this point, as far as I know sending a toast message with an image is not possible. A toast message without image is. Turning on is done via WoL so that has nothing to do with WebOS… turning off has, but that seems to work fine at the moment. I don’t want to give anyone false hope, but it’s most likely safe to buy a new LG tv for now… however no promises :wink:

1 Like

Ah no wonder. I’m using webOS 04.71.25 on a C9. Yes they are on the same network. I have no issues with it working with the LG TV Plus app. Thanks for the info!

1 Like

@CyberMew I am a bit confused. Is my app working for you or not? Or is it only working with the official LG app for smartphones?

If the latter is the case, I could try to decompile the Android app and figure out what api they use. Since I finished the first major release of the Homey Community Store (https://store.homey.community) I might find some time to see what’s going on.

1 Like

Only the official app is working for me. This is the app on the iOS AppStore https://apps.apple.com/app/lg-tv-plus/id838611484

It recently even supported webOS 5.0 so maybe you might be able to find out something there…

I decompiled the Android app (can’t decompile the iOS version), guess what… it’s just a web app and complete written in JavaScript which makes my life a bit easier. I still see references to the ConnectSDK which I use as well so I am not sure why your TV isn’t found. I’ll look closer into this soon.

1 Like

@MaxvandeLaar thanks for your superb app, I love it and it works like a charm with my B9 OLED, just one question. Would it be possible to change the Picturemode with this app? Thanks

@LAW-Mastermind thanks! So if it is not possible selecting picture mode via the ‘app/input’ card you could go advance :wink:. It is possible to simulate remote control buttons.

You can see an example here Shared Flow | Homey (sorry for the Dutch) where I simulate remote buttons to change the energy saving setting to turn off the screen. If you need any help, let me know :slight_smile:

@MaxvandeLaar Great job with the app. I’ve actually spent some time reading through this thread from the beginning, lol.

I unpacked my first homey today and was looking to get my LG C9 in there, but haven’t been successful so far. Nothing shows up when trying to pair the TV with your app.

No problems at all with installing the app though, it just doesn’t show up. In your docs you mention “ethernet”, does that mean it only works with an ethernet cable or are you actually implying “lan”? I understand that WoL requires an ethernet cable, but pairing should still work if you have a TV connected over WiFi though, right?

Appreciate the good work!

I am not sure if it’s necessary, but did you switch mobile tv to on in the settings from your tv?

@sebstr thank you. With Ethernet I indeed mean a cable connected to your tv. However, some users did report WoL to work without cable as well.

As @Peter_de_Vos already said. You must turn on some settings. It’s been so long since I have done this but there are two settings that might do the trick. In the Network settings there is a LG Connect Apps setting you can turn on. You should probably turn this on. Furthermore, you should turn on Mobile TV, this can be found in the General tab.

Sadly I don’t have any TV running the latest WebOS (can’t buy a new one every year :wink:). So it’s hard to figure out why some things just won’t work. If you need further help. Just send me a private message.

To everyone: If you are a developer and want to help improve it. Yes please, do send me a message as well. Improving the Homey Community Store (https://store.homey.community) is taking up a lot of my time at the moment as well :wink:

1 Like

Well, I was too early to pull the trigger on my post. I had rebooted homey a couple of times, but it never occured to me to restart the TV. Everything started working right away after that! (all settings on TV were already set)

Now I just need to figure out homey flows, wth variables are used for and how to get ikea trådfri buttons to work :joy:

1 Like

Just bought an LG 48 oled. Current version: 3.00.60.

The app is working, but some commands via UI are not working:

  • turn on TV (off does work)
  • change volume

Still testing other functions. And the tv is currently updating its software.

Any suggestions to fix turn on? It’s

I suppose you mean: how to fix turn ON right?

If so, is it connected to the network via an Ethernet? If not, chances are it’s not going to work as the app turns the tv on via WoL (Wake on Lan) which is only supported when connected to a cable. Note: some users reported it worked without cable though. IIRC there is a setting for turning on tv via apps/network. Let me know if any of this was helpful.

No clue why the volume doesn’t work though. To be honest I rarely ever use it myself.

Do these features work if used in a flow?

Yes i meant turn on and yes its connected via Ethernet.

I googled the setting. I’m going to test it right now.

It didn’t work, I found a setting in gerenal to allow TV to be turned on via WiFi.

If I use the WOL app and turn on the TV it does work.

Does it work via the flows though?

I have a LG 55 from the year 2014.

Your App really worked great but Not the wake on lan. But this Gas to work. Only then i can remove the Remote App by Athom

Is my tv top old perhaps? LAN cable is connected and all other things are working with your App.

i just got a CX 2020 with latest os. I see some differences in API behaviour:

  • Screensaver now is state off and the on event is received when the screensaver is ended.
  • cannot select inputs in the set to input/app and other events. Can select the apps.
  • notifications dont work if i use the custom image option using a url. without image it works.

If I’ve learned one thing developing this LG app it’s that LG tv’s do not have a consistent API…

@PhilS I have no clue why WoL is not working, it might indeed be possible your TV itself just doesn’t support it. I believe there is a setting to allow the TV to be turned on over LAN, please double check if that is the case and it is turned on.

@Kaoh

  • This is not intended behaviour?
  • So the inputs don’t show up, but the apps do? If so, there has probably been an API change as well.
  • The notification issue is known… it just doesn’t work with an image on the latest WebOS, no clue what LG did there :pensive:

I am more than willing to help you guys to get everything working as intended, however, TV’s are not something I buy new every year and it’s not a device you can easily debug if there is no API documentation. You can see the logging of the LG WebOS app if you run it via CLI homey app run, I am still figuring out if I can get logs from apps installed via the Homey Community Store. (I assume you all use that now to install my app ← if not please do as I am close to implementing auto-update). The logging would be helpful for me to figure out if and what goes wrong.

@MaxvandeLaar i searched google. My weboS of my TV is 1.4 (2014). This Version of webOs doesn‘t support WOL.