# 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:** 25

<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 18, 2023, 10:48pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/485 "2023-03-18T22:48:40Z")

</div>

Installed 3.0.1 this morning. Works great on hp23!

---

<div class="post-metadata">

**Author:** ![Wilfred\_Greven](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wilfred_greven/32/13070_2.png) [@Wilfred\_Greven](https://community.homey.app/u/Wilfred_Greven)\
**Post date:** [March 19, 2023, 2:21pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/486 "2023-03-19T14:21:12Z")

</div>

I have the app new installed and it looks like it is allright, only homey “feels” a little slower.  
After a reboot of homey the app doesn’t work anymore.  
In the app-list on the homey i see no symbol in the red cirkel from the Web-OS app.  
My tv is a oled65cx6la.

---

<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 20, 2023, 9:19pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/487 "2023-03-20T21:19:27Z")

</div>

> [@Wilfred\_Greven](#):
>
> the red cirkel from the Web-OS app.

Seems the integration is working for newest models but is broken for older ones…  
Today I tried to add the TV again and it always failed. Every-time I added TV via [LG WebOS from Athom](https://homey.app/en-us/app/com.lg.webos/LG-WebOS/), it works. For now I’m switching to this version then ;-(

---

<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:** [March 24, 2023, 11:54am UTC](https://community.homey.app/t/lg-webos-better-integration/15007/488 "2023-03-24T11:54:44Z")

</div>

I might have figured out what the problem was. I found two bugs since the SDK3 version. TV’s were registered as unavailable when they could not be reached; as in turned off. A bit weird this was causing issues all of the sudden but okay. So whenever a TV is no longer reachable I now will force it to ‘available’. Furthermore, I found an issue with some flows using special web sockets. They would reject the secured connection and needed some extra love 😉 Anyway fix is incoming today.

PS: I was also working on something else you all might find interesting.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/7/c701ad86b2f94eac7d4e84cbf841c7cc22b0819e.jpeg)

---

<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:** [March 24, 2023, 12:03pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/489 "2023-03-24T12:03:28Z")

</div>

New version `3.0.2` is available in the store and via Github

---

<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:** [March 24, 2023, 4:14pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/490 "2023-03-24T16:14:27Z")

</div>

New version 3.1.0 is available in the store and Github. New version includes an action card to create an alert instead of a toast. Alerts have buttons! You can do stuff with buttons, crazy right. Do you want to watch a series each evening at 19h and don’t feel like looking through all the apps? Create an alert with buttons to launch those apps.

Buttons should be defined as a valid JSON array. See [com.webos.notification | webOS Open Source Edition](https://www.webosose.org/docs/reference/ls2-api/com-webos-notification/#button) for the button definition.

```auto
[
      {
        "label": "Netflix",
        "onclick": "luna://com.webos.applicationManager/launch",
        "params": {"id": "netflix"},
        "buttonType": "confirm",
        "focus": true
      }, {
        "label": "Got to website",
        "onclick": "luna://com.webos.applicationManager/launch",
        "params": {"id": "com.webos.app.browser", "target": "https://example.org"},
        "buttonType": "confirm"
      }
]

```

Per default, there will always be a `Close` button that does nothing but cancelling the alert.

Each app has a different ID and parameters. I don’t know all ID’s, I don’t know all possible parameters 🤷‍♂️. Maybe we should create a list somewhere so we can share them.

---

<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 24, 2023, 5:39pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/491 "2023-03-24T17:39:41Z")

</div>

@MaxvandeLaar Really cool! Unfortunately I can’t make the buttons work.

When I copy-paste your example, I get error:

```auto
Unexpected token } in JSON at position 202

```

When I leave the field empty, the default message (with only the close button) works perfectly fine.

Also tried just one button:

```auto
[
   {
      "label":"Got to website",
      "onclick":"luna://com.webos.applicationManager/launch",
      "params":{
         "id":"com.webos.app.browser",
         "target":"https://example.org"
      },
      "buttonType":"confirm"
   }
]

```

But that gives me this error:

```auto
Message is not parsed

```

---

<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:** [March 24, 2023, 6:15pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/492 "2023-03-24T18:15:12Z")

</div>

Support might be really flaky in this. Maybe the browser or your tv has a different ID? Or different params. Try adding a button with just a label and nothing else. See if that works.

I mean I have 2 lg tvs and one doesn’t support create alert at all. For the one that does work, the timeout does not work 🥲 so it’s a very tricky thing to implement and get it working

---

<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 24, 2023, 6:41pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/493 "2023-03-24T18:41:17Z")

</div>

Fiddled around for a bit. This works for me. Also, the timeout works without any problems.

My alert doesn’t show a title tho, but that’s not that big of an issue.

```auto
[
   {
      "label":"Netflix Test",
      "onclick":"luna://com.webos.service.applicationmanager/launch",
      "params":{
         "id":"netflix"
      }
   },
   {
      "label":"Live TV",
      "onclick":"luna://com.webos.service.applicationmanager/launch",
      "params":{
         "id":"com.webos.app.livetv"
      }
   }
]

```

---

<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 24, 2023, 11:29pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/494 "2023-03-24T23:29:20Z")

</div>

