question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Pairing Not Possible" with HomePod in Home Assistant

See original GitHub issue

Describe the bug

When attempting to setup any HomePod in Home Assistant, the following error appears:

image

Ultimately, hitting “Submit” repeats the failure message with the other protocols, before receiving a final “Aborted” dialog.

This is with the latest hass-atv-beta installed via HACS. Running Home Assistant 2021.10.0 (though it also had the same issues with earlier versions). This is in a Docker container running on my Synology NAS, though it is using the host networking.

Worth noting that setting up an Apple TV seems to work fine. I’m also not getting any of my devices automatically popping up as “Discovered,” which also seems to be some kind of issue.

Home Assistant logs are attached, please let me know if there are other logs I should be looking for.

Error log

This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/apple_tv/config_flow.py:111
Integration: Apple TV
First occurred: October 7, 2021, 9:04:18 AM (1413 occurrences)
Last logged: 9:37:03 AM

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 151, in async_init
    flow, result = await task
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 177, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data, init_done)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 256, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/config/custom_components/apple_tv/config_flow.py", line 177, in async_step_zeroconf
    return await self.async_find_device_wrapper(self.async_found_zeroconf_device)
  File "/config/custom_components/apple_tv/config_flow.py", line 203, in async_find_device_wrapper
    return await next_func()
  File "/config/custom_components/apple_tv/config_flow.py", line 181, in async_found_zeroconf_device
    await self.async_set_unique_id(self.device_identifier)
  File "/config/custom_components/apple_tv/config_flow.py", line 111, in device_identifier
    if self.atv.identifier in entry.data[CONF_IDENTIFIERS]:
KeyError: 'identifiers'

How to reproduce the bug?

Add HomePod via Apple TV beta integration

What is expected behavior?

HomePod should add normally

Operating System

Linux

Python

3.9

pyatv

hass-atv-beta Release 2

Device

HomePod and HomePod mini w/ HomePodOS 15

Additional context

N/A

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
postlundcommented, Oct 12, 2021

Great! I guess we can close this now!

0reactions
gitaroomaancommented, Oct 12, 2021

I seemed to have resolved this one: While digging around other issues here, I saw reference of deleting old Apple TV instances in the .storage/core.config_entries file. I did that, rebooted and voila - the remaining HomePod/Apple TV instances appeared in discovery. Thanks for the help on this!

Edit: This also resolved the above error from appearing in my logs thousands of times.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apple TV Integration Homepod mini - pairing not possible
The problem​​ Homepod mini gets recogized automatically, but when i want to pair it with HA Im getting Error Messages: Pairing not possible:...
Read more >
HomeKit - Home Assistant
The HomeKit integration remembers a public key for each paired device. Occasionally the public key for a device pairing will be missing because...
Read more >
Apple TV and Apple Homepod Mini - Configuration
I am facing an issue where only the Apple Homepod Mini is being added to HomeAssistant. Even if HA detects Apple TV, does...
Read more >
HomeKit Controller - Home Assistant
If your device is currently paired with an Apple device via HomeKit, you will need to reset it in order to pair it...
Read more >
Unable to setup HomeKit bridge - Home Assistant Community
setup “HomeKit bridge” from UI using the integration option, no errors, got the pin/QR in notification panel, scanned the QR from my iPhone...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found