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

sonos zp not found after switched off/on #9

Closed
conradhagemans opened this issue Dec 2, 2016 · 1 comment
Closed

sonos zp not found after switched off/on #9

conradhagemans opened this issue Dec 2, 2016 · 1 comment

Comments

@conradhagemans
Copy link

conradhagemans commented Dec 2, 2016

I like this stable homebridge plug-in.
If I move a sonos from one room to an other room it will not be found till homebridge is restarted.
So if the power of a sonos player is interupted you have to restart homebridge.

Is there not a way that the plug-in can find them after the sonos play is powered on?

@ebaauw
Copy link
Owner

ebaauw commented Dec 8, 2016

Thanks, @conradhagemans

There is a way to discover new Sonos speakers (more than one, actually). However, currently, homebridge-zp uses the pre-v2 homebridge model for static accessories. This means that the platform plug-in notifies homebridge of the accessories at startup time only. I need to change homebridge-zp to use dynamic accessories, to be able to expose a newly discovered accessory at runtime. See issue #1.
I haven't fully tested this, put power cycling a Sonos speaker should be possible without restarting homebridge, provided the Sonos speaker keeps the same IP address. It might take up to 30 minutes, however, for homebridge-zp to renew its subscription and receive events from the speaker.

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

2 participants