> [@MaxvandeLaar](#):
>
> New version includes an action card to create an alert instead of a toast. Alerts have buttons!

Very neat, it works here with your example JSON, Max.  
_LG webOS UJ630V (4 to 5 yrs old)_

The last JSON of @basvanderploeg show the messagebox, but the buttons act like ‘cancel’. Bas has a newer model I guess?

---

<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 24, 2023, 11:54pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/495 "2023-03-24T23:54:25Z")

</div>

Yeah, I’ve got a C2 OLED from last year.

---

<div class="post-metadata">

**Author:** ![Ferdi\_Eenkhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ferdi_eenkhoorn/32/55782_2.png) [@Ferdi\_Eenkhoorn](https://community.homey.app/u/Ferdi_Eenkhoorn)\
**Post date:** [April 3, 2023, 6:35pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/496 "2023-04-03T18:35:17Z")

</div>

Max, I have WebOS version 2.3.0 installed on my Homey. I checked your website and installed version 3.1.0 but it seems that it wont install on my Homey? I just clicked the button “Installeer” and it says that it wil be instellaed but nothing happened. What do I do wrong?

---

<div class="post-metadata">

**Author:** ![Janbuijs91](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janbuijs91/32/34384_2.png) [@Janbuijs91](https://community.homey.app/u/Janbuijs91)\
**Post date:** [April 13, 2023, 8:40am UTC](https://community.homey.app/t/lg-webos-better-integration/15007/497 "2023-04-13T08:40:18Z")

</div>

I just stumbled upon this app and it works so much better than the one from Athom, so thanks a lot!

Will try to fiddle around a bit with the alerts later this week. I have an OLED77G1RLA (I think from 2021).  
Would it be possible to send an http request to Homey’s IP address when clicking a button on an alert? Preferably without opening up the browser on screen.

---

<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:** [April 13, 2023, 9:42am UTC](https://community.homey.app/t/lg-webos-better-integration/15007/498 "2023-04-13T09:42:11Z")

</div>

@Peter_Kawa I also have an older LG tv (maybe even the same model I can’t remember) but the buttons work for me. But as with everything with LG WebOS. Your millage may vary.

---

<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:** [April 13, 2023, 9:43am UTC](https://community.homey.app/t/lg-webos-better-integration/15007/499 "2023-04-13T09:43:41Z")

</div>

@Janbuijs91 I wanted to actually do the same thing. Or even trigger a flow or something via an Alert. I could not figure it out, the only option I see is to create an LG WebOS app for the TV itself which you can call and that would be able to ‘do Homey stuff’. I already have a prototype app for my team.

---

<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:** [April 13, 2023, 12:13pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/500 "2023-04-13T12:13:38Z")

</div>

Yeah they do work for me as well, with your JSON.  
I only wanted to note the JSON posted by Bas is probably for a newer model than I have 😉

---

<div class="post-metadata">

**Author:** ![Janbuijs91](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janbuijs91/32/34384_2.png) [@Janbuijs91](https://community.homey.app/u/Janbuijs91)\
**Post date:** [April 13, 2023, 1:35pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/501 "2023-04-13T13:35:53Z")

</div>

Yeah triggering a flow through the alert button was exactly what I want it to do, but I thought sending an http request would be the simplest way of doing that. Any other way would be just as good.  
I would gladly test out any TV app that can communicate with Homey in some way if you have one.

I also just read an article that claims that LG WebOS TV’s can run most Android TV apps? Tbh, I didn’t think that was possible. This might make it easier to do🤔  
The article:

> **[How to Install Third-Party Apps on LG TV: All You need to know - Robot...](https://robotpoweredhome.com/how-to-install-3rd-party-apps-on-lg-smart-tv/)**
>
> RobotPoweredHome is reader-supported. When you buy through links on my blog, I may earn an affiliate commission. As an Amazon Associate, I earn from qualifying purchases. A few weeks ago, I purchased the latest LG Smart TV. I was pretty ... Read More

Guess I’ll be spending my weekend looking at this stuff.

---

<div class="post-metadata">

**Author:** ![Janbuijs91](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janbuijs91/32/34384_2.png) [@Janbuijs91](https://community.homey.app/u/Janbuijs91)\
**Post date:** [April 13, 2023, 6:56pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/502 "2023-04-13T18:56:50Z")

</div>

The JSON from Bas also works for me and the notifications don’t show a title either.

---

<div class="post-metadata">

**Author:** ![Max\_Redecker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/max_redecker/32/12885_2.png) [@Max\_Redecker](https://community.homey.app/u/Max_Redecker)\
**Post date:** [August 31, 2023, 11:18am UTC](https://community.homey.app/t/lg-webos-better-integration/15007/503 "2023-08-31T11:18:54Z")

</div>

To which ‘Store’ is being referred to?  
As I cannot find a specific webos app in the homey app store that has your name @MaxvandeLaar to it.

Maybe someone can steer me in the right direction.

Otherwise I will try the GitHub version.

---

<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:** [August 31, 2023, 11:35am UTC](https://community.homey.app/t/lg-webos-better-integration/15007/504 "2023-08-31T11:35:52Z")

</div>

The community store. But it’s still in a rebuild phase atm, so unavailable for now

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

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