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

Homekit not responding #1869

Open
1 of 2 tasks
Lui5Jacint0 opened this issue Jun 24, 2024 · 25 comments
Open
1 of 2 tasks

Homekit not responding #1869

Lui5Jacint0 opened this issue Jun 24, 2024 · 25 comments

Comments

@Lui5Jacint0
Copy link

What happened?

After adding the speaker to homekit, a few moments later it appears "not responding" although the album work and media controls are available and working.

Relevant log output

No response

System Information.

Raspberry Pi 4B

Configuration Information.

>> Display Config Start.

From "uname -a":
 Linux raspberrypi 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux

From /etc/os-release:
 Debian GNU/Linux 12 (bookworm)

From /sys/firmware/devicetree/base/model:
 Raspberry Pi 4 Model B Rev 1.1

Shairport Sync Version String:
 4.3.3-AirPlay2-smi10-OpenSSL-Avahi-ALSA-soxr-sysconfdir:/etc

Command Line:
 shairport-sync --displayConfig

Configuration File:
 /etc/shairport-sync.conf

Configuration File Settings:
 general : 
 {
   name = "Colunas Cozinha";
 };
 pw : 
 {
 };

>> Display Config End.
>> Goodbye!

PulseAudio or PipeWire installed?

  • Check if your system uses a Sound Server.

How did you install Shairport Sync?

Built from source

Check previous issues

  • Confirm
@mikebrady
Copy link
Owner

Thanks for the post. This is a known problem, and unfortunately, we don't know how to resolve it -- please see #1802 for more discussion.

@Lui5Jacint0
Copy link
Author

Maybe someone in the homebridge community may help the development?

@stibbzy
Copy link

stibbzy commented Aug 13, 2024

I have this issue too, and it prevents Siri from executing control over the Shairport speaker (e.g. to pause, play etc).

Copy link

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

@github-actions github-actions bot added the Stale label Oct 13, 2024
@stibbzy
Copy link

stibbzy commented Oct 16, 2024

Still an issue

@github-actions github-actions bot removed the Stale label Oct 17, 2024
@cloud35x
Copy link

cloud35x commented Nov 1, 2024

I was able to fix the “not responding” issue by disabling IPv6 on the device running shairport-sync. Then after removing the speaker accessory in Homekit and adding the accessory again, Homekit no longer reports the speaker accessory as not responding.

This comment in issue 1802 is what led me to check the Avahi service logs, where I noticed avahi was reporting issues on the IPv6 address of my machine.

I am running shairport-sync version 4.3.5-dev-32-g92a933a3-AirPlay2-smi10-OpenSSL-Avahi-ALSA-soxr-metadata-mqtt-sysconfdir:/etc on a Raspberry Pi Zero-W (32 bit), using an Apple TV 4 as home hub.

Hope this helps others to fix the issue as well, or at least points you in the right direction.

@mikebrady
Copy link
Owner

Thanks for this. Does the Shairport Sync device regain the ability to be controlled from the Home app?

@stibbzy
Copy link

stibbzy commented Nov 1, 2024

I was able to fix the “not responding” issue by disabling IPv6 on the device running shairport-sync

I just tried this by completely disabling IPv6 on my Raspberry Pi, and adding the speaker again in the Home app. It added ok and was responsive. But after closing and reopening the Home app, it has again gone back to 'No response".

@roboterm
Copy link

roboterm commented Dec 8, 2024

Turning off ipv6 also solved the issue for me.

@MSL-DA
Copy link

MSL-DA commented Dec 28, 2024

Thanks for this. Does the Shairport Sync device regain the ability to be controlled from the Home app?

I am able to control, next/previous, play/pause volume up/down. So yes :)

@MSL-DA
Copy link

MSL-DA commented Dec 28, 2024

I was able to fix the “not responding” issue by disabling IPv6 on the device running shairport-sync

I just tried this by completely disabling IPv6 on my Raspberry Pi, and adding the speaker again in the Home app. It added ok and was responsive. But after closing and reopening the Home app, it has again gone back to 'No response".

Are you sure ipv6 is disabled? https://www.howtoraspberry.com/2020/04/disable-ipv6-on-raspberry-pi/

@roboterm
Copy link

Turning off ipv6 also solved the issue for me.

I should add that after the pi running shairport-sync reboots the No response state is back.

@MSL-DA
Copy link

MSL-DA commented Dec 28, 2024

Turning off ipv6 also solved the issue for me.

I should add that after the pi running shairport-sync reboots the No response state is back.

That's not the case for me.

@MSL-DA
Copy link

MSL-DA commented Dec 28, 2024

I have triple checked by restarting my pi 4, my phone and Apple TV (iOS 18.2, tvOS 18.2) and “not responding” is gone.

@MSL-DA
Copy link

MSL-DA commented Dec 28, 2024

I'm pretty sure that ipv6 is not disabled for you who experience "No response"

Check with cat /proc/sys/net/ipv6/conf/all/disable_ipv6

if the result is "1" then ipv6 is disabled.

@stibbzy
Copy link

stibbzy commented Dec 29, 2024

@MSL-DA Just double checked again. Definitely disabled...
Screenshot 2024-12-29 at 11 21 05 am

@roboterm
Copy link

Turning off ipv6 also solved the issue for me.

