Closed 0bimaster closed 3 years ago
apple_tv documentation apple_tv source (message by IssueLinks)
Hey there @postlund, mind taking a look at this issue as its been labeled with an integration (apple_tv
) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)
I'm aware of the problem and I have investigated it to the best of my ability. My conclusion so far is that this is a bug in tvOS, it shouldn't behave like this. I'm not sure there are anything I can do about it right now either. The part of AirPlay dealing with video like this, I.e. passing a URL and playing it on the device rather than streaming video from client (which pyatv doesn't support) seems to not be properly regression tested by Apple. I'm not sure if any Apple products use this interface anymore, but rather rely on streaming instead. That's my theory at least.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
Hi,
I'm using the apple_tv integration frequently to display videos on my TV triggered by Home Assistant (e.g. in combination with Alexa, if I tell Alexa to display my WiFi's QR code, I play a video file that shows the QR using the integration with media_player.play_media on the Apple TV).
Playing the video itself is working fine, however, after I do that I cannot use AirPlay on the target Apple TV on my iPhone anymore. If I try to e.g. mirror it gives the error shown in the attached screenshot. The only way to get it working again is to "Restart" the Apple TV via (Apple TV's UI) Settings >> System >> Restart. After that "normal" AirPlay from an iOS device is working again until I play something via Home Assistant, then it breaks again.
What is version of Home Assistant Core has the issue?
core-2021.6.3
What was the last working version of Home Assistant Core?
No response
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/
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
Error message that appears when trying to screenmirror to the Apple TV after something has been played via Home Assistant: