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.
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.
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?
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.
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.
Hi all, thanks for being so involved. I am progressing a bit slow with everything due to private live events. Second kid coming in soon and need to get the house in order on time.
Thanks for the PRs and patience! I just published the new WebOS LG app to the HCS and the latest version is also available on GitHub for those with a new Homey Pro as the HCS homey app is not ready yet.
It is now written in SDK3 and uses the secure web sockets so I expect it to work for newer TV’s as well.
Along the way I also fixed some volume issues some users were experiencing (everyone really) and the media images now also work again.
hope you can delay it, ask your wife Just kidding…family first.
May I ask you, after the update, is re-pair required ? I got right after update - Device unavailable.
Using OLED55C8PLA
…strange, I had to enable Wifi on my TV and add device again. Without that, I got :
Now it connects, just reports some error when offline
[err] 2023-03-17 12:18:52 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _handleResponse: ssap://system/turnOff Error: not connected
at LGTV.send (/drivers/webos_plus/lgtv2/lgtv2.js:208:12)
at LGTV.request (/drivers/webos_plus/lgtv2/lgtv2.js:193:10)
at /drivers/webos_plus/webos/WebOSTV.js:271:17
at new Promise (<anonymous>)
at WebosPlusDevice._turnOff (/drivers/webos_plus/webos/WebOSTV.js:270:12)
at WebosPlusDevice.toggleOnOff (/drivers/webos_plus/device.js:421:24)
at WebosPlusDevice._onSetCapabilityValue (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/homey-apps-sdk-v3/lib/Device.js:1:2140)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
[err] 2023-03-17 12:18:52 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _turnOff: ssap://system/turnOff with result: undefined
[log] 2023-03-17 12:18:52 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] toggleOnOff: TV turned off. Set capability onoff to false
[err] 2023-03-17 12:18:52 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] Error: not connected
at LGTV.send (/drivers/webos_plus/lgtv2/lgtv2.js:208:12)
at LGTV.request (/drivers/webos_plus/lgtv2/lgtv2.js:193:10)
at /drivers/webos_plus/webos/WebOSTV.js:271:17
at new Promise (<anonymous>)
at WebosPlusDevice._turnOff (/drivers/webos_plus/webos/WebOSTV.js:270:12)
at WebosPlusDevice.toggleOnOff (/drivers/webos_plus/device.js:421:24)
at WebosPlusDevice._onSetCapabilityValue (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/homey-apps-sdk-v3/lib/Device.js:1:2140)
at processTicksAndRejections (node:internal/process/task_queues:96:5)