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
73.76k stars 30.86k forks source link

Apple TVOS 17 not wroking #94207

Closed jscherry closed 1 year ago

jscherry commented 1 year ago

The problem

After upgrading to TVOS 17 developer the apple tv 4k the integration will not load . Worked well with TVOS 16 and prior.

What version of Home Assistant Core has the issue?

2023.6

What was the last working version of Home Assistant Core?

2023.6

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Apple TV

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2023-06-07 21:38:05.182 DEBUG (MainThread) [pyatv.support.http] Sending RTSP/1.0 message: b'POST /feedback RTSP/1.0\r\nUser-Agent: AirPlay/540.31\r\nCSeq: 7833\r\nDACP-ID: D390BA04578E636F\r\nActive-Remote: 3816508066\r\nClient-Instance: D390BA04578E636F\r\n\r\n'
2023-06-07 21:38:05.189 DEBUG (MainThread) [pyatv.support.http] Received: b'RTSP/1.0 200 OK\r\nDate: Thu, 08 Jun 2023 02:38:05 GMT\r\nContent-Length: 55\r\nContent-Type: application/x-apple-binary-plist\r\nServer: AirTunes/690.7.1\r\nCSeq: 7833\r\n\r\nbplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'
2023-06-07 21:38:05.191 DEBUG (MainThread) [pyatv.support.http] Got RTSP response: HttpResponse(protocol='RTSP', version='1.0', code=200, message='OK', headers={'date': 'Thu, 08 Jun 2023 02:38:05 GMT', 'content-length': '55', 'content-type': 'application/x-apple-binary-plist', 'server': 'AirTunes/690.7.1', 'cseq': '7833'}, body=b'bplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'):
2023-06-07 21:38:05.191 DEBUG (MainThread) [pyatv.core.protocol] Got heartbeat 7830 (AirPlay:192.168.1.96)
2023-06-07 21:38:07.191 DEBUG (MainThread) [pyatv.core.protocol] Sending periodic heartbeat 7831 (AirPlay:192.168.1.96)
2023-06-07 21:38:07.191 DEBUG (MainThread) [pyatv.support.http] Sending RTSP/1.0 message: b'POST /feedback RTSP/1.0\r\nUser-Agent: AirPlay/540.31\r\nCSeq: 7834\r\nDACP-ID: D390BA04578E636F\r\nActive-Remote: 3816508066\r\nClient-Instance: D390BA04578E636F\r\n\r\n'
2023-06-07 21:38:07.218 DEBUG (MainThread) [pyatv.support.http] Received: b'RTSP/1.0 200 OK\r\nDate: Thu, 08 Jun 2023 02:38:07 GMT\r\nContent-Length: 55\r\nContent-Type: application/x-apple-binary-plist\r\nServer: AirTunes/690.7.1\r\nCSeq: 7834\r\n\r\nbplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'
2023-06-07 21:38:07.219 DEBUG (MainThread) [pyatv.support.http] Got RTSP response: HttpResponse(protocol='RTSP', version='1.0', code=200, message='OK', headers={'date': 'Thu, 08 Jun 2023 02:38:07 GMT', 'content-length': '55', 'content-type': 'application/x-apple-binary-plist', 'server': 'AirTunes/690.7.1', 'cseq': '7834'}, body=b'bplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'):
2023-06-07 21:38:07.220 DEBUG (MainThread) [pyatv.core.protocol] Got heartbeat 7831 (AirPlay:192.168.1.96)
2023-06-07 21:38:07.226 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.115:61208/api/3/uptime failed with 
2023-06-07 21:38:09.221 DEBUG (MainThread) [pyatv.core.protocol] Sending periodic heartbeat 7832 (AirPlay:192.168.1.96)
2023-06-07 21:38:09.221 DEBUG (MainThread) [pyatv.support.http] Sending RTSP/1.0 message: b'POST /feedback RTSP/1.0\r\nUser-Agent: AirPlay/540.31\r\nCSeq: 7835\r\nDACP-ID: D390BA04578E636F\r\nActive-Remote: 3816508066\r\nClient-Instance: D390BA04578E636F\r\n\r\n'
2023-06-07 21:38:09.265 DEBUG (MainThread) [pyatv.support.http] Received: b'RTSP/1.0 200 OK\r\nDate: Thu, 08 Jun 2023 02:38:09 GMT\r\nContent-Length: 55\r\nContent-Type: application/x-apple-binary-plist\r\nServer: AirTunes/690.7.1\r\nCSeq: 7835\r\n\r\nbplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'
2023-06-07 21:38:09.266 DEBUG (MainThread) [pyatv.support.http] Got RTSP response: HttpResponse(protocol='RTSP', version='1.0', code=200, message='OK', headers={'date': 'Thu, 08 Jun 2023 02:38:09 GMT', 'content-length': '55', 'content-type': 'application/x-apple-binary-plist', 'server': 'AirTunes/690.7.1', 'cseq': '7835'}, body=b'bplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'):
2023-06-07 21:38:09.266 DEBUG (MainThread) [pyatv.core.protocol] Got heartbeat 7832 (AirPlay:192.168.1.96)
2023-06-07 21:38:11.267 DEBUG (MainThread) [pyatv.core.protocol] Sending periodic heartbeat 7833 (AirPlay:192.168.1.96)
2023-06-07 21:38:11.267 DEBUG (MainThread) [pyatv.support.http] Sending RTSP/1.0 message: b'POST /feedback RTSP/1.0\r\nUser-Agent: AirPlay/540.31\r\nCSeq: 7836\r\nDACP-ID: D390BA04578E636F\r\nActive-Remote: 3816508066\r\nClient-Instance: D390BA04578E636F\r\n\r\n'
2023-06-07 21:38:11.274 DEBUG (MainThread) [pyatv.support.http] Received: b'RTSP/1.0 200 OK\r\nDate: Thu, 08 Jun 2023 02:38:11 GMT\r\nContent-Length: 55\r\nContent-Type: application/x-apple-binary-plist\r\nServer: AirTunes/690.7.1\r\nCSeq: 7836\r\n\r\nbplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'
2023-06-07 21:38:11.275 DEBUG (MainThread) [pyatv.support.http] Got RTSP response: HttpResponse(protocol='RTSP', version='1.0', code=200, message='OK', headers={'date': 'Thu, 08 Jun 2023 02:38:11 GMT', 'content-length': '55', 'content-type': 'application/x-apple-binary-plist', 'server': 'AirTunes/690.7.1', 'cseq': '7836'}, body=b'bplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'):
2023-06-07 21:38:11.275 DEBUG (MainThread) [pyatv.core.protocol] Got heartbeat 7833 (AirPlay:192.168.1.96)
2023-06-07 21:38:11.505 DEBUG (MainThread) [homeassistant.components.apple_tv] Discovering device Living Room (2)
2023-06-07 21:38:14.398 DEBUG (MainThread) [pyatv.core.protocol] Sending periodic heartbeat 7834 (AirPlay:192.168.1.96)
2023-06-07 21:38:14.399 DEBUG (MainThread) [pyatv.support.http] Sending RTSP/1.0 message: b'POST /feedback RTSP/1.0\r\nUser-Agent: AirPlay/540.31\r\nCSeq: 7837\r\nDACP-ID: D390BA04578E636F\r\nActive-Remote: 3816508066\r\nClient-Instance: D390BA04578E636F\r\n\r\n'
2023-06-07 21:38:14.428 DEBUG (MainThread) [pyatv.support.http] Received: b'RTSP/1.0 200 OK\r\nDate: Thu, 08 Jun 2023 02:38:14 GMT\r\nContent-Length: 55\r\nContent-Type: application/x-apple-binary-plist\r\nServer: AirTunes/690.7.1\r\nCSeq: 7837\r\n\r\nbplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'
2023-06-07 21:38:14.433 DEBUG (MainThread) [pyatv.support.http] Got RTSP response: HttpResponse(protocol='RTSP', version='1.0', code=200, message='OK', headers={'date': 'Thu, 08 Jun 2023 02:38:14 GMT', 'content-length': '55', 'content-type': 'application/x-apple-binary-plist', 'server': 'AirTunes/690.7.1', 'cseq': '7837'}, body=b'bplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'):
2023-06-07 21:38:14.433 DEBUG (MainThread) [pyatv.core.protocol] Got heartbeat 7834 (AirPlay:192.168.1.96)
2023-06-07 21:38:16.434 DEBUG (MainThread) [pyatv.core.protocol] Sending periodic heartbeat 7835 (AirPlay:192.168.1.96)
2023-06-07 21:38:16.434 DEBUG (MainThread) [pyatv.support.http] Sending RTSP/1.0 message: b'POST /feedback RTSP/1.0\r\nUser-Agent: AirPlay/540.31\r\nCSeq: 7838\r\nDACP-ID: D390BA04578E636F\r\nActive-Remote: 3816508066\r\nClient-Instance: D390BA04578E636F\r\n\r\n'
2023-06-07 21:38:16.521 DEBUG (MainThread) [homeassistant.components.apple_tv] Failed to find device Living Room (2) with address 192.168.1.101
2023-06-07 21:38:16.565 DEBUG (MainThread) [pyatv.support.http] Received: b'RTSP/1.0 200 OK\r\nDate: Thu, 08 Jun 2023 02:38:16 GMT\r\nContent-Length: 55\r\nContent-Type: application/x-apple-binary-plist\r\nServer: AirTunes/690.7.1\r\nCSeq: 7838\r\n\r\nbplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'
2023-06-07 21:38:16.567 DEBUG (MainThread) [pyatv.support.http] Got RTSP response: HttpResponse(protocol='RTSP', version='1.0', code=200, message='OK', headers={'date': 'Thu, 08 Jun 2023 02:38:16 GMT', 'content-length': '55', 'content-type': 'application/x-apple-binary-plist', 'server': 'AirTunes/690.7.1', 'cseq': '7838'}, body=b'bplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'):
2023-06-07 21:38:16.567 DEBUG (MainThread) [pyatv.core.protocol] Got heartbeat 7835 (AirPlay:192.168.1.96)
2023-06-07 21:38:18.569 DEBUG (MainThread) [pyatv.core.protocol] Sending periodic heartbeat 7836 (AirPlay:192.168.1.96)
2023-06-07 21:38:18.569 DEBUG (MainThread) [pyatv.support.http] Sending RTSP/1.0 message: b'POST /feedback RTSP/1.0\r\nUser-Agent: AirPlay/540.31\r\nCSeq: 7839\r\nDACP-ID: D390BA04578E636F\r\nActive-Remote: 3816508066\r\nClient-Instance: D390BA04578E636F\r\n\r\n'
2023-06-07 21:38:18.587 DEBUG (MainThread) [pyatv.support.http] Received: b'RTSP/1.0 200 OK\r\nDate: Thu, 08 Jun 2023 02:38:18 GMT\r\nContent-Length: 55\r\nContent-Type: application/x-apple-binary-plist\r\nServer: AirTunes/690.7.1\r\nCSeq: 7839\r\n\r\nbplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'
2023-06-07 21:38:18.588 DEBUG (MainThread) [pyatv.support.http] Got RTSP response: HttpResponse(protocol='RTSP', version='1.0', code=200, message='OK', headers={'date': 'Thu, 08 Jun 2023 02:38:18 GMT', 'content-length': '55', 'content-type': 'application/x-apple-binary-plist', 'server': 'AirTunes/690.7.1', 'cseq': '7839'}, body=b'bplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'):
2023-06-07 21:38:18.588 DEBUG (MainThread) [pyatv.core.protocol] Got heartbeat 7836 (AirPlay:192.168.1.96)
2023-06-07 21:38:20.591 DEBUG (MainThread) [pyatv.core.protocol] Sending periodic heartbeat 7837 (AirPlay:192.168.1.96)
2023-06-07 21:38:20.591 DEBUG (MainThread) [pyatv.support.http] Sending RTSP/1.0 message: b'POST /feedback RTSP/1.0\r\nUser-Agent: AirPlay/540.31\r\nCSeq: 7840\r\nDACP-ID: D390BA04578E636F\r\nActive-Remote: 3816508066\r\nClient-Instance: D390BA04578E636F\r\n\r\n'
2023-06-07 21:38:20.600 DEBUG (MainThread) [pyatv.support.http] Received: b'RTSP/1.0 200 OK\r\nDate: Thu, 08 Jun 2023 02:38:20 GMT\r\nContent-Length: 55\r\nContent-Type: application/x-apple-binary-plist\r\nServer: AirTunes/690.7.1\r\nCSeq: 7840\r\n\r\nbplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'
2023-06-07 21:38:20.601 DEBUG (MainThread) [pyatv.support.http] Got RTSP response: HttpResponse(protocol='RTSP', version='1.0', code=200, message='OK', headers={'date': 'Thu, 08 Jun 2023 02:38:20 GMT', 'content-length': '55', 'content-type': 'application/x-apple-binary-plist', 'server': 'AirTunes/690.7.1', 'cseq': '7840'}, body=b'bplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'):
2023-06-07 21:38:20.601 DEBUG (MainThread) [pyatv.core.protocol] Got heartbeat 7837 (AirPlay:192.168.1.96)

Additional information

Couldn't get drag and drop to work. I did put it in debug mode and here's the info I could see related to apple tv? I'm not seeing anything in the system logs? My other apple tv running tvos 16 loads fine

home-assistant[bot] commented 1 year 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.

(message by CodeOwnersMention)


apple_tv documentation apple_tv source (message by IssueLinks)

postlund commented 1 year ago

This log is probably from the other device because it seems to work fine. To start, can you verify that the access settings for AirPlay hasn't changed (Settings->AirPlay->Access setting something-something->Everyone on the same network). I know they reset this when upgrading to tvOS 16 (at least for some users), so they might have done that again.

jscherry commented 1 year ago

Correct thanks