LG WebOS better integration

@Max_Redecker I stopped with the Homey Community Store (there is a post somewhere on the forum here) and hence it is no longer available. You can still download my WebOS plus app via GitHub Releases · MaxvandeLaar/homey-webos-plus · GitHub You would need to install it on your homey yourself via CLI though.

I have a C3 OLED and cannot find the TV when trying to add it. Is there any settings in the TV I have to enable? It’s connect to the same Wi-Fi as my Homey and mobile tv is enabled.
I also tried the LG WebOS app by Athom and TV couldn’t be found.

I had rhe same problem yesterday with a QNEF866QA (2022)
The solution I found here:

press the home-button on the remote ->choose setting (gear) ->chose multiview ->choose screen share (to open the connection?) ->connect the app on your homey/phone/tablet.

I forgot where to put the PIN, so you have to figure this out yourself

Dunno what was wrong yesterday, but today the TV was found and added without any problems. The app seems to work fine. :grinning:

Sending multiple commands to WebOS often crashes the app, so Simulate remote key button is very unreliable.

I have Homey Pro 2019.

Question about the webos plus app. When my tv is off and somewhere in a flow there’s an action where the tv’s turned off it will go on again instead of staying off. Any ideas on this?

Question about the LG WebOS app. I am getting the error message: “request to http://(ip)/ failed, reason:connect EHOSTUNREACH (ip)”. How do I fix this? Is there any age limit to use this app?

Been quite a while, so I’m thinking this app is abandoned :frowning: 2 years since last commit in github repo.

Attempting an install fails

❯ homey app install
✓ Logging in...
To log in with your Athom Account, please visit https://cli.athom.com?port=43127&clientId=11111111111111111111111111
? Paste the code: 11111111111111111111111111111111111
✓ You are now logged in as 
? Choose an active Homey: Homey Pro2
You have selected `Homey Pro2` as your active Homey.
✓ Pre-processing app...
✖ Command failed: npm ls --parseable --all --only=prod
npm warn config only Use `--omit=dev` to omit dev dependencies from the install.
npm error code ELSPROBLEMS
npm error missing: jimp-compact@^0.9.8, required by com.maxvandelaar.homey-webos@3.1.2
npm error missing: node-fetch@^2.6.0, required by com.maxvandelaar.homey-webos@3.1.2
npm error missing: node-wol@^0.1.1, required by com.maxvandelaar.homey-webos@3.1.2
npm error missing: websocket@^1.0.30, required by com.maxvandelaar.homey-webos@3.1.2
npm error A complete log of this run can be found in: /home/alice/.npm/_logs/2026-03-15T20_37_54_517Z-debug-0.log

