LG WebOS better integration

Hi @MaxvandeLaar, I’m confident it’s because LG made a change to block unsecured websockets and only allow secure connections. I was able to verify using Postman. A connection to port 3000 (ws://) was blocked. Connections to port 3001 (wss://) are successful and I was able to register, send requests and subscribe to events.

Problem is their certificate and intermediate CA aren’t in the trust store. I haven’t found an easy solution to ignore the certificate error.

Are you able to make a fix? Does your tv support both ws and wss? :crossed_fingers: I’m willing to assist and test if needed.

Hi,

Recently my Lg App is not working. So i have removed all the LG TV and reinstalled the app.

Managed to act in a 2016 LG model with no issue.
But now i have problem adding the 2022 model with WebOS 7.3.0-14 (mullet-mebbin).

Homey is able to detect the model when adding but no pairing message being send to TV to further add it. Till it timeout and app will stop unexpectedly.

What is the issue?

1 Like

Probably has to do with the post above yours. I don’t have a fix at the moment and unsure if I ever will have a fix. I don’t experience these problems and it’s unlikely someone gifts me a 2022 lg tv :joy:

2 Likes

Hi @MaxvandeLaar, I’ve made a few changes and for me I can control my LG tv again. I’ve made a pull request for you to validate if the change also works on older models. If not, it might help you in creating a version which accomodate both connection methods. Just not sure what the best method would be to distinguish.

In WebOS.js:42

    this.lgtv = require('../lgtv2/lgtv2')({
	  url: `wss://${this.getSettings().ipAddress}:3001`,

In lgtv2.js:289

      client.connect(host, null, null, null, { rejectUnauthorized: false });
4 Likes

Hi @molensky thanks for doing all the heavy lifting here! I’ll have seen the PR and that looks good, just need to test it on my older TV as well. If that doesn’t work, we always have the option to create a new driver so users can choose between different WebOSs when adding a TV.

3 Likes

Awesome! I can confirm this works on my C2 OLED model too.

Now only waiting for a version that can work with my Homey Pro 2023. :face_with_hand_over_mouth:

Since a few days my TV (LG GX 2020) turning on or off isn’t detected anymore.
Sounds like the same problem as mentioned above here.
Is there a working solution/update?

Hi. How can I get my app to do this? #noob

Via CLI install, prior to that adjust the source code you download from GitHub - MaxvandeLaar/homey-webos-plus: Improved LG WebOS integration for Homey

:bulb: A planned restart of the LG Webos Plus app every night does the job for now! Then the TV is recognized the next day…

Thanks! I’ll give it a go.

Confirmed that the molensky-tweak works on my C2. Thanks to everyone :smiley:

1 Like

Any chance we can have this feature in an upcoming release? I would really like this, since the toast notification is only displayed for 5 seconds. A simple alert with only an OK button would be nice, even if it doesn’t report anything back to Homey.

How about an updated version of the app? Please I’m a noob wit no time :wink:
Same problem as above. 2022 tv, no pairing message…
@MaxvandeLaar

Thanks!

Did you previously used the Athom LG-app?

You can t connect both

I only have the ATHOM LG web-os? (V4.1.2) Is there another one?

Yes, the HCS version by Max is here: https://store.homey.community/app/com.maxvandelaar.webos-plus

It seems i have the same problem status here. (recent TV: CS6LA)
The app is only capable to switch the TV on, not off, nor other functions.
The polling function also works.
Hoping for a fix soon ! let me know if i can help @MaxvandeLaar.

FYI

@DominicVonk THANK YOU ! (hopefully now in right thread :wink: )

Anyway, HCS SDK3 is not ready yet, shall be possible to install it via CLI however (don’t have HP2023 yet)

1 Like

That’s great. Managed to control my 2022 OLED on Homey Pro 2023 again by combining @DominicVonk’s code with these fixes:

1 Like