I should add that after the pi running shairport-sync reboots the No response state is back.

That's not the case for me.

Yes, you’re right.
I’ve mistakenly thought that a cronjob was the reason.

@mikebrady
Copy link
Owner

mikebrady commented Dec 29, 2024

Thanks for all these comments.

Unfortunately, I'm not having any luck getting rid of the 'Not Responding' message. One thing that just occurred to me is what operating systems you are using. Maybe there is other stuff...

It would be really useful if you could post all the details of your setups. I'm thinking of:

  1. The output from $ shairport-sync --displayConfig,
  2. The type and version of the operating system, e.g. Ubuntu 22.04,
  3. The kind of device, e.g. Pi 2B,
  4. The type and OS of the device hosting your Apple Home, e.g. ATV4K 18.2, HomePod mini 18.1.1.

Maybe I've forgotten something... 🤷‍♂️

@roboterm
Copy link

roboterm commented Dec 29, 2024

Pi3:

>> Display Config Start.

From "uname -a":
 Linux pi3 6.1.21-v7+ #1642 SMP Mon Apr  3 17:20:52 BST 2023 armv7l GNU/Linux

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

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

Shairport Sync Version String:
 4.3.5-AirPlay2-smi10-OpenSSL-Avahi-ALSA-soxr-sysconfdir:/etc

Command Line:
 shairport-sync --displayConfig

Configuration File:
 /etc/shairport-sync.conf

Configuration File Settings:
 general : 
 {
   name = "Küche";
 };

>> Display Config End.
>> Goodbye!  

Pi4:

>> Display Config Start.

From "uname -a":
 Linux homebridge 6.6.62+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux

From /etc/os-release:
 Debian GNU/Linux 12 (bookworm)

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

Shairport Sync Version String:
 4.3.5-AirPlay2-smi10-OpenSSL-Avahi-ALSA-soxr-sysconfdir:/etc

Command Line:
 shairport-sync --displayConfig

Configuration File:
 /etc/shairport-sync.conf

Configuration File Settings:
general : 
{
  name = "%H";
};
dsp : 
{
  loudness = "no";
};
>> Display Config End.
>> Goodbye!

Home:
ATV4K
HomePod Mini (preferred hub)

@MSL-DA
Copy link

MSL-DA commented Dec 29, 2024

The 'Not Responding' message is gone and does not come back on restart.

HomePod mini and Apple TV 4K (OS 18.2), iPhone iOS 18.2

>> Display Config Start.

From "uname -a":
 Linux HiFi 6.6.62+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux

From /etc/os-release:
 Debian GNU/Linux 12 (bookworm)

From /sys/firmware/devicetree/base/model:
 Raspberry Pi 4 Model B Rev 1.5

Shairport Sync Version String:
 4.3.6-dev-5-gd166477e-AirPlay2-smi10-alac-OpenSSL-Avahi-ALSA-metadata-mqtt-sysconfdir:/etc

Command Line:
 shairport-sync --displayConfig

Configuration File:
 /etc/shairport-sync.conf

Configuration File Settings:
 general : 
 {
   name = "HiFi";
   alac_decoder = "apple";
   volume_control_profile = "flat";
 };
 sessioncontrol : 
 {
   run_this_before_entering_active_state = "usr/local/bin/script/sps/on.py";
   run_this_after_exiting_active_state = "usr/local/bin/script/sps/off.py";
   active_state_timeout = 360.0;
 };
 alsa : 
 {
   output_device = "hw:AUDIO";
   output_rate = "auto";
   output_format = "auto";
 };
 pw : 
 {
 };

>> Display Config End.
>> Goodbye!

@mikebrady
Copy link
Owner

@MSL-DA, can you say which is the "preferred hub" in your system, please?

@MSL-DA
Copy link

MSL-DA commented Dec 29, 2024

@MSL-DA, can you say which is the "preferred hub" in your system, please?

Yes ... Apple TV 4K (third generation) I also have a 4K (second generation) which gives the same result. I have not tested with the HomePod mini as a hub.

EDIT: All devices are on WiFi.

@MSL-DA
Copy link

MSL-DA commented Dec 29, 2024

I've had success removing and adding sps before, but when I restart the Apple TV/and or sps, 'Not Responding' pops up again. But not after I disable ipv6. I have tried everything to provoke it.

I have also tried disconnecting the power to all devices for 10 minutes.

@luvingiane
Copy link

Hey!
i've the same issue, i tried disabling IPv6 and removing the speaker on HomeKit,
now i can't add the speaker, it gives "unable to add accessory, check if iphone is connected to wifi" etc.
ps. i can't enable "Allow Users to use speakers in the same network" because i don't own an apple TV (is it possible to emulate with a raspberry pi? will be cool and avoid to spend 100€ only for an Homekit Hub)

@MSL-DA
Copy link

MSL-DA commented Jan 4, 2025

Hey! i've the same issue, i tried disabling IPv6 and removing the speaker on HomeKit, now i can't add the speaker, it gives "unable to add accessory, check if iphone is connected to wifi" etc. ps. i can't enable "Allow Users to use speakers in the same network" because i don't own an apple TV (is it possible to emulate with a raspberry pi? will be cool and avoid to spend 100€ only for an Homekit Hub)

You can do this in the Home app on your iPhone

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

7 participants