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
73.78k stars 30.88k forks source link

Samsung Smart TV UE65NU8000 reauthorisation #130424

Open quantum-fc101 opened 6 days ago

quantum-fc101 commented 6 days ago

The problem

Hello,

The Samsung Smart TV integration keeps on asking for Re-Authorization from my living room TV.

image

I've tried restarting HA, deleting the device from the TV, disabling the integration yet it still keeps prompting.

Thanks

What version of Home Assistant Core has the issue?

N/A

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

samsungtv

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-11-12 11:30:38.691 WARNING (MainThread) [homeassistant.components.samsungtv] Failed to get remote for 10.0.10.235, re-authentication required: UnauthorizedError({'event': 'ms.channel.unauthorized'})
2024-11-12 11:38:48.554 DEBUG (MainThread) [homeassistant.components.samsungtv] Finished fetching samsungtv data in 0.000 seconds (success: True)
2024-11-12 11:38:51.928 DEBUG (MainThread) [homeassistant.components.samsungtv] Try config: {'name': 'HomeAssistant', 'host': '10.0.10.235', 'method': 'websocket', 'port': 8002, 'timeout': 31}
2024-11-12 11:38:51.929 DEBUG (MainThread) [samsungtvws.async_connection] WS url wss://10.0.10.235:8002/api/v2/channels/samsung.remote.control?name=SG9tZUFzc2lzdGFudA==&token=None
2024-11-12 11:38:55.289 DEBUG (MainThread) [samsungtvws.helper] Processing API response: {"data":{"clients":[{"attributes":{"name":"W0hvbWUgQXNzaXN0YW50XSBTYW1zdW5nVFY=","token":"15025081"},"connectTime":1731411000820,"deviceName":"W0hvbWUgQXNzaXN0YW50XSBTYW1zdW5nVFY=","id":"6d761f39-6ac3-408e-af33-88e4da8317df","isHost":false},{"attributes":{"name":"SG9tZUFzc2lzdGFudA==","token":"None"},"connectTime":1731411531524,"deviceName":"SG9tZUFzc2lzdGFudA==","id":"7938e0b0-d334-4079-a374-44c7b1eb8916","isHost":false}],"id":"7938e0b0-d334-4079-a374-44c7b1eb8916","token":"17254708"},"event":"ms.channel.connect"}
2024-11-12 11:38:55.289 DEBUG (MainThread) [samsungtvws.connection] SamsungTVWS websocket event: {'data': {'clients': [{'attributes': {'name': 'W0hvbWUgQXNzaXN0YW50XSBTYW1zdW5nVFY=', 'token': '15025081'}, 'connectTime': 1731411000820, 'deviceName': 'W0hvbWUgQXNzaXN0YW50XSBTYW1zdW5nVFY=', 'id': '6d761f39-6ac3-408e-af33-88e4da8317df', 'isHost': False}, {'attributes': {'name': 'SG9tZUFzc2lzdGFudA==', 'token': 'None'}, 'connectTime': 1731411531524, 'deviceName': 'SG9tZUFzc2lzdGFudA==', 'id': '7938e0b0-d334-4079-a374-44c7b1eb8916', 'isHost': False}], 'id': '7938e0b0-d334-4079-a374-44c7b1eb8916', 'token': '17254708'}, 'event': 'ms.channel.connect'}
2024-11-12 11:38:55.290 DEBUG (MainThread) [samsungtvws.connection] Got token 17254708
2024-11-12 11:38:55.290 INFO (MainThread) [samsungtvws.connection] New token 17254708
2024-11-12 11:38:55.290 DEBUG (MainThread) [homeassistant.components.samsungtv] Working config: {'name': 'HomeAssistant', 'host': '10.0.10.235', 'method': 'websocket', 'port': 8002, 'timeout': 31}
2024-11-12 11:38:55.301 DEBUG (MainThread) [samsungtvws.async_connection] Connection closed.
2024-11-12 11:38:55.301 DEBUG (MainThread) [homeassistant.components.samsungtv] Skipping reload as its a token update
2024-11-12 11:38:55.304 DEBUG (MainThread) [homeassistant.components.samsungtv] Stopping SamsungTVBridge 10.0.10.235
2024-11-12 11:38:55.308 DEBUG (MainThread) [homeassistant.components.samsungtv] Checking if TV 10.0.10.235 is on using websocket
2024-11-12 11:38:55.309 DEBUG (MainThread) [homeassistant.components.samsungtv] Create SamsungTVWSBridge for 10.0.10.235
2024-11-12 11:38:55.309 DEBUG (MainThread) [samsungtvws.async_connection] WS url ws://10.0.10.235:8001/api/v2/channels/samsung.remote.control?name=SG9tZUFzc2lzdGFudA==
2024-11-12 11:38:55.330 DEBUG (MainThread) [samsungtvws.helper] Processing API response: {"event":"ms.channel.unauthorized"}
2024-11-12 11:38:55.330 DEBUG (MainThread) [samsungtvws.connection] SamsungTVWS websocket event: {'event': 'ms.channel.unauthorized'}
2024-11-12 11:38:55.330 DEBUG (MainThread) [samsungtvws.async_connection] Connection closed.
2024-11-12 11:38:55.331 WARNING (MainThread) [homeassistant.components.samsungtv] Failed to get remote for 10.0.10.235, re-authentication required: UnauthorizedError({'event': 'ms.channel.unauthorized'})
2024-11-12 11:38:55.331 DEBUG (MainThread) [homeassistant.components.samsungtv] Access denied in getting remote object
2024-11-12 11:38:55.334 DEBUG (MainThread) [homeassistant.components.samsungtv] Finished fetching samsungtv data in 0.025 seconds (success: True)

Additional information

No response

home-assistant[bot] commented 6 days ago

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

Code owner commands Code owners of `samsungtv` 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 samsungtv` 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)


samsungtv documentation samsungtv source (message by IssueLinks)