core: apple_tv cant authenticate AirPlay
The problem
With 2020.12 my appletv 4K got autodiscovered, and I try to set it up. It first ask for MRP pin, and it accepts it when I enter it. It then ask for AirPlay pin, and I enter the one my tv shows. However, it does not accept the pin. I have retried several times. Log entered below.
Environment
- Home Assistant Core release with the issue: 2020.12.1
- Last working Home Assistant Core release (if known): -
- Operating environment (OS/Container/Supervised/Core): Supervisor 2020.12.7
- Integration causing this issue: apple_tv
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/apple_tv/
Problem-relevant configuration.yaml
Traceback/Error logs
2020-12-20 15:55:55 DEBUG (MainThread) [pyatv.mrp.srp] Keys (Input=4eadecbcfbbdd6ee06c27ad534af2de39927f8e1592049c9d8c20f968b9d7fd9, Output=566d0dca4111fffc78e34311abe347f92492ee1fc2ef1f226e7c1e42058091ed)
2020-12-20 15:55:55 DEBUG (MainThread) [pyatv.mrp.connection] 192.168.86.35:40954<->192.168.86.250:49153 Closing connection
2020-12-20 15:55:55 DEBUG (MainThread) [pyatv.airplay.srp] Authentication keys (Private=9ebe02e6c929d8883070a63b73697d94cb31e1cac40954061725532780570159, Public=c3533614017d40a6ff28a137bc7e1653ffa322cb91df31eac6e77ad759603ad5)
2020-12-20 15:55:55 DEBUG (MainThread) [pyatv.airplay.pairing] Starting AirPlay pairing with credentials CC5A500684DE3850:9EBE02E6C929D8883070A63B73697D94CB31E1CAC40954061725532780570159
2020-12-20 15:55:55 DEBUG (MainThread) [pyatv.support.net] POST URL: http://192.168.86.250:7000/pair-pin-start
2020-12-20 15:55:55 DEBUG (MainThread) [pyatv.support.net] >> POST (Data=)
2020-12-20 15:55:55 DEBUG (MainThread) [pyatv.mrp.connection] 192.168.86.35:40954<->192.168.86.250:49153 Disconnected from device: None
2020-12-20 15:55:55 DEBUG (MainThread) [pyatv.support.net] Response: status=200, headers=[Date=Sun, 20 Dec 2020 14:55:55 GMT, Content-Length=0, Server=AirTunes/530.6]
2020-12-20 15:56:02 ERROR (MainThread) [glances_api] Can not load data from Glances API
2020-12-20 15:56:02 ERROR (MainThread) [homeassistant.components.glances] Unable to fetch data from Glances
2020-12-20 15:56:02 ERROR (MainThread) [glances_api] Can not load data from Glances API
2020-12-20 15:56:02 ERROR (MainThread) [homeassistant.components.glances] Unable to fetch data from Glances
2020-12-20 15:56:32 DEBUG (MainThread) [pyatv.airplay.pairing] AirPlay PIN changed to 3279
2020-12-20 15:56:32 DEBUG (MainThread) [pyatv.support.net] POST URL: http://192.168.86.250:7000/pair-setup-pin
2020-12-20 15:56:32 DEBUG (MainThread) [pyatv.support.net] >> POST (Data=62706c6973743030d201020304566d6574686f6454757365725370696e5f101043433541353030363834444533383530080d14191d0000000000000101000000000000000500000000000000000000000000000030)
2020-12-20 15:56:32 DEBUG (MainThread) [pyatv.support.net] Response: status=200, headers=[Date=Sun, 20 Dec 2020 14:56:32 GMT, Content-Length=342, Content-Type=application/x-apple-binary-plist, Server=AirTunes/530.6]
2020-12-20 15:56:32 DEBUG (MainThread) [pyatv.airplay.srp] Client session key: b'623ebe54f333769a02841155a6db6abce0a2bef9c3e2e5d364810a68109ac37b7368b0226190ec41'
2020-12-20 15:56:32 DEBUG (MainThread) [pyatv.airplay.srp] Client public: 9a84706f4f48671fa1837428da5449d75f30de8056aeba32d415ea6be94214e943367ecc35ef5816710404617ac39c3a8828cc2233042996fac298f23a2409361db31edc51ce5b6a73a8552727ee7ccf2ee1d2e4764f75ebabbfebbafa69715184c56cc7aaaea5052c1192b726e5633f3d9bc4d08c16cf2f8217de189e56f5629add5449b3c3e4ef5862322b7cab82d2166684ba55d67a76b40c4a0549f0f15389387f42b0b4770df1805e598b345ad352a25206d777f78e6e8ad1f4b4fe8ba35f8a009d99276bdee43353c605f9e347288a4c3971ac5f8a13f18866fc975d89c35ee747412d71511fea4de388d7a90951f7d9521bd3b4ead4c003b426174d0f, proof: b'8cb5de69a16dd3dec31110edb5fc12821dc8de88'
2020-12-20 15:56:32 DEBUG (MainThread) [pyatv.support.net] POST URL: http://192.168.86.250:7000/pair-setup-pin
2020-12-20 15:56:32 DEBUG (MainThread) [pyatv.support.net] >> POST (Data=62706c6973743030d20102030452706b5570726f6f664f1101009a84706f4f48671fa1837428da5449d75f30de8056aeba32d415ea6be94214e943367ecc35ef5816710404617ac39c3a8828cc2233042996fac298f23a2409361db31edc51ce5b6a73a8552727ee7ccf2ee1d2e4764f75ebabbfebbafa69715184c56cc7aaaea5052c1192b726e5633f3d9bc4d08c16cf2f8217de189e56f5629add5449b3c3e4ef5862322b7cab82d2166684ba55d67a76b40c4a0549f0f15389387f42b0b4770df1805e598b345ad352a25206d777f78e6e8ad1f4b4fe8ba35f8a009d99276bdee43353c605f9e347288a4c3971ac5f8a13f18866fc975d89c35ee7474...)
2020-12-20 15:56:32 DEBUG (MainThread) [pyatv.support.net] Response: status=500, headers=[Content-Length=0, Server=AirTunes/530.6]
2020-12-20 15:56:32 ERROR (MainThread) [homeassistant.components.apple_tv.config_flow] Authentication problem
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyatv/support/__init__.py", line 31, in error_handler
return await func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pyatv/airplay/auth.py", line 48, in finish_authentication
await self._send_plist(
File "/usr/local/lib/python3.8/site-packages/pyatv/airplay/auth.py", line 69, in _send_plist
raise AuthenticationError("{0} failed with code {1}".format(step, code))
pyatv.exceptions.AuthenticationError: step2 failed with code 500
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 280, in async_step_pair_with_pin
await self.pairing.finish()
File "/usr/local/lib/python3.8/site-packages/pyatv/airplay/pairing.py", line 68, in finish
await error_handler(
File "/usr/local/lib/python3.8/site-packages/pyatv/support/__init__.py", line 39, in error_handler
raise fallback(str(ex)) from ex
pyatv.exceptions.PairingError: step2 failed with code 500
Additional information
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (8 by maintainers)
@dgomes I’m already in CODEOWNERS as stated by the manifest. So it’s strange I’m not tagged.