Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android TV remote keeps requesting new paring again and again #92795

Closed
rmaeder opened this issue May 8, 2023 · 8 comments · Fixed by home-assistant/home-assistant.io#28620
Closed

Comments

@rmaeder
Copy link

rmaeder commented May 8, 2023

The problem

After successfully pairing with my Android TV device, the integrations display immediately says "error setting up" (or so, the original messages is "Fehler beim Einrichten: Need to pair again". I then pair again, and again, and again...
it never works.
2023-05-08T15-06-37

What version of Home Assistant Core has the issue?

core-2023.5.2

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

Android TV Remote

Link to integration documentation on our website

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

Diagnostics information

home-assistant_androidtv_remote_2023-05-08T13-12-30.311Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

The Android TV device is SKWHP40A-ZWL (Android TV) von SkyworthDigital

Additional information

I also have the Android Debug Bridge, does that pose a problem?

@home-assistant
Copy link

home-assistant bot commented May 8, 2023

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

Code owner commands

Code owners of androidtv_remote 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 androidtv_remote Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


androidtv_remote documentation
androidtv_remote source
(message by IssueLinks)

@yahav-bot
Copy link

I have the same problem. I have several devices and one of them disconnects every time. I reconnect it and after a few minutes it disconnects again and requests a reconnection

@mark-klink182
Copy link

I own two TiVo Stream 4k players. At first, only one was auto-discovered. After setting that one up I kept receiving "Need to pair again" message. I removed it and tried to manually add the second TiVo Stream by IP address. It added but I also needed to "Pair it again". I removed the second TiVo stream and it auto-discovered the first one again and I no longer receive the "Need to pair" message. But now the second TiVo stream will not auto-discover and when I try to manually add it, it indicates it has already been added but it does not show up in the list of configured devices. I also own 2 Google Chromecast with Google TV devices and they are working as expected.

@tronikos
Copy link
Member

Can you try force stopping Android TV Remote Service on your Android TV device and clearing its data?

@mark-klink182
Copy link

Force Stop and data clear on both TiVo streams. Restarted HA. HA seems to be discovering the last TiVo stream that a force stop was done on. HA discovered 1 TiVo stream. Connected the discovered TiVo with the pairing code. On the second TiVo stream, I did another Force Stop and data clear on the Android TV Remote Service. The pair again error happened on the discovered TiVo but when attempting to redo the pairing code appeared on the 2nd TiVo stream.

2023-05-11 19:53:24.751 DEBUG (MainThread) [androidtvremote2] Connected to ('192.168.182.73', 6467) 2023-05-11 19:53:24.762 DEBUG (MainThread) [androidtvremote2] Sending: protocol_version: 2 status: STATUS_OK pairing_request { service_name: "atvremote" client_name: "Home Assistant" } 2023-05-11 19:53:24.822 DEBUG (MainThread) [androidtvremote2] Received: protocol_version: 2 status: STATUS_OK pairing_request_ack { } 2023-05-11 19:53:24.827 DEBUG (MainThread) [androidtvremote2] Sending: protocol_version: 2 status: STATUS_OK options { input_encodings { type: ENCODING_TYPE_HEXADECIMAL symbol_length: 6 } preferred_role: ROLE_TYPE_INPUT } 2023-05-11 19:53:24.897 DEBUG (MainThread) [androidtvremote2] Received: protocol_version: 2 status: STATUS_OK options { output_encodings { type: ENCODING_TYPE_HEXADECIMAL symbol_length: 6 } preferred_role: ROLE_TYPE_INPUT } 2023-05-11 19:53:24.898 DEBUG (MainThread) [androidtvremote2] Sending: protocol_version: 2 status: STATUS_OK configuration { encoding { type: ENCODING_TYPE_HEXADECIMAL symbol_length: 6 } client_role: ROLE_TYPE_INPUT } 2023-05-11 19:53:24.960 DEBUG (MainThread) [androidtvremote2] Received: protocol_version: 2 status: STATUS_OK configuration_ack { } 2023-05-11 19:54:19.840 DEBUG (MainThread) [androidtvremote2] Sending: protocol_version: 2 status: STATUS_OK secret { secret: "\314U\232\345r)o<\361\323\005(\353\234\300Fb\374A\333\331\t+x\307\234\004\322-\303r~" } 2023-05-11 19:54:19.877 DEBUG (MainThread) [androidtvremote2] Received: protocol_version: 2 status: STATUS_OK secret_ack { secret: "\314U\232\345r)o<\361\323\005(\353\234\300Fb\374A\333\331\t+x\307\234\004\322-\303r~" } 2023-05-11 19:54:20.195 DEBUG (MainThread) [androidtvremote2] Connected to ('192.168.182.73', 6466) 2023-05-11 19:54:20.331 DEBUG (MainThread) [androidtvremote2] Received: remote_configure { code1: 623 device_info { model: "TiVo Stream 4K" vendor: "SEI Robotics" unknown1: 1 unknown2: "10" package_name: "com.google.android.tv.remote.service" app_version: "5.2.473254133" } } 2023-05-11 19:54:20.331 DEBUG (MainThread) [androidtvremote2] Sending: remote_configure { code1: 623 device_info { unknown1: 1 unknown2: "1" package_name: "atvremote" app_version: "1.0.0" } } 2023-05-11 19:54:20.357 DEBUG (MainThread) [androidtvremote2] Received: remote_set_active { } 2023-05-11 19:54:20.357 DEBUG (MainThread) [androidtvremote2] Sending: remote_set_active { active: 623 } 2023-05-11 19:54:20.483 DEBUG (MainThread) [androidtvremote2] Received: remote_set_volume_level { unknown1: 19 unknown2: 9 player_model: "TiVo Stream 4K" } 2023-05-11 19:54:20.490 DEBUG (MainThread) [androidtvremote2] Received: remote_start { started: true } 2023-05-11 19:54:20.503 DEBUG (MainThread) [androidtvremote2] Received: remote_ime_key_inject { app_info { app_package: "com.android.tv.settings" } } 2023-05-11 19:55:06.519 DEBUG (MainThread) [androidtvremote2] Connection lost. Error: None 2023-05-11 19:55:06.641 DEBUG (MainThread) [androidtvremote2] Connected to ('192.168.182.72', 6466) 2023-05-11 19:55:06.679 DEBUG (MainThread) [androidtvremote2] Connection lost. Error: [SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert certificate unknown (_ssl.c:2578) 2023-05-11 19:55:06.688 DEBUG (MainThread) [androidtvremote2] Couldn't connect to 192.168.182.72:6466. Error: [SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert certificate unknown (_ssl.c:2578) 2023-05-11 19:55:06.688 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Living Room TiVo Stream' for androidtv_remote integration could not authenticate: Need to pair again 2023-05-11 19:55:21.789 DEBUG (MainThread) [androidtvremote2] Closing idle connection 2023-05-11 19:55:22.538 DEBUG (MainThread) [androidtvremote2] Closing idle connection 2023-05-11 19:56:05.186 DEBUG (MainThread) [androidtvremote2] Couldn't connect to 192.168.182.72:6466. [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1007) 2023-05-11 19:57:05.419 DEBUG (MainThread) [androidtvremote2] Connected to ('192.168.182.72', 6467) 2023-05-11 19:57:05.434 DEBUG (MainThread) [androidtvremote2] Sending: protocol_version: 2 status: STATUS_OK pairing_request { service_name: "atvremote" client_name: "Home Assistant" } 2023-05-11 19:57:05.502 DEBUG (MainThread) [androidtvremote2] Received: protocol_version: 2 status: STATUS_OK pairing_request_ack { } 2023-05-11 19:57:05.503 DEBUG (MainThread) [androidtvremote2] Sending: protocol_version: 2 status: STATUS_OK options { input_encodings { type: ENCODING_TYPE_HEXADECIMAL symbol_length: 6 } preferred_role: ROLE_TYPE_INPUT } 2023-05-11 19:57:05.572 DEBUG (MainThread) [androidtvremote2] Received: protocol_version: 2 status: STATUS_OK options { output_encodings { type: ENCODING_TYPE_HEXADECIMAL symbol_length: 6 } preferred_role: ROLE_TYPE_INPUT } 2023-05-11 19:57:05.574 DEBUG (MainThread) [androidtvremote2] Sending: protocol_version: 2 status: STATUS_OK configuration { encoding { type: ENCODING_TYPE_HEXADECIMAL symbol_length: 6 } client_role: ROLE_TYPE_INPUT } 2023-05-11 19:57:05.643 DEBUG (MainThread) [androidtvremote2] Received: protocol_version: 2 status: STATUS_OK configuration_ack { }

@rmaeder
Copy link
Author

rmaeder commented May 12, 2023

Can you try force stopping Android TV Remote Service on your Android TV device and clearing its data?

Success, after stopping and clearing the service on the device, I was able to couple it and it stayed that way.
I also remove the Android Debug integration, if that matters.

@tronikos
Copy link
Member

Great. home-assistant/home-assistant.io#27273 adds this recommendation in the documentation.

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 17, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants