Sonos speakers disonnecting

Hi,

I am trying to integrate my Sonos speakers, which are in a different subnet than OpenHAB. I know this makes it quite difficult, but I configured PIM on the router and succeeded in connecting the speakers to OpenHAB.

Strangely the connection does not last very long. After approximately 30 minutes the speakers get disconnected and the reconnect fails.

At the time of disonnecting the log states that new Sonos things are found:

15:11:42.042 [DEBUG] [os.internal.handler.ZonePlayerHandler] - Polling job
15:11:42.060 [DEBUG] [os.internal.handler.ZonePlayerHandler] - Polling job
15:11:54.249 [INFO ] [pnp.transport.impl.async.AsyncServlet] - HttpServlet.service(): id:  54, request URI: /upnpcallback/dev/RINCON_B8E9378DDE*******_MR/svc/upnp-org/AVTransport/event/cb
15:12:13.756 [INFO ] [pnp.transport.impl.async.AsyncServlet] - HttpServlet.service(): id:  55, request URI: /upnpcallback/dev/RINCON_B8E9378DDE*******_MR/svc/upnp-org/AVTransport/event/cb
15:12:35.366 [DEBUG] [covery.ZonePlayerDiscoveryParticipant] - Discovered a Sonos 'sonos:PLAY1' thing with UDN 'RINCON_B8E9378DDF*******'
15:12:35.366 [INFO ] [os.internal.handler.ZonePlayerHandler] - UPnP device RINCON_B8E9378DDF******* is absent (thing sonos:PLAY1:bad)
15:12:35.374 [DEBUG] [covery.ZonePlayerDiscoveryParticipant] - Discovered a Sonos 'sonos:PLAY1' thing with UDN 'RINCON_B8E9378DDE*******'
15:12:35.375 [INFO ] [os.internal.handler.ZonePlayerHandler] - UPnP device RINCON_B8E9378DDE******* is absent (thing sonos:PLAY1:ess)
15:12:35.379 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'sonos:PLAY1:bad' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR)
15:12:35.389 [INFO ] [openhab.event.InboxRemovedEvent      ] - Discovery Result with UID 'sonos:PLAY1:RINCON_B8E9378DDF*******' has been removed.
15:12:35.395 [INFO ] [openhab.event.InboxRemovedEvent      ] - Discovery Result with UID 'sonos:PLAY1:RINCON_B8E9378DDE*******' has been removed.
15:12:35.402 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'sonos:PLAY1:ess' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR)
15:12:42.071 [DEBUG] [os.internal.handler.ZonePlayerHandler] - Polling job
15:12:42.078 [DEBUG] [os.internal.handler.ZonePlayerHandler] - UPnP device RINCON_B8E9378DDF******* not yet registered
15:12:42.086 [DEBUG] [os.internal.handler.ZonePlayerHandler] - Polling job
15:12:42.095 [DEBUG] [os.internal.handler.ZonePlayerHandler] - UPnP device RINCON_B8E9378DDE******* not yet registered
15:12:42.104 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'sonos:PLAY1:ess' changed from OFFLINE (COMMUNICATION_ERROR) to OFFLINE (COMMUNICATION_ERROR): Der UPnP Speaker RINCON_B8E9378DDE******* ist nicht registriert.
15:12:42.110 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'sonos:PLAY1:bad' changed from OFFLINE (COMMUNICATION_ERROR) to OFFLINE (COMMUNICATION_ERROR): Der UPnP Speaker RINCON_B8E9378DDF******* ist nicht registriert.

Does anybody know what is happening there?

Best regards,
cyb

Have you looked into the adjustments in this post:

My sonos have been 100% online since making the adjustments recommended there.

Hi @JustinG,

thanks for the information.

I did not know this thread yet. I just made the recommended adjustments (stopped OpenHAB, added the 5 parameters to runtime.conf, adjusted jupnp log level) and restarted OpenHAB. The behaviour is exactly the same: Sonos speakers get connected and after 30 minutes the connection gets lost at the same time when logging “Discovered a Sonos thing”.

Strange.

Best regards,
cyb

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.