SoCo not working with Sonos version 10.1 (build 49263270)?

183 views
Skip to first unread message

lucap....@gmail.com

unread,
Apr 8, 2019, 1:24:14 PM4/8/19
to SoCo - Sonos Controller
Hello,

Currently, I have some issues with SoCo / socos to control my Sonos speakers. I use SoCo on my Raspberry Pi (2B) in combination with a Django webserver. The webserver provides basic Sonos / SoCo functionalities for some microcontrollers (Wemos D1 mini pro), which are connected to a Wifi network. For example, a MC in my bathroom detects movement and triggers the corresponding Sonos speaker to play some music when someone is at the bathroom.

However, since last Thursday, SoCo is not able to discover my speakers anymore. I neither changed any part of my code nor anything else on the Pi. The only change was that my Sonos system seems to have performed an update during the night between Wednesday and Thursday.

My current setup:
Sonos version: 10.1 (build 49263270)
SoCo version: 0.16
socos version: 0.2 

Issues:
  1. SoCo python library:
    1. soco.discover() always returns an empty set
    2. soco.SoCo("<IP").play() / stop() / etc. does not work, error: soco.exceptions.SoCoSlaveException: The method or property "stop" can only be called/used on the coordinator in a group
      1. Although the speaker is not part of any group
      2. soco.SoCo("<IP").group returns: None
  2. socos command line tool 
    1. "list" returns nothing
    2. "info <IP>" works fine
    3. "set <IP>" does not work, error: AttributeError: 'NoneType' object has no attribute 'coordinator'

Does anyone have similar issues? Do you know a solution for this?

Thanks in advance!

Best regards,
Luca

Dirk Killmann

unread,
Apr 8, 2019, 2:05:54 PM4/8/19
to SoCo - Sonos Controller
Please have a look at the soco github page (and there in the issues section).

There seems to be a patch/fix, which helps.

lucap....@gmail.com

unread,
Apr 8, 2019, 4:58:57 PM4/8/19
to SoCo - Sonos Controller
Thank you very much! It is working again.
Reply all
Reply to author
Forward
0 new messages