LG WebOS better integration

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.

https://store.homey.community/app/com.maxvandelaar.webos-plus If installed via the store, it should auto-update itself.

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.

2 Likes

Hi Max

hope you can delay it, ask your wife :wink: 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 :

[err] 2023-03-17 11:40:38 [ManagerDrivers] [Driver:webos_plus] [Device:42f0e664-e7e1-4fc8-83ec-1098dc82e9ae] Error: connect EHOSTUNREACH 10.0.0.128:3000
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -113,
  code: 'EHOSTUNREACH',
  syscall: 'connect',
  address: '10.0.0.128',
  port: 3000
}

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)

Works like a charm on the new Pro and 2022 OLED. :white_check_mark:

Interesting, I did not experience any of these issues. I assume you installed it via CLI else you wouldn’t see logs. Could you reinstall it again and see what happens? I can remember the first time I used the secure socket it ‘cached’ the old url. Never seen it again though.

Yep, actually reinstalled it twice, then removed, tried to add it again - got error - No new devices found… so I installed it via CLI for investigation and to provide logs - still didn’t find new device,…enabled Wifi instead of LAN and voila…it’s working.

update reinstalled back from HCS and again - Device unavailable ;-(

Do you see any suspicious ? I mean internal error ? It’s Unavailable after this error…

[log] 2023-03-17 12:44:47 [WebosPlus] WebOS Plus is running...
[log] 2023-03-17 12:44:48 [ManagerDrivers] [Driver:webos_plus] WebosPlus Driver has been inited
[log] 2023-03-17 12:44:48 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] onInit: Device Ready!
[log] 2023-03-17 12:44:48 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _connect: Connect to TV wss://10.0.0.128:3001
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _connect: [connect] Connected
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] powerStateListener: Called
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _powerStateListener: Start listening for changes in power state
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] volumeListener: Called
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _volumeListener: Start listening for changes in volume
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] appListener: Called
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _appListener: Start listening for changes in app/input
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] soundOutputListener: Called
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _soundOutputListener: Start listening for changes in sound output
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] channelListener: Called
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _channelListener: Start listening for changes in channel
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _handleResponse: ssap://com.webos.service.tvpower/power/getPowerState
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _powerStateListener: Power state changed { subscribed: true, returnValue: true, state: 'Active' }
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _powerStateListener: Set timeout to 2000 ms and check the state
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _handleResponse: ssap://com.webos.applicationManager/getForegroundAppInfo
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _appListener: App/input changed to com.webos.app.hdmi2
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] appListener: App/input changed from com.webos.app.hdmi2 to com.webos.app.hdmi2
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] appListener: Gather media screen information for com.webos.app.hdmi2
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _appListLaunchPoints: Send request to retrieve all launch points
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _handleResponse: ssap://audio/getVolume
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _volumeListener: Volume changed to 0
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] volumeListener: Volume changed from 0 to 0
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _volumeListener: Mute changed to false
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] volumeListener: Mute changed from false to false
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _handleResponse: ssap://com.webos.service.apiadapter/audio/getSoundOutput
[err] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _handleResponse: ssap://com.webos.service.apiadapter/audio/getSoundOutput { soundOutput: 'external_arc', subscribed: true }
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _soundOutputListener: Sound output changed to external_arc
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] soundOutputListener: Sound output changed from external_arc to external_arc
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _handleResponse: ssap://tv/getCurrentChannel
[err] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _handleResponse: ssap://tv/getCurrentChannel { returnValue: false, errorCode: -1000, errorText: 'internal error' }
[err] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _channelListener: ssap://tv/getCurrentChannel with result: { returnValue: false, errorCode: -1000, errorText: 'internal error' }
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _handleResponse: ssap://com.webos.applicationManager/listLaunchPoints
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _appListLaunchPoints: Retrieved all launch points successfully
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _appListLaunchPoints: Mapped all launchp oints and resolve
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] appListener: App found for 'com.webos.app.hdmi2' HDMI 2
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] appListener: Try to get the current channel to gather more media screen information for 'com.webos.app.hdmi2' HDMI 2
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _channelCurrent: Send request to get the current channel
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _handleResponse: ssap://tv/getCurrentChannel
[err] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _handleResponse: ssap://tv/getCurrentChannel { returnValue: false, errorCode: -1000, errorText: 'internal error' }
[err] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _channelCurrent: ssap://tv/getCurrentChannel with result: { returnValue: false, errorCode: -1000, errorText: 'internal error' }
[err] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] internal error
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] appListener: No channel found for 'com.webos.app.hdmi2' HDMI 2, probably not LiveTV. Set capability speaker_track to empty string
[log] 2023-03-17 12:44:49 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] appListener: Set image for 'com.webos.app.hdmi2' HDMI 2 (https://10.0.0.128:3001/resources/dddf7ac6551545cfd718886a695a96dbb344c717/HDMI_2.png)
[log] 2023-03-17 12:44:51 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] _powerStateListener: Called timeout active null
[log] 2023-03-17 12:44:51 [ManagerDrivers] [Driver:webos_plus] [Device:71b50a0b-596c-463e-a8cd-165fb87b573d] powerStateListener: received on

So it seems the TV is returning the Internal Server error instead of the app. Hence this feels like a TV issue. Could you give this release a try? Release v3.0.0 · MaxvandeLaar/homey-webos-plus · GitHub

1 Like

The same…so I went with device removal, it crashed upon adding (I had to let forget all LG Connect Apps)

node:events:504
      throw er; // Unhandled 'error' event
      ^

Error: connect ECONNREFUSED 10.0.0.128:1400
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16)
Emitted 'error' event on ClientRequest instance at:
    at Socket.socketErrorListener (node:_http_client:442:9)
    at Socket.emit (node:events:526:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '10.0.0.128',
  port: 1400
}

--- INFO: com.maxvandelaar.webos-plus has been killed ---

…now I can’t again add the TV, will retry later

Unfortunately my older UH850V (I think from about 2016) was not working (red exclamation mark). After removing the device, I can’t add it again (no devices found).

With some effort I installed 3.0.0 and still the app can’t find my TV.
With 2.2.1 also no go…
Interesting…

Maybe the problem is the tv is stored by the homey app. Since you are most likely installing via the cli. I know there is an argument you can add to the install command to do a clean install where all files and settings are cleared out. Maybe that works for you?

Unfortunately, homey app install —clean isn’t working either.
Still trying 2.2.1 btw
I am currently ptp-ing my homey.
And still Homey is not finding my LG.
The Onkyo app is also having problems AFTER ptp. I will investigate further. The “oremote” iOS app is still working, so maybe it’s an Homey network problem.
Hue is still working (via the bridge!)
With WiFi, It’s working on 3.0.1
Now also working wired again.

Exactly what I was observing :frowning:

I have a 2021 model, and when the TV is on everything is fine, but after turning it off the apps errers every few moments, and the sevice becomes unavailable (red triangle with exclamation mark).

This hapens on 2019 and 2023 Homey :cry:

Had the same, but after a few tries (with TV turned on) it suddenly found the device and I was able to add it again.

1 Like

Tried 5x times… then I tried with LG WebOS from Athom (I didn’t know they have updated their app) - and it found the TV immediately, asked to confirm on TV and done - TV added. I’m positively surprised.
Btw I tried restart of the app, uninstalling - nothing worked, for me 3.0.x broke it. Btw when running it via CLI, there is no LOG/Debug printed out at all during pairing process, which could possibly help to investigate it.

Do you have the “Mobile TV” setting switched to “on”?
It’s in general.

So, did some additional tests - while Athom apps works always fine (but has limited functionality), the LG WebOS Community always struggled to find TV… so I enabled Wifi on my TV (even the TV is connected via LAB), enabled Wifi “Wake on Wifi” in the settings …and suddenly I was able to add device also via WebOS Community version.

[log] 2023-03-17 21:09:35 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] onInit: Device Ready!
[log] 2023-03-17 21:09:35 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _connect: Connect to TV wss://10.0.0.128:3001
[log] 2023-03-17 21:09:35 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _connect: [prompt] Please authorize on TV
[log] 2023-03-17 21:10:35 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _connect: [prompt] Please authorize on TV

But no Mobile LG App popup for authorization, so I restarted app and - suddenly I got prompt for authorization. I have authorized but … still getting “The device is currently unavailable”.

I was also able to see some new errors in the LOGs (CLI) :

[log] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _soundOutputListener: Sound output changed to external_arc
[err] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://com.webos.service.apiadapter/audio/getSoundOutput { soundOutput: 'external_arc', subscribed: true }
[log] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] soundOutputListener: Sound output changed from null to external_arc
[log] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] soundOutputListener: Store currentSoundOutput to external_arc
[log] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] soundOutputListener: Flow trigger sound output changed
[err] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] Error: Could not trigger Flow card with id "webos_sound_output_changed": Invalid value for token oldSoundOutput. Expected string but got object
    at FlowCardTriggerDevice.trigger (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/homey-apps-sdk-v3/lib/FlowCardTriggerDevice.js:1:743)
    at WebosPlusDriver.triggerSoundOutputChanged (/drivers/webos_plus/driver.js:104:8)
    at /drivers/webos_plus/device.js:362:22
    at Object.e3a68ff70004 (/drivers/webos_plus/webos/WebOSTV.js:222:7)
    at WebSocketConnection.<anonymous> (/drivers/webos_plus/lgtv2/lgtv2.js:158:38)
    at WebSocketConnection.emit (node:events:526:28)
    at WebSocketConnection.processFrame (/node_modules/websocket/lib/WebSocketConnection.js:554:26)
    at /node_modules/websocket/lib/WebSocketConnection.js:323:40
    at processTicksAndRejections (node:internal/process/task_queues:78:11)
[err] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] Error: Could not trigger Flow card with id "webos_sound_output_changed_to": Invalid value for token oldSoundOutput. Expected string but got object
    at FlowCardTriggerDevice.trigger (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/homey-apps-sdk-v3/lib/FlowCardTriggerDevice.js:1:743)
    at WebosPlusDriver.triggerSoundOutputChanged (/drivers/webos_plus/driver.js:107:8)
    at /drivers/webos_plus/device.js:362:22
    at Object.e3a68ff70004 (/drivers/webos_plus/webos/WebOSTV.js:222:7)
    at WebSocketConnection.<anonymous> (/drivers/webos_plus/lgtv2/lgtv2.js:158:38)
    at WebSocketConnection.emit (node:events:526:28)
    at WebSocketConnection.processFrame (/node_modules/websocket/lib/WebSocketConnection.js:554:26)
    at /node_modules/websocket/lib/WebSocketConnection.js:323:40
    at processTicksAndRejections (node:internal/process/task_queues:78:11)
[log] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://tv/getCurrentChannel
[err] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://tv/getCurrentChannel { returnValue: false, errorCode: -1000, errorText: 'internal error' }
[err] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _channelListener: ssap://tv/getCurrentChannel with result: { returnValue: false, errorCode: -1000, errorText: 'internal error' }
[log] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://tv/getCurrentChannel
[err] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://tv/getCurrentChannel { returnValue: false, errorCode: -1000, errorText: 'internal error' }
[err] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _channelCurrent: ssap://tv/getCurrentChannel with result: { returnValue: false, errorCode: -1000, errorText: 'internal error' }
[err] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] internal error
[log] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] appListener: No channel found for 'com.webos.app.hdmi1' HDMI 1, probably not LiveTV. Set capability speaker_track to empty string
[log] 2023-03-17 21:12:42 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] appListener: Set image for 'com.webos.app.hdmi1' HDMI 1 (https://10.0.0.128:3001/resources/c199aec34211b44cb81e439b1d8ac581e4e26aa3/HDMI_1.png)
[log] 2023-03-17 21:12:43 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _powerStateListener: Called timeout active null
[log] 2023-03-17 21:12:43 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] powerStateListener: received on

After another app restart, the error above disappeared but still device is in the state “The device is currently unavailable”.

[log] 2023-03-17 21:14:00 [WebosPlus] WebOS Plus is running...
[log] 2023-03-17 21:14:01 [ManagerDrivers] [Driver:webos_plus] WebosPlus Driver has been inited
[log] 2023-03-17 21:14:01 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] onInit: Device Ready!
[log] 2023-03-17 21:14:01 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _connect: Connect to TV wss://10.0.0.128:3001
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _connect: [connect] Connected
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] powerStateListener: Called
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _powerStateListener: Start listening for changes in power state
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] volumeListener: Called
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _volumeListener: Start listening for changes in volume
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] appListener: Called
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _appListener: Start listening for changes in app/input
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] soundOutputListener: Called
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _soundOutputListener: Start listening for changes in sound output
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] channelListener: Called
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _channelListener: Start listening for changes in channel
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://com.webos.service.tvpower/power/getPowerState
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _powerStateListener: Power state changed { subscribed: true, returnValue: true, state: 'Active' }
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _powerStateListener: Set timeout to 2000 ms and check the state
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://com.webos.applicationManager/getForegroundAppInfo
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _appListener: App/input changed to com.webos.app.hdmi1
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] appListener: App/input changed from com.webos.app.hdmi1 to com.webos.app.hdmi1
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] appListener: Gather media screen information for com.webos.app.hdmi1
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _appListLaunchPoints: Send request to retrieve all launch points
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://audio/getVolume
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _volumeListener: Volume changed to 0
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] volumeListener: Volume changed from 0 to 0
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _volumeListener: Mute changed to false
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] volumeListener: Mute changed from false to false
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://com.webos.applicationManager/listLaunchPoints
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _appListLaunchPoints: Retrieved all launch points successfully
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _appListLaunchPoints: Mapped all launchp oints and resolve
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] appListener: App found for 'com.webos.app.hdmi1' HDMI 1
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] appListener: Try to get the current channel to gather more media screen information for 'com.webos.app.hdmi1' HDMI 1
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _channelCurrent: Send request to get the current channel
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://com.webos.service.apiadapter/audio/getSoundOutput
[err] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://com.webos.service.apiadapter/audio/getSoundOutput { soundOutput: 'external_arc', subscribed: true }
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _soundOutputListener: Sound output changed to external_arc
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] soundOutputListener: Sound output changed from external_arc to external_arc
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://tv/getCurrentChannel
[err] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://tv/getCurrentChannel { returnValue: false, errorCode: -1000, errorText: 'internal error' }
[err] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _channelListener: ssap://tv/getCurrentChannel with result: { returnValue: false, errorCode: -1000, errorText: 'internal error' }
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://tv/getCurrentChannel
[err] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _handleResponse: ssap://tv/getCurrentChannel { returnValue: false, errorCode: -1000, errorText: 'internal error' }
[err] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _channelCurrent: ssap://tv/getCurrentChannel with result: { returnValue: false, errorCode: -1000, errorText: 'internal error' }
[err] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] internal error
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] appListener: No channel found for 'com.webos.app.hdmi1' HDMI 1, probably not LiveTV. Set capability speaker_track to empty string
[log] 2023-03-17 21:14:02 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] appListener: Set image for 'com.webos.app.hdmi1' HDMI 1 (https://10.0.0.128:3001/resources/c268c5c7e4fbdcbce04fd769849d7cffe5235e99/HDMI_1.png)
[log] 2023-03-17 21:14:04 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] _powerStateListener: Called timeout active null
[log] 2023-03-17 21:14:04 [ManagerDrivers] [Driver:webos_plus] [Device:de9e916e-5dc9-4ea7-841e-f7d662575094] powerStateListener: received on

So again enabled Wifi, re-enabled Wake on Wifi…and I’m able to add device again and it reports no error. Strange.

**update later ** - again I got “Device unavailable”, even it’s on…unfortunately seems WebOS app become unusable for me ;-(

Hmmm, must have been a a glitch in the matrix; did some further testing and can’t reproduce the problem. For now all seems OK on version 3.0.1

Thanks! @MaxvandeLaar

I have hcs installed on a homey early 2023 (3.3.0).
After installing the app LG WebOS i couldn’t make a device with it. I wanted to restart the app and got the message “invalid app origin: undefined”
What can i do?