✖ Error: This error may be fixed by running `npm install` in your app.
    at /home/alice/.nvm/versions/node/v22.21.1/lib/node_modules/homey/lib/App.js:1126:15
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async App._copyAppProductionDependencies (/home/alice/.nvm/versions/node/v22.21.1/lib/node_modules/homey/lib/App.js:1123:26)
    at async App.preprocess (/home/alice/.nvm/versions/node/v22.21.1/lib/node_modules/homey/lib/App.js:890:7)
    at async App.install (/home/alice/.nvm/versions/node/v22.21.1/lib/node_modules/homey/lib/App.js:827:7)
    at async Object.handler (file:///home/alice/.nvm/versions/node/v22.21.1/lib/node_modules/homey/bin/cmds/app/install.mjs:23:5)

I was able to get it installed :slight_smile:

Still can’t get the TV browser to open a url to the live video stream from a Unifi camera though

it is abbondoned, there is an official lg thinq app that handles tv’s quite well. Maybe try that one?

What a pity…
The official app connects the TV via cloud and not local :sad_but_relieved_face:

I indeed abandoned it. The source code is still available on GitHub and I have no intend to remove it. It mostly supported older versions of WebOS and all my TVs are nowadays running the latest WebOS.

If someone wants to take over I am more than happy to assist if needed.

I’m having a strange connection problem with the newly released Local WebOS TV Controller app on all three of my LG TVs.

If a TV has been off for a longer period of time, Homey can still turn it on, but once it starts, HDMI/input and other WebOS commands no longer work. It doesn’t matter how long I wait, and both “Switch input” and “Launch app or input” fail.

The only way to get everything working again is to restart the Local WebOS TV Controller app while the TV is already on. Then everything works immediately.

I also noticed that if I restart the app while all three TVs are off, all three devices show “Unavailable”. If I restart the app while at least one TV is on, all three become “Available”.

So it seems like the app is not properly reconnecting to WebOS after the TVs have been off. The fact that it can still turn the TV on, but cannot control anything afterwards, makes this especially strange.

I previously used MaxvandeLaar’s WebOS Plus app and did not have this problem. I understand that MaxvandeLaar is no longer maintaining it and that @John_Kevin has taken over the project/development.

I have tried contacting John_Kevin by email about this issue, but unfortunately I have received no response.

It’s a shame, because I really like the new app and it has much better Flow Card support than the LGThinQ app I used before. I would really like to continue using it, but this connection problem makes it very difficult.

As far as I understand, Homey also makes it difficult to use two apps providing the same type of TV integration at the same time. This also makes it difficult for another developer to step in and provide an alternative solution if the current app is no longer maintained or these issues remain unresolved.

I hope someone can look into this. The problem is easy to reproduce on all three of my TVs.

Hi Daniel,

I’m sorry I missed your email and the silence was not disinterest.

I’m a retired videotape editor and home-automation enthusiast, not a programmer. A few weeks ago I found another forum thread called LG WebOS app for Homey Pro 2023 and Max’s source code GitHub - MaxvandeLaar/homey-webos-plus: Improved LG WebOS integration for Homey · GitHub . I also looked at the python code which Home Assistant uses to connect to LG WebOS, but with no ability to do the work myself, I paid for the professional level of programming help from OpenAI Codex to make the Homey app. I used it as part of my AV Automation, but when I realised local apps are not included in the nightly Homey Cloud backup, the only solution was to get it certified by Athom.

At $200 per month, I cannot afford more than 1 month’s Codex membership, so I’ve published the source code for other developers to improve or maintain:

Your reconnect problem deserves investigation. I only have two days of upgraded Codex access left but I would like to use that time to help you. I cannot promise a fix as I only have my 2024 LG OLED65G45LW to test the app on, but if you see this post in time, give me your TV models, webOS versions, Wi-Fi/Ethernet connections, Homey model and whether polling is enabled. Logs from one failed attempt would also help.

John

Hi John

Hi,

No worries at all, and thank you for getting back to me now! I had sent you several emails, so after not hearing anything I honestly thought you were just ignoring me. :sweat_smile:

Unfortunately, I’m not at home right now and won’t be back for a few days, so I won’t be able to test anything or collect the information you need.

I’ve gone back to the LG ThinQ app because I needed something that worked reliably enough for my setup. I would really have preferred to use Local WebOS TV Controller, because I honestly felt that it could have been the perfect solution for me.

Unfortunately, the reconnect issue made it practically impossible for me to use. Especially when the TVs had been off for a longer period, the app would lose the connection and the TVs would become unavailable in Homey. Restarting the app would usually fix it, but obviously that’s not something I can rely on :frowning:

thank you again for taking the time to look into this and for making the source code available. I really appreciate it!

/Daniel

Hi Daniel,

I’ve identified and revised some connection-handling changes that differed from Max’s original app, while retaining the necessary safeguards and fixing a reported crash.

Version 1.0.44 is now installed in my Homey as a separate test app alongside my existing installation. Pairing, TV-state reporting and control have all passed initial tests. I’m now testing reconnection after the TV has remained in standby for several hours and been off overnight.

I’ll let you know the outcome shortly.

John

@Daniel_Fille

A Test version of Local webOS TV Controller 1.0.44 is now available for users experiencing reconnection problems after their television has been off for an extended period.

This is an unreviewed test candidate, not a confirmed universal fix. If you would like to help test it, please send me a private message with your TV model, webOS version, whether it uses Wi-Fi or Ethernet, and your Homey model. No programming or command-line knowledge is required.

Hi

Great, send you a PM :grinning_face_with_smiling_eyes:

Local webOS TV Controller v1.0.44 — Test version available

I have received reports of two related problems in Store version 1.0.43:

  • After a television has been off for an extended period, Homey may show it as on while subsequent control cards fail with “not connected” until the app is restarted.
  • Two anonymous crash reports show incomplete application/launch-point and external-input responses causing version 1.0.43 to crash.

Test version 1.0.44 restores connection-retry behaviour closer to Max’s original implementation and checks the affected LG response lists before processing them, preventing those incomplete responses from crashing the entire app.

The Test version is available here:

No programming or command line is required. Open the link, select your Homey and install the Test version.

If you already use Local webOS TV Controller, do not uninstall the existing app or delete its television devices or Flows. Version 1.0.44 should update version 1.0.43 in place while preserving them. Afterwards, confirm that Homey → Apps → Local webOS TV Controller shows v1.0.44 Test.

Please test normal television control and reconnection after the television has been off for several hours. If anything fails, create a diagnostics report before restarting the app and send its reference to me privately. Please also include your TV model, exact webOS version, Wi-Fi/Ethernet connection, Homey model and whether polling is enabled.

This is an unreviewed Test candidate, not a confirmed universal fix. Homey will not automatically downgrade it to 1.0.43; any corrective rollback would require a later version.

Thank you to everyone helping me test it. Please let me know how you get on by commenting here.

I really appreciate the efforts here. But there is a huge elephant in the room. Athom is basically owned by LG. Why do we still depend upon a community developed app to make the integration between Homey and the flagship TV OS of their owner to interact? I am genuinly curious.