Sonos - The Beginning

Posted on
Sun May 13, 2012 10:20 am
terrydew offline
Posts: 257
Joined: Jun 10, 2011

Re: Sonos - The Beginning

That did it!!!!!! Running error free

Playlist working as it should. Will try other commands after Mothers day.

THANKS

Posted on
Sun May 13, 2012 1:12 pm
wiery offline
Posts: 170
Joined: Jun 02, 2008
Location: Ireland

Re: Sonos - The Beginning

Getting the below constantly repeating, is there something i need to change ?

Reloading plugin "Sonos 0.3.6"
Stopping plugin "Sonos 0.3.6" (pid 6096)
Plugin "Sonos" disconnected
Starting plugin "Sonos 0.3.6" (pid 6099)
Plugin "Sonos" connected
Plugin "Sonos 0.3.6" started
Sonos LineIn: RINCON_000E5854460E01400, Line-In
Sonos LineIn: RINCON_000E58125A8201400, Sky HD
Sonos LineIn: RINCON_000E5830D74801400, Mac mini
Sonos Saved Plugin Configuration
Sonos Playlist: SQ:1, Playlist1, file:///jffs/settings/savedqueues.rsq#1
Sonos RadioTime Favorite Station: R:0/0/0, RTÉ Radio 1, x-sonosapi-stream:s15066?sid=254&flags=32
Error device state key Q_Crossfade not defined (ignoring update request)
Error device state key Q_Repeat not defined (ignoring update request)
Error device state key Q_Shuffle not defined (ignoring update request)
Error device state key Q_Crossfade not defined (ignoring update request)
Error device state key Q_Repeat not defined (ignoring update request)
Error device state key Q_Shuffle not defined (ignoring update request)
Error device state key Q_Crossfade not defined (ignoring update request)
Error device state key Q_Repeat not defined (ignoring update request)

Posted on
Sun May 13, 2012 1:14 pm
nlagaros offline
Posts: 823
Joined: Dec 20, 2010

Re: Sonos - The Beginning

You need to recreate the ZonePlayer devices. I adds those states very recently.

Posted on
Sun May 13, 2012 1:29 pm
wiery offline
Posts: 170
Joined: Jun 02, 2008
Location: Ireland

Re: Sonos - The Beginning

Perfect, many thanks, and a huge thank you for all the work on the plugin. Is there a way to ungroup / reset a zone player prior to a new action ?

For example, 2 zone players grouped together and i have a schedule that i only want to play on one zp so need to ungroup prior to starting new task

Posted on
Sun May 13, 2012 1:58 pm
mat offline
Posts: 316
Joined: Nov 25, 2010
Location: Suffolk - UK

Re: Sonos - The Beginning

If the code is updated again, is there a way of not having to recreate the devices? I think idigo deletes all the related code each time a device is deleted, or is this just me?

I've just spent a few hours intergrating sonos with the house and would rather not have to do it again :D

All working well here!

Posted on
Sun May 13, 2012 2:22 pm
matt (support) offline
Site Admin
User avatar
Posts: 14051
Joined: Jan 27, 2003
Location: Texas

Re: Sonos - The Beginning

nlargaros - you can call stateListOrDisplayStateIdChanged() on the individual devices when they need to be updated (from within the plugin), and Indigo will pull the state list info from the plugin.

Image

Posted on
Sun May 13, 2012 3:27 pm
nlagaros offline
Posts: 823
Joined: Dec 20, 2010

Re: Sonos - The Beginning

Matt - This is very cool. I just tried it out. One line of code and now the devices will auto-update states. The Indigo API is becoming quite extensive.

Mat and all - no need to re-create devices any longer. What I was doing before adding this line of code, was to change the plugin type and then change back to my plugin to avoid losing all associated actions and triggers.

Posted on
Sun May 13, 2012 3:43 pm
nlagaros offline
Posts: 823
Joined: Dec 20, 2010

Re: Sonos - The Beginning

wiery - I'm just up to the point now where I want to figure out how to handle ZonePlayer groups. Hopefully I'll have something to test out in the next week or two.

Posted on
Mon May 14, 2012 6:11 pm
nlagaros offline
Posts: 823
Joined: Dec 20, 2010

Re: Sonos - The Beginning

Spent just a few minutes playing with Zone Grouping. Nothing too fancy, but here is another update to try out:

v0.3.7 - 05/14/2012
  • Added code to avoid having to re-create ZonePlayer devices on plugin updates
  • Added two state variables to track group topology (GROUP_Coordinator, GROUP_Name)
  • Added Zone Group actions: Add ZonePlayer to Group, Set ZonePlayer to Standalone
  • Added Next Track states (ZP_NALBUM, ZP_NART, ZP_NARTIST, ZP_NTRACK) - currently only populating for Internet Radio when available

Terry - don't get excited yet. I don't do anything fancy like saving states. I know that is on your list and I have a couple of ideas, but it will require significant coding so give me a couple of weeks.

Posted on
Mon May 14, 2012 6:16 pm
nlagaros offline
Posts: 823
Joined: Dec 20, 2010

Re: Sonos - The Beginning

And one note: I have to add logic to handle ZonePlayer updates when they are part of a group. It doesn't quite mesh right now, but no time to deal with it.

Posted on
Tue May 15, 2012 8:42 am
terrydew offline
Posts: 257
Joined: Jun 10, 2011

Re: Sonos - The Beginning

Tested the add zone and standalone commands and both worked fine.

When I updated to new version, I noticed something for consideration.
For some reason (i think due to sonos update due) one of my zone players had dropped out of the sonos system. I was getting a lot of errors in event log some of which mentioned the dropped player which brought it to my attention. I updated the player and re-added to sonos system and the plugin quit sending errors.
This is longwinded way to ask. Doe we need some type of check and code to allow the plugin to function even with a missing player? It may not be necessary as my experience shows sonos to be very reliable with rare issues, but I thought I would mention for consideration?

Posted on
Tue May 15, 2012 12:47 pm
mat offline
Posts: 316
Joined: Nov 25, 2010
Location: Suffolk - UK

Re: Sonos - The Beginning

Or geekier still, and low on the priotity list, but alert through indigo that an update is pending!

I love automation. Caught my 9 year old automating his curtains with 20 foot of string tonight!

Latest update working well here, and can link zones!

Mat

Posted on
Tue May 15, 2012 2:17 pm
wiery offline
Posts: 170
Joined: Jun 02, 2008
Location: Ireland

Re: Sonos - The Beginning

I'm getting the following error, i deleted all the zones again, even though i didn't need to due to code update and this error only started to re-occur when i added the living room zone which is a ZP100

Error device state key ZP_NSTATION not defined (ignoring update request)

Posted on
Tue May 15, 2012 3:18 pm
nlagaros offline
Posts: 823
Joined: Dec 20, 2010

Re: Sonos - The Beginning

wiery - had an unnecessary line in the code. pull down the (revised) latest version and you should be good to go.

Posted on
Sat May 26, 2012 3:21 pm
wiery offline
Posts: 170
Joined: Jun 02, 2008
Location: Ireland

Re: Sonos - The Beginning

Many Thanks for that, just curious as to whats next on your mind for the plugin

Page 17 of 24 1 ... 14, 15, 16, 17, 18, 19, 20 ... 24

Who is online

Users browsing this forum: No registered users and 0 guests