Announcement

Collapse
No announcement yet.

HS3 Sonoscontroller beta testing forum

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HS3 Sonoscontroller beta testing forum

    THIS VERSION OF THE PLUG-IN (3.0.0.x BASELINE) IS END_OF_LIFE. NO MORE SUPPORT. UPGRADE TO THE VERSION 3.1.0.X BASELINE.
    NO NEED TO MAKE ANY CHANGES WHEN YOU UPGRADE! DO NOT DELETE ANYTHING, THERE IS NO NEED FOR THAT!
    ONLY DIFFERENCE IS THAT YOU NEED TO REBUILD YOUR MUSIC DATABASE, AND RADIOSTATION DATABASE. THE PRIOR PROBABLY IS SET TO DO DAILY SO NO NEED TO DO ANYTHING, THE LATTER, JUST PLAY THE RADIOSTATIONS AND THEY GET RE-LEARNED.
    DO CHECK YOUR FIREWALL SETTINGS!!!!!! THIS PI HAS ITS OWN UPNP COMMUNICATION SYSTEM AND DOES NOT RELY ON WINDOW'S SSDP AND UNPNP SERVICES. AS SUCH IT MUST HAVE FIREWALL ALLOWANCE ELSE THE PI WILL NOT FUNCTION CORRECTLY, WHICH CAN MANIFEST ITSELF IN MANY WAYS. SOMETIMES NOTHING WORKS; SOMETIMES IT STOPS WORKING AFTER A WHILE; PLAYERS ARE NOT DISCOVERED; PLAYERS CAN BE CONTROLLED BUT STATUS DOESN'T GET UPDATED; ANNOUNCEMENTS DON'T WORK .....
    THE OLD VERSION ZIP FILE IS ATTACHED AT THE END OF THIS POSTING. I SEE NO REASON WHY YOU WOULD NEED TO GO BACK THIS VERSION WHICH IS NOW WAY BEHIND ON SUPPORT FOR S1 PLAYERS, PLAYBAR ETC.



    Subscribe to this Thread so you get an email when a new version is posted

    Post here your questions/remarks when you are testing a Beta version of the plug-in. If you open up a new thread, make sure you reference it being about the HS3 version of the PI to avoid I would have to ask each time. Secondly, when seeing a problem, before you post, search the forum for any prior postings. If nothing can be found; before you post, turn the debug flag on! Do whatever it was you were doing and append the debug log to the post. I get too many request "such and such doesn't work" but no further information. If you use events or triggers, make screenshots of the triggers/actions and attached them. If it is about linking/unlinking issues, make a screenshot of the Sonos config page and attach it. You make screenshots by hitting Cntrl-PrintScreen, open up Paint (for Windows users) and paste what was captured, save it and attach file to your posting.

    Known Issues for a later Beta release
    • Implementation with HST seems partly broken, this is first and foremost on the HS side of things
    • No support for the Soundbar wrt grouping and announcements (don't have one to test and quite expensive)
    • If you have paired players, when they are discovered while paired, they show up with the same name. Not sure how to solve this as Sonos is not providing the "original (unpaired)" player name. Best way to work around it, is to unpair the players and pair them again. Once known by the PI, it will show them with their "original" player name, irrespective whether they are paired or not.


    Changes for next release
    • Found an issue where devices are not being re-discovered
    • Not solved yet: announcement is played repeatedly when a single TTS action has multiple announcements in them

    Changes to v3.0.0.21
    • After unlinking is done, players are left in pause state, especially when they are using audio input sources.
    • Found some fundamental problems with using buttons UNLINKxxxx and LINKxxxxx. If you do not set the "use audio input" the linking won't happen at all
    • The interrupted announcement saga continues. Fix in V18 might have made it worse. Other test/fix added in this release

    Changes to v3.0.0.19
    • The "repeated announcement" issue seems to be back. Built in a protection to force no-repeat for announcements, even when it mysteriously changes during the announcement
    • Rewrote yet again the code to deal with missing starts of announcements. Symptoms are that the announcement gets cut after 1~2 seconds

    Changes to v3.0.0.17
    • Fixed issue with set repeat event

    Changes to v3.0.0.16
    • Removed Capability CA_MUSIC so PI will not mess up HSServer/Designer/HSTouch while the HS team implements the Media API
    • Fixed an issue in Function "PluginFunction" that caused 3pty access to fail (such as HSServer trying to read MediaAPI stuff)

    Changes to v3.0.0.15
    • AlbumArt filenames have a sequence which is now stored in the .ini file so restart of the PI doesn't cause caching issues w/ new HS3 version (.148)
    • Added a button to the State device called Play-Pause that can be used to toggle a player between non-play (stopped or paused) and play. You need to delete the player and have it recreate for the button to show up
    • Made a minor change to the "unlink" feature. The player will now ungroup, regardless whether the player is the master or a slave to this group
    • Removed the "free until" restriction. This version is completely free and most likely will be the last version, no more bug fixes, no more added features, no support for HSTouch's MediaAPI. Version 3.1 is in the works which will remove the dependency on the Windows UPNP.DLL Component and will pave the way to run on Linux. Any future stuff will be based on version 3.1.x

    Changes to v3.0.0.14
    • ChannelMapSet/ZoneName with Error = Exception from HRESULT: 0x80040212 removed

    Changes to v3.0.0.13
    • WD100 Dock service discovery still had an error
    • Announcements subdirectory is not created by itself. Fixed
    • Rearranged service discovery in an attempt to work around an UPNP.DLL issue which causes issues with alarm events

    Changes to Beta v3.0.0.12
    • Broke implementation of WD100 Dock

    Changes to Beta v3.0.0.11
    • The startup Error should be gone now
    • If you are on the latest HS3 beta, the issue with menu items not being updated when a zone name changes, should be fixed
    • Extended the date until end of July
    • Beware: most likely, the next beta (> v 11) will have major changes as I'm attempting to design out window components that prevent it from being used in a Linux environment. As of then, I'll maintain 2 beta versions, until the new beta is as stable as the old. Events most likely will have to be redone. This beta only has minor cosmetic changes and is first and foremost posted to extend the due date

    Changes to Beta v3.0.0.10
    • Help file added, so make sure you copy the Sonos folder!
    • Added "play" command to selecting Audio Line input
    • Added event: "Play Audio Input" to direct a player to source from any audio input

    Changes to Beta v3.0.0.9
    • Added triggers for zone going off-line coming on-line. Added trigger for next track
    • Issues w/ names containing the '&' character in the player web page
    • Issues creating new Linkgroup table entries

    Changes to Beta v3.0.0.8
    • Delete all Sonos HS devices before upgrading (PI Config page, click Delete all players button, stop HS3).
    • Paired players stay paired through the announcement
    • Personal changes to button layout/position will not be reverted when the PI restarts
    • Expiry date extended to March 31st, 2014
    • Navigation & Playlist box based on new jqListBoxEx control

    Changes to Beta v3.0.0.7
    • Triggers/actions are not working when you run multiple instances, is fixed
    • Speaker proxy doesn't work for multiple instances, is fixed
    • Linking through Sonos Actions doesn't work, is fixed
    • Player name missing in Actions like Set volume, Set Mute .... is fixed

    Changes to Beta v3.0.0.6
    • Began adding support to run the plugin on another PC than the HS3 PC. You would have to start the PI with an additional parameter ie server=www.xxx.yyy.zzz representing the IP address of the HS3 PC.
    • Added support to run multiple instances. You would have to start the PI with an additional parameter ie instance=xxx (no '-' characters allowed in instance name)
    • Added option setting to display TrackLenght in Seconds (as integer) or HH:MM:SS format (handy for HSTouch screens)
    • Added option setting to display TrackPosition in Seconds, HH:MM:SS or as a percentage (0->100) (handy for HSTouch screens)
    • Most functions work in HSTouch screens, including albumart. However, content navigation is not available yet in HS3

    Changes to Beta v3.0.0.5
    • Fixed bug where missing IP Count reset wasn't working
    • Changed the "Address" info for HS device, made it shorter, wasting less space on the web page. You would have to delete all players and recreate to see the effect
    • Fixed some bugs around grouped players and info not shown properly
    • Added support for "Favorites"
    • Reduced linking time for announcements
    • Adding grouping capability
    • Add support for S3 and S1 players (running them as a stereo pair)
    • Added Confirm/Cancel pop-ups to delete buttons

    Changes to Beta v3.0.0.4
    • Fixed bug where volume/mute in a group was send to the master rather than individual player
    • Removed the Group button on the player page, this wasn't working anyway. Will be added later
    • Adding track to playlist wasn't working
    • Playlist should be updated dynamically
    • Latest version of HS3 created some issues with ' > characters in listboxes
    • Gave Docked player implementation a good overhaul

    Changes to Beta v3.0.0.3
    • Fixed bug with Linkgrouptable when first created
    • Fixed a bug in announcements not playing
    • Volume goes to zero when announcement is played after PI was restarted

    Changes to Beta v3.0.0.2
    • Issue with Date format in VB for UK


    First Beta v3.0.0.1
    • I don't have the installer part taken care off.
    • Download the attached zip file, put them in a temporary directory and unzip the file. Copy the Sonos.exe file into your HS3 root directory.
    • You will see two zipped up subdirectories in the zip file.
    • Copy the sonos subdirectory under <HS3 root>\html. So if your HS3 is installed at c:\Program Files (x86)\Homeseer HS3 then copy the WHOLE subdirectory as part of c:\Program Files (x86)\Homeseer HS3\html.
    • There is a second subdirectory as part of the zip file called images. Use explorer and you'll see that this zipped subdirectory contains another subdirectory called Sonos. Copy this as a new subdirectory Sonos under c:\Program Files (x86)\Homeseer HS3\html\images\
    • So when you are done you should have sonos.exe as part of the HS3 root, you should see subdirectories:
      <hs3root>\html\images\sonos
      <hs3root>\html\Sonos
      <hs3root>\html\Sonos\announcements
      <hs3root>\html\Sonos\Artwork
      <hs3root>\html\Sonos\images
      <hs3root>\html\Sonos\Logs
      <hs3root>\html\Sonos\MusicDB
    • Stop HS3 and start again. Click on <plugins>|<Manage> and activate the SonosController plugin.
    • Discovery should start automatically. Click on <Plugins>|<Sonos>|<Config> to set up everything you had as in HS2
    • If something doesn't work, first thing you do is turn the plugin's debug flag on, do your thing, capture the log an post it.
    • There is an option to log to disk, this is very slow and inefficient, would suggest you don't use it a lot except perhaps to capture something. The log will be found in the <hs3root>\html\Sonos\Logs subdirectory
    • There is no more "Save" button in the config, so if you make changes, they affect immediately
    • Added a player table so you can now delete a player, look at ping statistics, delete all players
    • Player control web page should be fine, so are events, actions, triggers
    • All information is now available via HS devices. The name/track/position ... devices are marked as hidden so if you have the option clicked to hide devices they won't show, so click on show all if you want to see them
    • No support for HST screens yet with respect to music/content browsing functions, except for dropping HS devices to show track/volume/artist/album/art/position/balance/radiostation ...
    • If you post issues, make sure you reference that this is about HS3
    Attached Files
    Last edited by dcorsus; April 11, 2018, 12:13 PM.

    #2
    First Sonos Beta v3.0.0.1 is out!!

    First Beta v3.0.0.1
    • I don't have the installer part taken care off.
    • Download the attached zip file, put them in a temporary directory and unzip the file. Copy the Sonos.exe file into your HS3 root directory.
    • You will see two zipped up subdirectories in the zip file.
    • Copy the sonos subdirectory under <HS3 root>\html. So if your HS3 is installed at c:\Program Files (x86)\Homeseer HS3 then copy the WHOLE subdirectory as part of c:\Program Files (x86)\Homeseer HS3\html.
    • There is a second subdirectory as part of the zip file called images. Use explorer and you'll see that this zipped subdirectory contains another subdirectory called Sonos. Copy this as a new subdirectory Sonos under c:\Program Files (x86)\Homeseer HS3\html\images\
    • So when you are done you should have sonos.exe as part of the HS3 root, you should see subdirectories:
      <hs3root>\html\images\sonos
      <hs3root>\html\Sonos
      <hs3root>\html\Sonos\announcements
      <hs3root>\html\Sonos\Artwork
      <hs3root>\html\Sonos\images
      <hs3root>\html\Sonos\Logs
      <hs3root>\html\Sonos\MusicDB
    • Stop HS3 and start again. Click on <plugins>|<Manage> and activate the SonosController plugin.
    • Discovery should start automatically. Click on <Plugins>|<Sonos>|<Config> to set up everything you had as in HS2
    • If something doesn't work, first thing you do is turn the plugin's debug flag on, do your thing, capture the log an post it.
    • There is an option to log to disk, this is very slow and inefficient, would suggest you don't use it a lot except perhaps to capture something. The log will be found in the <hs3root>\html\Sonos\Logs subdirectory
    • There is no more "Save" button in the config, so if you make changes, they affect immediately
    • Added a player table so you can now delete a player, look at ping statistics, delete all players
    • Player control web page should be fine, so are events, actions, triggers
    • All information is now available via HS devices. The name/track/position ... devices are marked as hidden so if you have the option clicked to hide devices they won't show, so click on show all if you want to see them
    • No support for HST screens yet with respect to music/content browsing functions, except for dropping HS devices to show track/volume/artist/album/art/position/balance/radiostation ...
    • If you post issues, make sure you reference that this is about HS3

    Comment


      #3
      Thanks Dirk.

      Unfortunately I can't get the PI to initialize.

      14/09/2013 07:28:56 Error Initializing plug-in(2): SONOSCONTROLLER Instance::Conversion from string "#12-31-2013#" to type 'Date' is not valid.0STACK:Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessag e(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(Mess ageData& msgData, Int32 type) at HomeSeerAPI.IPlugInAPI.InitIO(String port) at Scheduler.clsHSPI.CheckInterfaces()

      Paul..

      Comment


        #4
        Originally posted by sooty View Post
        Thanks Dirk.

        Unfortunately I can't get the PI to initialize.

        14/09/2013 07:28:56 Error Initializing plug-in(2): SONOSCONTROLLER Instance::Conversion from string "#12-31-2013#" to type 'Date' is not valid.0STACK:Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessag e(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(Mess ageData& msgData, Int32 type) at HomeSeerAPI.IPlugInAPI.InitIO(String port) at Scheduler.clsHSPI.CheckInterfaces()

        Paul..
        what platform are you running this on? Are you up to date with all .NET patches for .NET 4? Are you running version 19 of HS3?
        I see at least 6 downloads. Are other people seeing this? Maybe something with the USA versus rest of the world date structure of 12-31-2013 versus 31-12-2013??? Will have a look

        Dirk

        Comment


          #5
          Originally posted by sooty View Post
          Thanks Dirk.

          Unfortunately I can't get the PI to initialize.

          14/09/2013 07:28:56 Error Initializing plug-in(2): SONOSCONTROLLER Instance::Conversion from string "#12-31-2013#" to type 'Date' is not valid.0STACK:Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessag e(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(Mess ageData& msgData, Int32 type) at HomeSeerAPI.IPlugInAPI.InitIO(String port) at Scheduler.clsHSPI.CheckInterfaces()

          Paul..
          Try new beta

          Changes to Beta v3.0.0.2
          • Issue with Date format in VB for UK

          Comment


            #6
            Thanks Dirk, the PI is now starting up OK with version .2 so I will do some testing and let you know how it goes.

            Paul..

            Comment


              #7
              Problem #1

              Link group config won't save. First image is what I set and the second is after refreshing the page. Only the Linkgroup Name and Speaker Devices settings stick but all other settings return empty when refreshing the page as in the second image.

              This is the log error I get when trying to speak to "TTS"
              14/09/2013 15:45:44 Sonos Error Error in AddAnnouncementToQueue for LinkGroupName = TTS. SourceZone was not found

              Sonos debug log attached whilst editing link group config.

              Paul..
              Attached Files

              Comment


                #8
                Originally posted by sooty View Post
                Problem #1

                Link group config won't save. First image is what I set and the second is after refreshing the page. Only the Linkgroup Name and Speaker Devices settings stick but all other settings return empty when refreshing the page as in the second image.

                This is the log error I get when trying to speak to "TTS"
                14/09/2013 15:45:44 Sonos Error Error in AddAnnouncementToQueue for LinkGroupName = TTS. SourceZone was not found

                Sonos debug log attached whilst editing link group config.

                Paul..
                Bummer, something must have broken recently, wrote and tested this a while back. I'm now on the road and can't do a lot for next week. One thing we can try to do is to manually edit your sonos.ini file. If you can post or email me your .ini file, preferably your hs2 version and the hs3. They can be found under the hs root subdirectory \config and is named hspi_sonoscontroller.ini in hs2 and sonos.ini in hs3

                Dirk

                Comment


                  #9
                  There's no rush Dirk. I will email you the 2 ini files and another log file.

                  As you have established, I'm in the UK and still seeing a date issue:

                  14/09/2013 16:32:36 Sonos Error Error in InitIO for Instance = with Error = Conversion from string "#12-31-2013#" to type 'Date' is not valid.

                  I expect it's the # causing the issue.

                  Other start up errors:

                  14/09/2013 16:34:16 Sonos Error Error in InterfaceStatus for Instance = RINCON_000E587F8D5001400
                  14/09/2013 16:34:16 Sonos Error Error in InterfaceStatus for Instance = RINCON_000E585B47FE01400
                  14/09/2013 16:34:16 Sonos Error Error in InterfaceStatus for Instance =


                  Paul..

                  Comment


                    #10
                    Didn't have the time this morning to fix this properly. A quick Google thought me that I cannot use the same date notation for the UK as for the US. So I just ignored the error for time being but it still shows up in the log for folks outside the US. Will fix when back
                    Dirk

                    Comment


                      #11
                      Sweet. I have been waiting for this plugin

                      I will give it a try this weekend

                      Comment


                        #12
                        New Sonos HS3 beta v3.0.0.3 posted

                        Changes to Beta v3.0.0.3
                        • Fixed bug with Linkgrouptable when first created
                        • Fixed a bug in announcements not playing
                        • Volume goes to zero when announcement is played after PI was restarted

                        Comment


                          #13
                          Dirk I'm having no joy with TTS through $SONOSFILE$. I have an event set to speak to $SONOSFILE$All$:* - I have a link group called "All" Debug shows no errors:
                          2013/09/28 11:50:45 AM TTS Speak: ($SONOSFILE$All$:*):Hello World
                          2013/09/28 11:50:45 AM Sonos GetIniSection called with section = NewTTSSpeakDevice and # Result = 2
                          2013/09/28 11:50:45 AM Sonos SpeakIn called for Device = 0, Text = Hello World, Wait=False, Host = $SONOSFILE$All$:*
                          2013/09/28 11:50:45 AM Event Event Trigger "Sonos Say Goodnight"

                          Also, the link groups do no show up as buttons on the devices like they used to in HS2. What is the "Audio Input" checkbox for in the linkgroup config? Does that replace the "TTS" checkbox from HS2?

                          Edit:

                          A restart with debug enabled reveals this error in the log for all of my zones

                          2013/09/28 12:15:49 PM Sonos Error Error in MediaRenderer.Services for zoneplayer = Bathroom with UPNP Error = -2147219524: Unknown error type. OrgError=-2147220224. Error = Exception from HRESULT: 0x80040500
                          Last edited by beerygaz; September 28, 2013, 05:14 AM.
                          Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

                          Comment


                            #14
                            Originally posted by beerygaz View Post
                            Dirk I'm having no joy with TTS through $SONOSFILE$. I have an event set to speak to $SONOSFILE$All$:* - I have a link group called "All" Debug shows no errors:
                            2013/09/28 11:50:45 AM TTS Speak: ($SONOSFILE$All$:*):Hello World
                            2013/09/28 11:50:45 AM Sonos GetIniSection called with section = NewTTSSpeakDevice and # Result = 2
                            2013/09/28 11:50:45 AM Sonos SpeakIn called for Device = 0, Text = Hello World, Wait=False, Host = $SONOSFILE$All$:*
                            2013/09/28 11:50:45 AM Event Event Trigger "Sonos Say Goodnight"

                            Also, the link groups do no show up as buttons on the devices like they used to in HS2. What is the "Audio Input" checkbox for in the linkgroup config? Does that replace the "TTS" checkbox from HS2?

                            Edit:

                            A restart with debug enabled reveals this error in the log for all of my zones

                            2013/09/28 12:15:49 PM Sonos Error Error in MediaRenderer.Services for zoneplayer = Bathroom with UPNP Error = -2147219524: Unknown error type. OrgError=-2147220224. Error = Exception from HRESULT: 0x80040500
                            Hi Beerygaz,

                            I should publish the updated document

                            $SONOSFILE$ was deprecated just use $SONOS$.
                            Indeed the "Audio Input" is equal to the old TTS, which I thought was somewhat confusing because it is all Text To Speech but in one case it is accomplished by playing a file from the network versus the other method is by streaming it from a PC into the audio input port. I hope you agree that it is more correct but could be confusing for the HS2 users.

                            The error you posted is benign, came in with Sonos SW update 4.1 (if memory serves me well) and you'll see in HS2 as well if you were to turn the debug flag on and restart.

                            Dirk

                            Comment


                              #15
                              Thanks for the quick response Dirk. I adjusted it to $SONOS$ and am now getting:

                              2013/09/28 03:34:45 PM Error In SpeakDev calling a speak proxy plug-in, exception is Length cannot be less than zero.Parameter name: length
                              2013/09/28 03:34:45 PM Sonos SpeakIn called for Device = 0, Text = Hello World, Wait=True, Host = $SONOS$All:*
                              2013/09/28 03:34:45 PM Event Event Trigger "Sonos Say Goodnight"
                              Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

                              Comment

                              Working...
                              X