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
71.34k stars 29.88k forks source link

Apple TV Invalid authentication #125080

Open EvilWolv opened 2 weeks ago

EvilWolv commented 2 weeks ago

The problem

Hello everyone, When I try to connect my Apple TV 4K (gen3) to Home Assistant I get an error Invalid authentication. I already tried to set airplay to everyone mode and turned it now to everyone in this netwerk. What can in do?

What version of Home Assistant Core has the issue?

core-2024.8.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

apple_tv

Link to integration documentation on our website

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

Diagnostics information

Authentication problem

Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pyatv/support/init.py", line 71, in error_handler return await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/auth.py", line 53, in start_pairing resp = await self.protocol.exchange_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/protocol.py", line 142, in exchange_auth return await self._exchange_generic_opack(frame_type, data, identifier, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/protocol.py", line 175, in _exchange_generic_opack raise exceptions.ProtocolError(f"Command failed: {unpacked_object['_em']}") pyatv.exceptions.ProtocolError: Command failed: Pairing not allowed

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/apple_tv/config_flow.py", line 467, in async_pair_next_protocol await self.pairing.begin() File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/pairing.py", line 47, in begin await error_handler( File "/usr/local/lib/python3.12/site-packages/pyatv/support/init.py", line 77, in error_handler raise fallback(str(ex)) from ex pyatv.exceptions.PairingError: Command failed: Pairing not allowed

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 weeks ago

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

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


apple_tv documentation apple_tv source (message by IssueLinks)