Sonos error found

Hello,

I’m trying to discover my Sonos Ray and I see the following in the logs after several failures:

2026-02-23T10:25:32+0100 errorMiddleware.js:68 (errorMiddleware) SonosDiscoveryError: No players found
at EventEmitter. (/src/server/services/sonos/node_modules/@svrooij/sonos/lib/sonos-device-discovery.js:96:24)
at Object.onceWrapper (node:events:633:28)
at EventEmitter.emit (node:events:519:28)
at Timeout. (/src/server/services/sonos/node_modules/@svrooij/sonos/lib/sonos-device-discovery.js:84:25)
at listOnTimeout (node:internal/timers:588:17)
at processTimers (node:internal/timers:523:7)

There is clearly a timeout but this error comes too quickly <10s.

Thanks in advance.

How did you install Gladys?

Gladys must be on the same network as your Sonos speaker, the Gladys container must be in network=host mode, and have access to all devices on your network.

Gladys was installed manually on Ubuntu Server + Docker.

I ping the Sonos from Gladys.

Mmmm it’s possible that the Sonos Ray isn’t compatible then…

The Sonos Ray is apparently a soundbar, I don’t know if the local API that we use for their range of connected speakers is also available on the Sonos Ray

If you read otherwise on the internet, tell me :slight_smile:

Ok thanks, I’ll take a look. I just know that I was able to connect it to Home Assistant (HA) via their integration… :grimacing:

1 Like

Okay, that’s odd :smiley:

FYI, we use this library in Gladys for Sonos:

Unfortunately it’s not really maintained anymore.

It’s technical, but maybe you should test the library on your end to see if it detects your Sonos Ray outside of Gladys, and if not, test other libraries to see if another library is able to detect it.

Would that be within your skills or too complex?

Hmm I can try but I’m really not sure.

However, I’m available to share my server to test if needed…

Use the AI to test :slight_smile:

If you can’t, we can do it together, yes

1 Like

You’d have to check which library HA (Home Assistant) uses and whether it’s the same as Gladys.

HA is coded in Python, and Gladys in Javascript, so they won’t be the same libraries anyway :slight_smile:

1 Like

Obviously, it’s going to work less well :sweat_smile:

3 Likes