soco: how does the Sonos S2 impact the soco libraries?

86 views
Skip to first unread message

Steve Edwards

unread,
Feb 22, 2021, 11:10:43 AM2/22/21
to SoCo - Sonos Controller
I have been using the Python soco library for over a year now in a project
that allows ZIgbee sensors to trigger sounds on my Sonos speakers.

I have been seeing in recent months that Sonos is introducing and recommending
switching to the Sonos S2 app and OS. I presume by OS it means to operating
system in the speakers themselves.

My python code is currently using soco 0.19.

Question:
- will the soco libraries suffer any impact in upgrading my Sonos app / os to Sonos S2?
  (i.e. will my code I've spent over a year on still work?)

The type of functionality of soco I am using is fairly basic:
- NOT using any music services
- only using functions such as discover(), player_name, play(), clear_queue(),
   get_current_transport_info(), play_uri(my_mp3_server), volume, speaker_ip,
   play_from_queue(), stop(),
   is_playing_line_in, soco_speaker.is_playing_radio, soco_speaker.is_playing_tv

Many thanks in advance.
Steve

Psychlist

unread,
Feb 22, 2021, 12:16:39 PM2/22/21
to SoCo - Sonos Controller
SoCo works just as well with Sonos S2 as with S1, including with v0.19. So far, Sonos has made little if any change to the UPnP API on which SoCo depends.

From v0.21, SoCo also properly supports mixed S1/S2 systems (useful for those who held back part of their Sonos system on S1 due to hardware incompatibility).

Steve Edwards

unread,
Feb 22, 2021, 2:38:32 PM2/22/21
to SoCo - Sonos Controller
Many thanks for your speedy answer.

Very comforting :-)
Steve
Reply all
Reply to author
Forward
0 new messages