# LG WebOS better integration

**URL:** <https://community.homey.app/t/lg-webos-better-integration/15007>\
**Category:** Apps\
**Tags:** app\
**Created:** [July 1, 2019, 7:50am UTC](https://community.homey.app/t/lg-webos-better-integration/15007 "2019-07-01T07:50:49Z")\
**Posts on this page:** 20\
**Page:** 23

<div class="post-metadata">

**Author:** ![molensky](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/molensky/32/13037_2.png) [@molensky](https://community.homey.app/u/molensky)\
**Post date:** [February 5, 2023, 6:20pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/445 "2023-02-05T18:20:33Z")

</div>

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? 🤞 I’m willing to assist and test if needed.

---

<div class="post-metadata">

**Author:** ![9ixxerlee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/9ixxerlee/32/34726_2.png) [@9ixxerlee](https://community.homey.app/u/9ixxerlee)\
**Post date:** [February 11, 2023, 2:57pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/446 "2023-02-11T14:57:31Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![MaxvandeLaar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maxvandelaar/32/18367_2.png) [@MaxvandeLaar](https://community.homey.app/u/MaxvandeLaar)\
**Post date:** [February 11, 2023, 4:15pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/447 "2023-02-11T16:15:45Z")

</div>

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 😂

---

<div class="post-metadata">

**Author:** ![molensky](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/molensky/32/13037_2.png) [@molensky](https://community.homey.app/u/molensky)\
**Post date:** [February 19, 2023, 6:29pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/448 "2023-02-19T18:29:55Z")

</div>

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

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

```

In lgtv2.js:289

```javascript
      client.connect(host, null, null, null, { rejectUnauthorized: false });

```

---

<div class="post-metadata">

**Author:** ![MaxvandeLaar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maxvandelaar/32/18367_2.png) [@MaxvandeLaar](https://community.homey.app/u/MaxvandeLaar)\
**Post date:** [February 20, 2023, 8:40am UTC](https://community.homey.app/t/lg-webos-better-integration/15007/449 "2023-02-20T08:40:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![basvanderploeg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/basvanderploeg/32/83556_2.png) [@basvanderploeg](https://community.homey.app/u/basvanderploeg)\
**Post date:** [February 21, 2023, 2:49pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/450 "2023-02-21T14:49:53Z")

</div>

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. 🤭

---

<div class="post-metadata">

**Author:** ![Arjank95](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arjank95/32/17429_2.png) [@Arjank95](https://community.homey.app/u/Arjank95)\
**Post date:** [February 25, 2023, 9:29am UTC](https://community.homey.app/t/lg-webos-better-integration/15007/451 "2023-02-25T09:29:47Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Bjarte\_Heigre](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjarte_heigre/32/69411_2.png) [@Bjarte\_Heigre](https://community.homey.app/u/Bjarte_Heigre)\
**Post date:** [February 25, 2023, 1:46pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/452 "2023-02-25T13:46:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [February 25, 2023, 3:55pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/453 "2023-02-25T15:55:34Z")

</div>

Via [CLI install](https://community.homey.app/t/how-to-cli-install-method/198), prior to that adjust the source code you download from [GitHub - MaxvandeLaar/homey-webos-plus: Improved LG WebOS integration for Homey](https://github.com/MaxvandeLaar/homey-webos-plus)

---

<div class="post-metadata">

**Author:** ![Arjank95](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arjank95/32/17429_2.png) [@Arjank95](https://community.homey.app/u/Arjank95)\
**Post date:** [February 25, 2023, 10:44pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/454 "2023-02-25T22:44:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Bjarte\_Heigre](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjarte_heigre/32/69411_2.png) [@Bjarte\_Heigre](https://community.homey.app/u/Bjarte_Heigre)\
**Post date:** [February 26, 2023, 10:04am UTC](https://community.homey.app/t/lg-webos-better-integration/15007/455 "2023-02-26T10:04:37Z")

</div>

Thanks! I’ll give it a go.

---

<div class="post-metadata">

**Author:** ![Bjarte\_Heigre](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjarte_heigre/32/69411_2.png) [@Bjarte\_Heigre](https://community.homey.app/u/Bjarte_Heigre)\
**Post date:** [February 26, 2023, 9:40pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/456 "2023-02-26T21:40:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [February 26, 2023, 11:13pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/457 "2023-02-26T23:13:28Z")

</div>

> [@MaxvandeLaar](#):
>
> Hey everyone,
> 
> So, a long time ago I said I was working on creating Alerts with buttons right? I got it working 😉 I can now create an Alert (not a toast) and add buttons to it that can launch applications for example

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.

---

<div class="post-metadata">

**Author:** ![Quin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quin/32/18386_2.png) [@Quin](https://community.homey.app/u/Quin)\
**Post date:** [March 1, 2023, 8:24pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/458 "2023-03-01T20:24:04Z")

</div>

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

Thanks!

---

<div class="post-metadata">

**Author:** ![iBosvelt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ibosvelt/32/47824_2.png) [@iBosvelt](https://community.homey.app/u/iBosvelt)\
**Post date:** [March 2, 2023, 3:54pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/459 "2023-03-02T15:54:31Z")

</div>

Did you previously used the Athom LG-app?

You can t connect both

---

<div class="post-metadata">

**Author:** ![Quin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quin/32/18386_2.png) [@Quin](https://community.homey.app/u/Quin)\
**Post date:** [March 7, 2023, 10:17am UTC](https://community.homey.app/t/lg-webos-better-integration/15007/460 "2023-03-07T10:17:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 7, 2023, 11:59pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/461 "2023-03-07T23:59:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Quin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quin/32/18386_2.png) [@Quin](https://community.homey.app/u/Quin)\
**Post date:** [March 8, 2023, 7:37pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/462 "2023-03-08T19:37:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [March 17, 2023, 6:59am UTC](https://community.homey.app/t/lg-webos-better-integration/15007/463 "2023-03-17T06:59:49Z")

</div>

FYI

> <https://github.com/MaxvandeLaar/homey-webos-plus/pull/56/commits/53983f87ca51e460c4870cca5ee02d3ea08e14f2>

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

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

---

<div class="post-metadata">

**Author:** ![basvanderploeg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/basvanderploeg/32/83556_2.png) [@basvanderploeg](https://community.homey.app/u/basvanderploeg)\
**Post date:** [March 17, 2023, 9:35am UTC](https://community.homey.app/t/lg-webos-better-integration/15007/464 "2023-03-17T09:35:41Z")

</div>

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

> <https://github.com/MaxvandeLaar/homey-webos-plus/pull/55/files>
>
> Change to connect over secure websockets to LG WebOS and ignore the certificate …error UNABLE\_TO\_GET\_ISSUER\_CERT\_LOCALLY.
> 
> Please verify if the secure websocket connections are also supported on older models. If not, this PR can be a starting point to allow both methods.
> (See https://community.homey.app/t/lg-webos-better-integration/15007/433)

[Previous page](https://community.homey.app/t/lg-webos-better-integration/15007.md?page=22)

[Next page](https://community.homey.app/t/lg-webos-better-integration/15007.md?page=24)
