Closed pfeffed closed 8 years ago
I've been using this code for a while on a local fork and just realized I never submitted a PR for it. With this patch, you do things like:
if you know the name:
sonos = Sonos::System.new living_room = sonos.find_speaker_by_name("Living Room")
sonos = Sonos::System.new
living_room = sonos.find_speaker_by_name("Living Room")
if you happen to know the uid:
sonos = Sonos::System.new living_room = sonos.find_speaker_by_uid("RINCON_1234EEFEE12341400")
living_room = sonos.find_speaker_by_uid("RINCON_1234EEFEE12341400")
👍 Thanks!
I've been using this code for a while on a local fork and just realized I never submitted a PR for it. With this patch, you do things like:
if you know the name:
sonos = Sonos::System.new
living_room = sonos.find_speaker_by_name("Living Room")
if you happen to know the uid:
sonos = Sonos::System.new
living_room = sonos.find_speaker_by_uid("RINCON_1234EEFEE12341400")