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 Integration states stays at idle even ATV put to sleep #113385

Open
edmondss opened this issue Mar 14, 2024 · 18 comments
Open

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

edmondss opened this issue Mar 14, 2024 · 18 comments

Comments

@edmondss
Copy link

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
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)

@hsion
Copy link

hsion commented Mar 21, 2024

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
Copy link
Author

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
Copy link

xzshow commented Mar 28, 2024

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
Copy link

Veldkornet commented Mar 28, 2024

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
Copy link
Author

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
Copy link

xzshow commented Apr 1, 2024

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
Copy link
Author

edmondss commented Apr 1, 2024

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

@moriega
Copy link

moriega commented Apr 2, 2024

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
Copy link

moriega commented Apr 10, 2024

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

@exen904
Copy link

exen904 commented Jun 9, 2024

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

@gunnarbeutner
Copy link

I can reproduce this problem by restarting my Apple TV, i.e. via "Settings -> System -> Restart". It seems like Home Assistant doesn't attempt to reconnect to Apple TV until after the integration is reloaded.

@JSChasle
Copy link

JSChasle commented Aug 8, 2024

Having the same problem, as it is always displayed as IDLE. but I can change the source, play/stop the current playing video, it just that any automation done using the status of the current media aren't being registered as its always state that's its idle.

EDIT: Play does work, stop/pause does not, same goes with the sound it just does not work.

@edmondss
Copy link
Author

edmondss commented Aug 10, 2024

I have tried to create automation to reload this issue , whenever the status of the ATVs are "unavailable" but it doesn't seem to work all the time.

ATVs are important component of my HA and if it doesn't work properly, I have to admit that I have lost a bit of interest in HA because of this.

@moriega
Copy link

moriega commented Aug 11, 2024

This is what I do to help with this issue. So far seems to be working
image

description: ""
mode: single
trigger:

  • alias: AppleTV Unavailable
    platform: state
    entity_id: []
    to: unavailable
  • alias: AppleTV Off
    platform: state
    entity_id: []
    to: "off"
    condition: []
    action:
  • service: homeassistant.reload_config_entry
    data: {}

@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.

@gunnarbeutner
Copy link

This is still a problem even with 2024.11.0.

@github-actions github-actions bot removed the stale label Nov 9, 2024
@Valappi
Copy link

Valappi commented Jan 5, 2025

I have this issue on 2025.1.0

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