mikebrady / shairport-sync

AirPlay and AirPlay 2 audio player
Other
7.3k stars 574 forks source link

[Problem]: AirPlay 2 -> Unable to add accessory to Apple Home #1612

Closed PalmTamino closed 1 year ago

PalmTamino commented 1 year ago

What happened?

I tried to add my Airplay 2 device running this software to apple home by following this guide: https://github.com/mikebrady/shairport-sync/blob/master/ADDINGTOHOME.md

But i got an error in apple home after clicking on the device which appeared successfully. signal-2023-01-03-141306

Relevant log output

Where to get? Is it needed?

Configuration Information.

Display Config Start.

From "uname -a": Linux raspberrypi 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 GNU/Linux

From /etc/os-release: Debian GNU/Linux 11 (bullseye)

From /sys/firmware/devicetree/base/model: Raspberry Pi 3 Model B Rev 1.2

Shairport Sync Version String: 4.1.1-2-g6240fd83-AirPlay2-OpenSSL-Avahi-ALSA-soxr-sysconfdir:/etc

Command Line: shairport-sync --displayConfig

Configuration File: /etc/shairport-sync.conf

Configuration File Settings: general : { name = "Tamino's Zimmer"; };

Display Config End. Goodbye!

How did you install Shairport Sync?

A package manager (apt, apt install, yum, pkg, etc.)

Check previous issues

mikebrady commented 1 year ago

Thanks. It should be working — maybe there’s something in #1246 that might help?

github-actions[bot] commented 1 year ago

This issue has been inactive for 45 days so will be closed 7 days from now. To prevent this, please remove the "stale" label or post a comment.

PalmTamino commented 1 year ago

Thanks. It should be working — maybe there’s something in #1246 that might help?

Restarting phone didn't help. Still have the issue unfortunately :/

NilsMinten commented 1 year ago

I have the same issue, when looking at the verbose logs I can see the following items pop up.

97.074935171 "rtsp.c:2942" Connection 5: Remote Control connection from {{ ip-v6 }} ("Nils’ iPhone") to self at {{ ip-v6 }}.
0.037944062 "rtsp.c:2133" pair-add cb for {{ device-id }}
0.037572552 "rtsp.c:1372" Connection 5: Connection closed by client.

So far I've rebooted my device a few times along with the shairport server, the iPhone just seems to give up as soon as the pair-add happens.

mikebrady commented 1 year ago

Thanks. Some users have had success trying this: in the Home app > Home settings "Allow Speaker & TV access", select the option "Anyone On the Same Network".

NilsMinten commented 1 year ago

Switching to anyone on this network fixed it straight away, thanks for the quick response!

PalmTamino commented 1 year ago

Thanks. Some users have had success trying this: in the Home app > Home settings "Allow Speaker & TV access", select the option "Anyone On the Same Network".

Nice that it helped, for me I still get the same error E466C9E2-5617-411B-9D76-B64854433F59

mikebrady commented 1 year ago

That’s seems to be a different error to the original, so yours might be a different kind of issue.

github-actions[bot] commented 1 year ago

This issue has been inactive for 45 days so will be closed 7 days from now. To prevent this, please remove the "stale" label or post a comment.

ajones45 commented 1 year ago

Hi

I was having this issue too and even with the "allow anyone on the same network" I was continuing to have this issue.

In case anyone else gets to this thread and is still stuck: I just had to remove the "require password" option below the "anyone on same network" option in the home app.

It immediately started working again.

PS thanks so much for all the support on this project. I use it literally every day and its rock solid, and works perfectly now!

mikebrady commented 1 year ago

Thanks for the information and the kind words. I've added an extra phrase to the ADDINGTOHOME guide.

github-actions[bot] commented 1 year ago

This issue has been inactive for 45 days so will be closed 7 days from now. To prevent this, please remove the "stale" label or post a comment.