Skip to content
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 playback status does not update #122287

Open
hn315 opened this issue Jul 21, 2024 · 14 comments
Open

Apple TV playback status does not update #122287

hn315 opened this issue Jul 21, 2024 · 14 comments

Comments

@hn315
Copy link

hn315 commented Jul 21, 2024

The problem

Apple TV 4K (gen 3) is connected to homeassistant. When starting to play videos, the status of the player is not updated.In nodered, the status of the player remains unchanged.I can't deploy automation based on the player's playback position

What version of Home Assistant Core has the issue?

core-2024.6.1

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

No response

Diagnostics information

No response

Example YAML snippet

object
_msgid: "2cd0b8955d209a88"
payload: "playing"
data: object
entity_id: "media_player.apple_tv_4k"
state: "playing"
attributes: object
source_list: array[11]
media_content_type: "video"
media_duration: 2760
media_position: 152
media_position_updated_at: "2024-07-20T06:50:48.792781+00:00"
media_title: "颜心记 - 第 1 季 ∙ 第 40 集 - 第40集"
app_id: "com.firecore.infuse"
app_name: "Infuse"
entity_picture: "/api/media_player_proxy/media_player.apple_tv_4k?token=e7f238eaf164dd17ce707&cache=f0f11e23aefadf33"
friendly_name: "Apple TV"
supported_features: 450487
last_changed: "2024-07-20T06:50:47.741147+00:00"
last_reported: "2024-07-20T06:50:48.793271+00:00"
last_updated: "2024-07-20T06:50:48.793Z"
context: object
timeSinceChangedMs: 1497682

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

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.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


apple_tv documentation
apple_tv source
(message by IssueLinks)

@mplessis
Copy link

Same problem here

@rwjack
Copy link

rwjack commented Jul 28, 2024

Don't recall if it even worked before, but the main thing I'm noticing is that it doesn't update the status for Jellyfin, but it does for YouTube.

@stevesreed
Copy link

I'm having the same issue. the AppeTV's state never changes now, if's always "Off"

I believe it start around the time I installed tvOS 18 beta, so it may just be a bug in the beta...

@rwjack
Copy link

rwjack commented Aug 3, 2024 via email

@stevesreed
Copy link

I found a solution for Apple TV stat not updating.

Just deleting and re-adding the AppleTV did not help.

However, deleting the AppleTV from HA, then clearing all the devices in the "Remotes and Devices/Remote App and Devices" list on the AppleTV, and then re-adding the Apple TV restored full functionality.

@The-russb
Copy link

I have this same issue. I found that when powering on the appleTV it does not update the power on status in HomeAssistant. If I manually turn on the media player in HomeAssistant the status updates as expected. Currently I have an automation that says when it turns of to turn it back on. Not sure if that is a good workaround, but it serves its purpose.

@rwjack
Copy link

rwjack commented Aug 29, 2024

To confirm, ATV 17.6.1, I only get status updates on YouTube, nothing else (Tested for Jellyfin and Steam Link)

@jherby2k
Copy link

jherby2k commented Aug 30, 2024

I had this issue after a recent update, and resolved it by removing all 3 remotes HA added from the Apple TV, then reinstalling the integration.

@issue-triage-workflows
Copy link

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.

@rwjack
Copy link

rwjack commented Nov 28, 2024

So do we know if this is a specific appleTV HA integration issue, or is it specific apps that need to send this status somewhere

@adnn-alc
Copy link

This still happens to me on the latest HA 2024.12.4 and tvOS 18.2
In order to make it work I just need to restart HA and then it updates properly, turning off/on Apple TV doesn't make it work.

@stevesreed
Copy link

Reloading the entity work instead of rebooting HA.

I’ve had lucky with the following work around:

Monitor the AppleTV and HomePod’s state, and when it becomes “off” , issue a reload_config_entry on the entity.

After that status works.

@Moustik2002
Copy link

Reloading the entity work instead of rebooting HA.

I’ve had lucky with the following work around:

Monitor the AppleTV and HomePod’s state, and when it becomes “off” , issue a reload_config_entry on the entity.

After that status works.

I've the same issue, and i'm refreshing the entity status to have the accurate information. But after an hour or two, the issue gets back. Is it a way to automate a resync the time this issue gonna be fixed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants