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

<div class="post-metadata">

**Author:** ![Wingleader](https://avatars.discourse-cdn.com/v4/letter/w/41988e/32.png) [@Wingleader](https://community.homey.app/u/Wingleader)\
**Post date:** [March 23, 2020, 3:39pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/82 "2020-03-23T15:39:48Z")

</div>

Great, one question can you add the triggers for the apps like the Athom version has. So for example if netflix app starts then… (my girlfriend will be very happy with this as soon as she can come back to me from the US). And as a bonus if … app has stopped. And it looks like athom also has a option to start a app.

---

<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 23, 2020, 3:53pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/83 "2020-03-23T15:53:18Z")

</div>

@Wingleader

Not sure, but is this what you mean? Sorry for the Dutch…

But the app triggers if an app/input changed. So e.g. from Live tv to Netflix and as conditional check for Netflix.

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

Or is this not exactly what you are looking for?

EDIT: jumped the gun, I see what you mean, the conditional should already be inside the when trigger. Good suggestion, I’ll look into that. Could you create a GitHub issue for this?

---

<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 23, 2020, 4:00pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/84 "2020-03-23T16:00:18Z")

</div>

[@Everyone](https://community.homey.app/groups/everyone) here,

Version 1.2.1 released. Just a small fix for dynamic ip addresses as I already stated above.

> **[MaxvandeLaar/homey-webos-plus](https://github.com/MaxvandeLaar/homey-webos-plus/releases/tag/v1.2.1)**
>
> Improved LG WebOS integration for Homey. Contribute to MaxvandeLaar/homey-webos-plus development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Wingleader](https://avatars.discourse-cdn.com/v4/letter/w/41988e/32.png) [@Wingleader](https://community.homey.app/u/Wingleader)\
**Post date:** [March 23, 2020, 4:10pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/85 "2020-03-23T16:10:49Z")

</div>

Will do later tonight if I don’t forget it. And yes you are correct want to dim or turn off the lights as soon as the netflix is started. Maybe you can have a peak in the Athom code if this is still available on GitHub. Your current card “app or input changed” (I can read and speak Dutch ;-)) is very usable for my other request because as soon as input changes I want to turn on the lights.

---

<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 23, 2020, 4:16pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/86 "2020-03-23T16:16:08Z")

</div>

> Maybe you can have a peak in the Athom code if this is still available on GitHub.

I wish… it’s closed source now apparently. Anyway, I just made a PoC, and it shouldn’t be too hard to implement. I will try to find some time tonight, however, I also need to chop/saw some wood as it is cold today… I don’t have a gas line connection (due to an old house and too far away from any main pipeline) so we heat the house with a wood stove; just a fun fact 😉

---

<div class="post-metadata">

**Author:** ![Tolga](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tolga/32/12563_2.png) [@Tolga](https://community.homey.app/u/Tolga)\
**Post date:** [March 23, 2020, 5:41pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/87 "2020-03-23T17:41:50Z")

</div>

@MaxvandeLaar Hi,

I updated the app but it crashed every Time. I have install also the athom Lg web os app, must i deinstall? I go back to 1.2.0

 ![Screenshot_2020-03-23-18-36-29](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/c/ecb3803f15f487ce6172acc56880defaf55f8b71.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 23, 2020, 5:53pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/88 "2020-03-23T17:53:09Z")

</div>

Hi @Tolga, check your pm, so we can debug it if you want to.

EDIT: If anyone else comes across the same issue as Tolga, check [https://github.com/MaxvandeLaar/homey-webos-plus/issues/4](https://github.com/MaxvandeLaar/homey-webos-plus/issues/4)

---

<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 23, 2020, 6:02pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/89 "2020-03-23T18:02:16Z")

</div>

@Wingleader, already created the ticket and implemented it. It’s waiting for other tickets for release of v1.3.0

---

<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, 2020, 4:17pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/91 "2020-03-24T16:17:28Z")

</div>

Hi [@everyone](https://community.homey.app/groups/everyone),

So sorry for spamming you all… I just released version 1.3.0.

Two new features added!

- Media screen (Input/app icon as album art)
- Added arguments to triggers

[https://github.com/MaxvandeLaar/homey-webos-plus/releases/tag/v1.3.0](https://github.com/MaxvandeLaar/homey-webos-plus/releases/tag/v1.3.0)

---

<div class="post-metadata">

**Author:** ![Kaoh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kaoh/32/9283_2.png) [@Kaoh](https://community.homey.app/u/Kaoh)\
**Post date:** [March 24, 2020, 4:36pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/92 "2020-03-24T16:36:33Z")

</div>

running it now, looking good 😃 thank you for this.  
No play/pause or is it conditional available?

---

<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, 2020, 4:40pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/93 "2020-03-24T16:40:13Z")

</div>

Pause play should be there?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/2/9259987f57a1138f02ef0265b452aa18da4f7ff9.jpeg)

---

<div class="post-metadata">

**Author:** ![Kaoh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kaoh/32/9283_2.png) [@Kaoh](https://community.homey.app/u/Kaoh)\
**Post date:** [March 24, 2020, 4:59pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/94 "2020-03-24T16:59:36Z")

</div>

tried to restart the app, see if it showed up. But now the device is unvailable even though the CLI console shows it connects succesfully ☹ restarts do not solve that state. Do you trigger the device.isAvailable() at some point to reset such a state?

---

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

</div>

Hmm, I only encounter this issue when I am developing (installing multiple different version of the app within a few minutes) but when running `homey app install` this hasn’t happen before. I do not set the device available somewhere since (IIRC) Homey does this when onDiscoveryAvailable is called. It might indeed be a good idea to force this when connected.

To quick fix, try to reinstall the app.

---

<div class="post-metadata">

**Author:** ![Kaoh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kaoh/32/9283_2.png) [@Kaoh](https://community.homey.app/u/Kaoh)\
**Post date:** [March 24, 2020, 5:23pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/96 "2020-03-24T17:23:16Z")

</div>

Did multiple times, I also know this from own developments, so I started adding that call on the init just to get rid of it. Restarting homey now to see if that resets that state.  
Strange enough its a persistent state for a device, cant think of a reason why .

---

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

</div>

Give me a few minutes for release v1.3.1 with this fixed! Need to change version, build, push en post new link here 🙂 thanks for the setAvailable tip!

This will be called whenever the app tried to connect to the TV

---

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

</div>

[@Everyone](https://community.homey.app/groups/everyone), due to a bug where the device would stay unavailable I made a hot fix: v1.3.1

> **[MaxvandeLaar/homey-webos-plus](https://github.com/MaxvandeLaar/homey-webos-plus/releases/tag/v1.3.1)**
>
> Improved LG WebOS integration for Homey. Contribute to MaxvandeLaar/homey-webos-plus development by creating an account on GitHub.

Special thanks to @Kaoh

---

<div class="post-metadata">

**Author:** ![Kaoh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kaoh/32/9283_2.png) [@Kaoh](https://community.homey.app/u/Kaoh)\
**Post date:** [March 24, 2020, 5:37pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/99 "2020-03-24T17:37:59Z")

</div>

The full homey restart did fix the device state also btw 😃 but good that its in their now.  
Since the store is not accepting the app its people will be using CLI like this, so they might get stuck also.

---

<div class="post-metadata">

**Author:** ![Wingleader](https://avatars.discourse-cdn.com/v4/letter/w/41988e/32.png) [@Wingleader](https://community.homey.app/u/Wingleader)\
**Post date:** [March 24, 2020, 7:58pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/100 "2020-03-24T19:58:54Z")

</div>

Great app, one tip is it possible during pairing (or upfront) to show an message in advance or wait until the authorisation of the TV is done. I saw it in my CLI so I knew that I needed to do something.

Question what’s the purpose of the tags that contain com.lg.etc.etc.?

I’m testing your app at the moment looks great will change my flows.

---

<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, 2020, 8:09pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/101 "2020-03-24T20:09:56Z")

</div>

I admit, the pairing process didn’t get much love. I actually started on a complete rewrite where I am now showing a message that you need to authorize the tv.

The tags aren’t perse very meaningful to me but I could imagine someone out there might wanted to know what the old app was and can check that by using the appId. Reason for choosing to show ids is because that is safer than a title in my opinion and it was easier to implement for me 😬

---

<div class="post-metadata">

**Author:** ![Wingleader](https://avatars.discourse-cdn.com/v4/letter/w/41988e/32.png) [@Wingleader](https://community.homey.app/u/Wingleader)\
**Post date:** [March 24, 2020, 8:15pm UTC](https://community.homey.app/t/lg-webos-better-integration/15007/102 "2020-03-24T20:15:08Z")

</div>

I understand and people can use iit so keep it in the app. btw its feedback i’m giving 😉 and not criticism. If you want I can spend some time to give you some more feedback about the texts that are now being used. In my work i’m known for being a pain in the ass with reading documents / testing stuff etc.

Edit i’m trying to change my input and using the card “open app or input” in the then column and I can select my installed apps (which is great btw) and also for example Live TV but it would be great with Live TV that you can select a channel. Next to this i’m missing my synology and chromecast

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

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