New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apple TV State Not Updating #44305
Comments
apple_tv documentation |
I can confirm this issue, it might be something with the last update of AppleTV (14.3) ? |
I don't think it's related to tvOS version as i'm still on 14.0.2 |
cc @postlund |
I can confirm this is happening for me as well - specifically when using the Apple Fitness+ app. A reload of the component typically resolves the problem. |
It would be great if you could attach some debug logs I can look at. Suggestion for log points: logger:
logs:
pyatv: debug
custom_components.apple_tv: debug |
Hi. Attached is the log where I call play_stream, wait around 30 seconds and then press home on my ATV remote to stop the camera stream. Hopefully this is useful |
I believe this is the same issue I've been rambling about in postlund/pyatv#905. Will start working on a fix for that. |
Same here...after going idle (like tv is off) the component is losing track of what s happening on the atv anymore...i need to reload the component in the integrations section and then it s working again. |
I'm thinking my open issue (#43462) could be related to this one. I have no comments on that issue, so it maybe went unnoticed. This still happens with 2020.12 update. |
@sira87 Since I don't have any logs to look at, I can't tell for sure. But since this appears to be a general issue now, it's likely that it at least relates. |
It appears that the most recent version of Home Assistant (2021.1, see Release notes ) resolves this issue. I just updated Home Assistant, and now the status of the media player is updated correctly, including the state (idle, playing, paused) and the media source (movie/stream and app name). |
The issue is still present for me in 2021.1, my ATV turned off due to inactivity but the entity state in HA remained The only logs I have were generated when I tried to interact with the stuck entity via this script:
Here are the logs it generated when I started the script:
|
I was actually quite surprised hearing that HA 2021.1 solved the problem as it didn't contain any bug fixes of magnitude. However, I do believe it's fixed on |
Awesome news! Thank you for your work @postlund, it's really appreciated! |
The problem
I've been using the ATV Beta custom_component for some time but after speaking to Postlund on Discord he recommended when 2020.12 is released it's best to move over to the core ATV Integration.
The Apple TV state when not playing content should be 'idle'. When I play movies it changes to 'playing' and when stopping the movie it changes back to 'idle'. When I call the service 'camera.play_stream' to play my camera the state succesfully changes to 'playing' but when I press home on my ATV remote and the ATV goes back to the main menu then state does not change to 'idle'. If I then try and play a movie the state remains as 'playing' and when I exit it remains as 'playing'. The only way to fix it is to reboot the ATV
Environment
Problem-relevant
configuration.yaml
Nothing in YAML
Traceback/Error logs
Additional information
The text was updated successfully, but these errors were encountered: