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.61k stars 28.79k forks source link

Apple TV integration failing to initialize #118891

Open bobbeims opened 2 weeks ago

bobbeims commented 2 weeks ago

The problem

A day or two ago all of my Apple TV integration provided devices have started failing to initialize. As far as I know, no updates to either Home Assistant or any of my Apple media devices have been applied in the last two weeks.

What version of Home Assistant Core has the issue?

System Information version | core-2024.5.5 -- | -- installation_type | Home Assistant OS dev | false hassio | true docker | true user | root virtualenv | false python_version | 3.12.2 os_name | Linux os_version | 6.6.28-haos-raspi arch | aarch64 timezone | America/Chicago config_dir | /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.34.0 Stage | running Available Repositories | 1456 Downloaded Repositories | 20
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | June 22, 2024 at 7:00 PM relayer_connected | true relayer_region | us-east-1 remote_enabled | true remote_connected | true alexa_enabled | false google_enabled | false remote_server | us-east-1-5.ui.nabu.casa certificate_status | ready instance_id | a6511b9f28c7458f9399f0766a450795 can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 12.3 -- | -- update_channel | stable supervisor_version | supervisor-2024.05.1 agent_version | 1.6.0 docker_version | 25.0.5 disk_total | 117.3 GB disk_used | 16.0 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Studio Code Server (5.15.0), File editor (5.8.0), Terminal & SSH (9.14.0), Samba share (12.3.1), Z-Wave JS UI (3.7.1), Piper (1.5.0), Whisper (2.1.0), Matter Server (6.0.0), go2rtc (1.9.2), Abode Camera Streaming (1.2.9), Scrypted (v0.105.0-jammy-full)
Dashboards dashboards | 5 -- | -- resources | 11 views | 37 mode | storage
Recorder oldest_recorder_run | May 27, 2024 at 11:45 AM -- | -- current_recorder_run | June 4, 2024 at 9:40 PM estimated_db_size | 154.02 MiB database_engine | sqlite database_version | 3.44.2

What was the last working version of Home Assistant Core?

2024.5.5

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

home-assistant_apple_tv_2024-06-05T15-44-08.715Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

I've taken a screen recording that I'll attach.

Additional information

No response

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

bobbeims commented 2 weeks ago

Here's a screen cap of what is displayed in the UI during the time span captured in the debug log. https://github.com/home-assistant/core/assets/2170636/445288c3-abc0-441c-9e2c-5e19db9b0172

bobbeims commented 2 weeks ago

One other bit of information. I've tried completely resetting the HomeKit home (shut down all Apple devices, including TVs, HomePods, iPhones, iPads, watches, laptops and desktops ... left them off for 5 minutes before bringing them all back online) and restarting the HA system.

timmaurice commented 2 weeks ago

Noticed the same issue with the Apple TV integration failing to initialize. I'm experiencing this problem on Home Assistant versions 2024.6.0 and 2024.6.1. However, after downgrading to version 2024.5.5, the integration is working again without any issues.

iamrufus commented 1 week ago

I am seeing the same issues with it getting stuck on initialising running version 2024.6.1. I removed the integration and restarted then installed. It worked for 2 days but now gone back to doing the same

Kerryliu commented 1 week ago

I seem to be having a similar issue. However after removing my Apple TV, I'm also unable to add it back to Home Assistant. :|

Edit: Restarting home assistant seems to have resolved the pairing issue for me.

SynVisions commented 2 days ago

Same issue here, restarting home assistant fixed it for now...