Page 17 of 37

Re: Sonos - The Beginning

PostPosted: Sun May 13, 2012 10:20 am
by terrydew
That did it!!!!!! Running error free

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

THANKS

Re: Sonos - The Beginning

PostPosted: Sun May 13, 2012 1:12 pm
by wiery
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)

Re: Sonos - The Beginning

PostPosted: Sun May 13, 2012 1:14 pm
by nlagaros
You need to recreate the ZonePlayer devices. I adds those states very recently.

Re: Sonos - The Beginning

PostPosted: Sun May 13, 2012 1:29 pm
by wiery
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

Re: Sonos - The Beginning

PostPosted: Sun May 13, 2012 1:58 pm
by mat
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!

Re: Sonos - The Beginning

PostPosted: Sun May 13, 2012 2:22 pm
by matt (support)
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.

Re: Sonos - The Beginning

PostPosted: Sun May 13, 2012 3:27 pm
by nlagaros
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.

Re: Sonos - The Beginning

PostPosted: Sun May 13, 2012 3:43 pm
by nlagaros
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.

Re: Sonos - The Beginning

PostPosted: Mon May 14, 2012 6:11 pm
by nlagaros
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.

Re: Sonos - The Beginning

PostPosted: Mon May 14, 2012 6:16 pm
by nlagaros
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.

Re: Sonos - The Beginning

PostPosted: Tue May 15, 2012 8:42 am
by terrydew
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?

Re: Sonos - The Beginning

PostPosted: Tue May 15, 2012 12:47 pm
by mat
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

Re: Sonos - The Beginning

PostPosted: Tue May 15, 2012 2:17 pm
by wiery
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)

Re: Sonos - The Beginning

PostPosted: Tue May 15, 2012 3:18 pm
by nlagaros
wiery - had an unnecessary line in the code. pull down the (revised) latest version and you should be good to go.

Re: Sonos - The Beginning

PostPosted: Sat May 26, 2012 3:21 pm
by wiery
Many Thanks for that, just curious as to whats next on your mind for the plugin