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
69.69k stars 28.84k forks source link

Apple TV Integration states stays at idle even ATV put to sleep #113385

Open edmondss opened 3 months ago

edmondss commented 3 months ago

The problem

The states of ATV stays at idle even the apple TV 4k gen 3 is at sleep. The states does not change. The issue is probably related to choosing Audio Output at Homepod. I have tested that if I change ATV audio back to TV speakers, the states will respond better. Any chance this could be resolved?

What version of Home Assistant Core has the issue?

2024.3.0

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 3 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)

hsion commented 3 months ago

I'm having this issue too. The default output is homepod, ARC audio feedback is enabled, and the Appletv status remains idle without any changes

edmondss commented 3 months ago

I'm having this issue too. The default output is homepod, ARC audio feedback is enabled, and the Appletv status remains idle without any changes

I noticed that there's a change of the integration at the combination of ATV + Homepod too. Previously, if I need to say play a media at homepod (since it is the connected as the audio output of ATV), I have to choose ATV as entity player. This should have changed in recent updates as now playing via ATV won't work and I have to change it all back to the Homepod. This is real as suddenly all my notification automations aren't working and I have to change it all one by one.

xzshow commented 3 months ago

I am a Chinese player and I own a HomePod 2nd Generation. Sometimes, even when my HomePod is idle, its entity status in Home Assistant will still show as "playing". However, the HomePod is not actually playing any music, which leads to many errors in TTS. Please help me fix this issue. 2 3 QQ截图20240328130836

Veldkornet commented 3 months ago

I have this issue too, but I've found that if I "reload" the integration for that AppleTV, then it works again (until it doesn't).

It just seems to happen every so often. Loss of network connection maybe?

edmondss commented 3 months ago

I have observed some issues with the volume of the homepod. I have a homepod connected to as the audio output of the ATV. Recently, it's quite often that the homepod volume reset to 0%. it seems that when the HA disconnects with the homepod, or when it restarts, this will happen. This only happen after recent updates.

I have some automation link to use homepod for TTS so I noticed this issue.

xzshow commented 3 months ago

I have this issue too, but I've found that if I "reload" the integration for that AppleTV, then it works again (until it doesn't).

It just seems to happen every so often. Loss of network connection maybe?

yes,if I "reload" the integration for that AppleTV, then it works again。but I feel this problem only occurs in HomePod.

edmondss commented 3 months ago

Anyone experiencing issue with disconnection of Homepods? Quite often the homepods are disconnected and I have to click "reload" from the integration page.

moriega commented 3 months ago

I have noticed the last few weeks that at least 2 of my Apple TV will only report the status as Off no matter what activity is going on. I currently have a mixture of Apple TV 4K with ethernet and Apple TV HD. The 4K with ethernet are the 2 that seem to have this issue. So far...

Like others have said, if I reload the integrations these to work as expected.

moriega commented 2 months ago

@postlund Any status on this or extra information need from us?

exen904 commented 3 weeks ago

Similar issue with a Apple TV 4K (4.Gen) here, the media player entity stays at "Idle" for 90% of the time. No matter if something is playing, the ATV at sleep or something different. Audio output is set to HDMI, so no external homepods here.

Just reloaded the integration and instantly the status changed correctly. Would want to use the ATV status in some automations as second check, but in that case sadly not usable