home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.08k stars 31.09k forks source link

LG webOS Smart TV - Unknown Error while pairing #131981

Open derzahla opened 3 hours ago

derzahla commented 3 hours ago

The problem

I've never been able to get my LG TV to pair and I finally started looking deeper into it

What version of Home Assistant Core has the issue?

core-2024.11.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

webostv

Link to integration documentation on our website

https://www.home-assistant.io/integrations/webostv

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

debug logs during pairing attempt:

024-11-30 19:43:44.110 INFO (SyncWorker_16) [homeassistant.loader] Loaded webostv from homeassistant.components.webostv
2024-11-30 19:44:35.194 DEBUG (MainThread) [aiowebostv] connect(10.10.27.142): uri: ws://10.10.27.142:3000
2024-11-30 19:44:35.264 DEBUG (MainThread) [aiowebostv] send(10.10.27.142): hello
2024-11-30 19:44:35.274 DEBUG (MainThread) [aiowebostv] recv(10.10.27.142): {"type":"hello","payload":{"protocolVersion":1,"deviceType":"tv","deviceOS":"webOS","deviceOSVersion":"4.1.0","deviceOSReleaseVersion":"6.4.0","deviceUUID":"1e2aa17c-1d53-03db-7e5e-a779f6c18cc5","pairingTypes":["PIN","PROMPT","COMBINED"]}}
2024-11-30 19:44:35.274 DEBUG (MainThread) [aiowebostv] send(10.10.27.142): registration
2024-11-30 19:44:35.316 DEBUG (MainThread) [aiowebostv] recv(10.10.27.142): registration
2024-11-30 19:44:38.005 DEBUG (MainThread) [aiowebostv] recv(10.10.27.142): pairing
2024-11-30 19:44:38.005 DEBUG (MainThread) [aiowebostv] pairing(10.10.27.142): type: registered, error: None
2024-11-30 19:44:38.005 DEBUG (MainThread) [aiowebostv] send(10.10.27.142): {'id': 0, 'type': 'request', 'uri': 'ssap://com.webos.service.networkinput/getPointerInputSocket', 'payload': {}}
2024-11-30 19:44:38.057 DEBUG (MainThread) [aiowebostv] recv(10.10.27.142): {"type":"response","id":0,"payload":{"socketPath":"ws://10.10.27.142:3000/resources/b9f6b99d01754b1bc9ce75e541db8de674da4378/netinput.pointer.sock","returnValue":true}}
2024-11-30 19:44:38.057 DEBUG (MainThread) [aiowebostv] connect(10.10.27.142): uri: ws://10.10.27.142:3000/resources/b9f6b99d01754b1bc9ce75e541db8de674da4378/netinput.pointer.sock
2024-11-30 19:44:38.102 DEBUG (MainThread) [aiowebostv] send(10.10.27.142): {'id': 1, 'type': 'request', 'uri': 'ssap://system/getSystemInfo', 'payload': {}}
2024-11-30 19:44:38.102 DEBUG (MainThread) [aiowebostv] send(10.10.27.142): {'id': 2, 'type': 'request', 'uri': 'ssap://com.webos.service.update/getCurrentSWInformation', 'payload': {}}
2024-11-30 19:44:38.134 DEBUG (MainThread) [aiowebostv] recv(10.10.27.142): {"type":"response","id":1,"payload":{"returnValue":true,"features":{"dvr":false},"receiverType":"ATSC","modelName":"75UP7300PUC","serialNumber":"211RMSS8X398","programMode":false}}
2024-11-30 19:46:07.206 DEBUG (MainThread) [aiowebostv] connect(10.10.27.142): uri: ws://10.10.27.142:3000
2024-11-30 19:46:07.252 DEBUG (MainThread) [aiowebostv] send(10.10.27.142): hello
2024-11-30 19:46:07.258 DEBUG (MainThread) [aiowebostv] recv(10.10.27.142): {"type":"hello","payload":{"protocolVersion":1,"deviceType":"tv","deviceOS":"webOS","deviceOSVersion":"4.1.0","deviceOSReleaseVersion":"6.4.0","deviceUUID":"1e2aa17c-1d53-03db-7e5e-a779f6c18cc5","pairingTypes":["PIN","PROMPT","COMBINED"]}}
2024-11-30 19:46:07.258 DEBUG (MainThread) [aiowebostv] send(10.10.27.142): registration
2024-11-30 19:46:07.295 DEBUG (MainThread) [aiowebostv] recv(10.10.27.142): registration
2024-11-30 19:48:07.307 DEBUG (MainThread) [aiowebostv] recv(10.10.27.142): pairing
2024-11-30 19:48:07.307 DEBUG (MainThread) [aiowebostv] pairing(10.10.27.142): type: error, error: 403 cancelled
2024-11-30 19:48:07.307 DEBUG (MainThread) [aiowebostv] exception(10.10.27.142): WebOsTvPairError('403 cancelled')
  File "/srv/homeassistant/lib/python3.12/site-packages/aiowebostv/webos_client.py", line 168, in connect_handler
    raise WebOsTvPairError(response["error"])
aiowebostv.exceptions.WebOsTvPairError: 403 cancelled
2024-11-30 19:49:38.229 DEBUG (MainThread) [aiowebostv] recv(10.10.27.142): {"type":"error","id":2,"error":"500 Application error","payload":{"serviceName":"com.webos.service.update","returnValue":false,"errorCode":-1,"errorText":"com.webos.service.update is not running."}}
2024-11-30 19:49:38.229 DEBUG (MainThread) [aiowebostv] exception(10.10.27.142): WebOsTvResponseTypeError({'type': 'error', 'id': 2, 'error': '500 Application error', 'payload': {'serviceName': 'com.webos.service.update', 'returnValue': False, 'errorCode': -1, 'errorText': 'com.webos.service.update is not running.'}})
  File "/srv/homeassistant/lib/python3.12/site-packages/aiowebostv/webos_client.py", line 199, in connect_handler
  File "/srv/homeassistant/lib/python3.12/site-packages/aiowebostv/webos_client.py", line 780, in get_software_info
  File "/srv/homeassistant/lib/python3.12/site-packages/aiowebostv/webos_client.py", line 646, in request
    raise WebOsTvResponseTypeError(response)
aiowebostv.exceptions.WebOsTvResponseTypeError: {'type': 'error', 'id': 2, 'error': '500 Application error', 'payload': {'serviceName': 'com.webos.service.update', 'returnValue': False, 'errorCode': -1, 'errorText': 'com.webos.service.update is not running.'}}


### Additional information

_No response_
home-assistant[bot] commented 3 hours ago

Hey there @thecode, mind taking a look at this issue as it has been labeled with an integration (webostv) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `webostv` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign webostv` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


webostv documentation webostv source (message by IssueLinks)