Open EvilWolv opened 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!
(message by CodeOwnersMention)
apple_tv documentation apple_tv source (message by IssueLinks)
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