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.99k stars 31.04k forks source link

Apple TV playback status does not update #122287

Open hn315 opened 4 months ago

hn315 commented 4 months ago

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[bot] commented 4 months 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. - `@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 commented 4 months ago

Same problem here

rwjack commented 4 months ago

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 commented 3 months ago

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 commented 3 months ago

I'm on the latest stable version, 17.4 I believe, so I doubt it's the beta.

stevesreed commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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

jherby2k commented 2 months ago

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.