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
71.16k stars 29.83k forks source link

HomePod Remote cannot turn on #122529

Open jacovandyk1972 opened 1 month ago

jacovandyk1972 commented 1 month ago

The problem

When Trying to turn on the remote for my HomePod is automatically turns of 3 seconds later image This is only happening to my HomePod's and not to my Apple TV's. This started happening since the latest HomePod Beta 18 release. Thus flagging this as a protencial problem and unsure if this is a Apple related problem.

What version of Home Assistant Core has the issue?

core-2024.7.3

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

home-assistant_apple_tv_2024-07-24T14-02-59.641Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

Homepod and Apple TV's running Beta OS version 18.0 (22J5315e). Apple TV working 100%, but none of the Homepods.

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

postlund commented 1 month ago

This must be new, Home Pods have not had a power state before (they always presented themselves as "on").

kylehakala commented 1 month ago

~@postlund I’ve got a few HomePods that are behaving the same way as described above, running OS 17.6.~

Scratch that — the ones that are impacted are indeed my pair that are running the iOS 18.0 beta. FWIW, the iOS 18 pair reports into HA as running 17.6 firmware (didn’t realize that until just now).

postlund commented 1 month ago

HomePods does not support turning them on or off, they are always considered on. So the problem here is state detection as far as I understand. I don't have a HomePod with tvOS 18 (it runs a stripped down version of tvOS), so I can't test. But can you check what state it reports and any logs? I assume it fails to connect or something similar.

DarkTearStudios commented 1 month ago

I've been having this same issue, but all my homepod minis are running 17.6.

The fix it to restart the Homepod in Homekit. My problem is the issue will come back after some time. I don't know if its HomeKit/the Homepods causing this, or this integration. I'd assume its the Homepods themselves though, as I also lose access to airplay on the affected Homepods via Music Assistant. Maybe they just go into a sleep mode or something.

I have an automation that turns the remote switch back on if its ever turned off (because it likes to randomly turn off for some stupid reason), then if it won't turn back on and remains off for 5 minutes, in that automation I then turn off and back on the smart plug its attached to, effectively restarting the Homepod and getting it back to working with HA. Stupid that I have to use all these workarounds... but it works, so whatever.

jacovandyk1972 commented 1 month ago

Hi @postlund Not quite sure where to see what state is reported unfortunately. When turning on Debug logging for the Apple TV integration, below is what I see. HOWEVER. I have just removed the device form the integration, restarted HA and added the HomePOD again. This resolved the issue it seems.

Log extract:

2024-08-12 17:13:24.608 DEBUG (MainThread) [pyatv.core.scan] Auto-discovered Jaco Office at 192.168.1.42:7000 via Protocol.AirPlay ({'acl': '0', 'btaddr': '63:32:68:48:1A:37', 'deviceid': 'BA:2B:CF:CB:67:23', 'c': '1', 'fex': 'AMp/StBLNbwQoS4', 'features': '0x4A7FCA00,0xBC354BD0', 'flags': '0x1b8c04', 'gid': '8C94C03F-362E-4806-BC90-5C9A3BD0ED49', 'igl': '0', 'gcgl': '0', 'pgid': '8C94C03F-362E-4806-BC90-5C9A3BD0ED49', 'pgcgl': '0', 'model': 'AudioAccessory6,1', 'protovers': '1.1', 'pi': '8afc9e1a-2a16-4f6b-aaff-8f11de9a3407', 'psi': 'BB2BCFCB-6723-4022-848D-3DD88E0DB357', 'pk': 'c0ce3cafd0d18d9d263a162fd3908bb5ed17a8c059d495254af263e2dcef6175', 'srcvers': '800.72.2', 'osvers': '18.0', 'vv': '1'}) 2024-08-12 17:13:24.609 DEBUG (MainThread) [pyatv.core.scan] Auto-discovered BA2BCFCB6723@Jaco Office at 192.168.1.42:7000 via Protocol.RAOP ({'cn': '0,1,2,3', 'da': 'true', 'et': '0,3,5', 'ft': '0x4A7FCA00,0xBC354BD0', 'sf': '0x1b8c04', 'md': '0,1,2', 'am': 'AudioAccessory6,1', 'pk': 'c0ce3cafd0d18d9d263a162fd3908bb5ed17a8c059d495254af263e2dcef6175', 'tp': 'UDP', 'vn': '65537', 'vs': '800.72.2', 'ov': '18.0', 'vv': '1'}) 2024-08-12 17:13:24.611 DEBUG (MainThread) [homeassistant.components.apple_tv] Failed to find device Jaco Kantoor with address 192.168.1.42