Ankündigung

Einklappen
Keine Ankündigung bisher.

SetSonosPlaylist library error

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    SetSonosPlaylist library error

    I get the following error when trying to define the SetSonosPlaylist of the beta Sonos library

    Code:
    Syntax error in Makro: "SetPlaylistSonos" at line [557] in /Users/ivan/bin/EibStudio/MakroLibs-eng/libraries/EnertexSonosBetaENG.lib
            $Playlist number$    $Sonos MAC-addresse(notation: 000E585CE0F8)$ ==>      $Playlist number$    $Sonos $000E58D0B6D0$-addresse(notation: 000E585CE0F8)$ in file "/Users/ivan/bin/EibStudio/EibstudioData/tmpApp.txt"
    Valid until position: {17} STOP--> $Sonos $000E58D0B6D0$-addresse(notation: 000E585CE0F8)$
    Any clue how I could solve this?

    #2
    Can somebody point me in a direction?

    Ivan

    Kommentar


      #3
      just a guess: Maybe you have given a macro parameter in $string$ notation and it needs only string notation. It looks as if there are too many string delimiters $
      But I do neither have a sonos nor do I have the Library at hands...

      Regards,
      Bernd

      Kommentar


        #4
        Zitat von eulaersivan Beitrag anzeigen
        Can somebody point me in a direction?
        Ivan
        Please post the code which you have used.
        offizielles Supportforum für den Enertex® EibPC: https://knx-user-forum.de/eibpc/
        Enertex Produkte kaufen

        Kommentar


          #5
          This is what I have written based on the examples.

          Code:
          [Macros]
          Sonos($192.168.1.109$, SonosHome)
          SetPlaylistSonos($192.168.1.109$, SonosHome, '0/1/6'b01, 0, $000E58D0B6D0$)

          Kommentar


            #6
            omit $$ around the IP adress please ...

            Kommentar


              #7
              Solved it. You should write

              Code:
              [Macros]
              Sonos($192.168.1.109$, SonosHome)
              SetStateSonosToggle($192.168.1.109$, SonosHome, '3/2/0'b01)
              SetChangeSongSonos($192.168.1.109$,SonosHome, '3/2/2'b01, '3/2/11'b01)
              SetPlaylistSonos($192.168.1.109$, SonosHome, '3/2/10'b01, 0, 000E58D0B6D0)
              But there was also an error in the macro definition. The correct definition is

              Code:
              :begin SetPlaylistSonos(IpAdresse,Name,SchalterGA,PlaylistNr,MAC)
              :info $Play the specified playlist station.$\\
                  $Sonos IP-address$\\
                  $Name, must be unique (e.g. lounge)$\\
                  $group address for request$\\
                  $Playlist number$\\
                  $Sonos MAC-addresse(notation: 000E585CE0F8)$
              :shortinfo $Play the specified playlist station.$

              Kommentar

              Lädt...
              X