Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Sonos-HTTP-API Installation für Newbies, Dummies und mich

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Sonos-HTTP-API Installation für Newbies, Dummies und mich

    This topic has been deleted. Only users with topic management privileges can see it.
    • Pepsi1183
      Pepsi1183 @Pepsi1183 last edited by Pepsi1183

      Ggf. als Hilfestellung:

      So würde das in etwa in Blockly aussehen:
      7c3a4348-1c98-420f-bf6a-1ae1ab38043d-image.png

      Nur das {steuere [Volumen] mit "kueche.volume" } so definitiv nicht klappt.
      Definitiv nur zur verdeutlichung des skipts

      1 Reply Last reply Reply Quote 1
      • S
        skokarl last edited by skokarl

        Moin @Pepsi1183

        so, hatte jetzt mal Zeit mich mit dem Script zu beschäftigen, SUPER, Danke!.

        das ist mein aktuelles "lauter" Script.

        on({id: 'javascript.0.sonos.stlauter', change: "ne"}, function (obj) {
        
          var value = obj.state.val;
        
          var oldValue = obj.oldState.val;  
        
          if (getState("javascript.0.sonos.stlauter").val == true) 
        
          {
        
            var tablet;
        
            try {
        
                  require("request")('http://192.168.178.56:5005/tablet/state/', function (error, response, result) 
        
                  {
        
        			  tablet =  JSON.parse(result);
        
        			  setState("javascript.0.sonos.tabletvol"/*tabletvol*/, tablet.volume); 
        
        
              }).on("error", function (e) {console.error(e);});
        
            } catch (e) { console.error(e); }
            
        	
         //   setState("javascript.0.sonos.stlauter"/*StateValid*/, false);             
        
          }
        
        });
        
        

        aber irgendwie kriege ich es nicht hin den stationName abzufragen, obwohl alles analog ist ( außer das Objekt als String definiert )

        1.PNG

        Gruß Bernd

        1 Reply Last reply Reply Quote 0
        • Pepsi1183
          Pepsi1183 last edited by Pepsi1183

          das Problem ist, dass "StationName" unter "currentTrack" gruppiert ist, daher musst du

          setState('javascript.0.Sonos.stationName'/Station/,tablet.currentTrack.stationName);

          verwenden.

          Tablet --> currentTrack -->stationName

          1 Reply Last reply Reply Quote 1
          • Q
            Qlink last edited by Qlink

            Hi Leute,

            ich hab die Sonos-http-api Installation jetzt auch erfolgreich unter Windows hinbekommen inkl. Autostart.

            Die Installationsschritte sind eigentlich fast identisch zu den oben genannten.

            node-sonos-http-api-master.zip von github herunterladen und nach C:\ioBroker\node_modules\node-sonos-http-api-master bzw. eurem iobroker Verzeichnis entpacken

            wie beschrieben mittels npm installieren

            den autostart habe ich mit pm2 hinbekommen:
            pm2 von github laden und ebenfalls wie sonos-http-api installieren https://github.com/Unitech/pm2

            dann autostart-sonos-http-api.bat erstellen und in einem beliebigen verzeichnis ablegen
            in das .bat file folgendens cmd einfügen

            pm2 start c:\iobroker\node_modules\node-sonos-http-api-master\server.js -x --name "sonos-api"
            

            Nun nur noch mittels Windows Task Scheduler eine neue Task erstellen, bei Trigger "at startup" und bei Action "start program" mit verweis auf das erstellte .bat file

            und fertig

            Beste Grüße

            S surfer09 2 Replies Last reply Reply Quote 1
            • S
              skokarl @Qlink last edited by

              @Qlink

              DANKE, für die Erweiterung der Anleitung.

              1 Reply Last reply Reply Quote 0
              • Q
                Qlink last edited by

                Hi Leute,

                ich hab seit 2 Wochen meine Klingel per Sonos HTTP API mit der clip Funktion laufen. Das funktioniert soweit auch sehr gut.
                Ich habe die Klingelfunktion mit folgendem Skript umgesetzt:

                79af960a-1f7d-485f-afd3-8a0e587cf46c-image.png

                Es soll die Datei maus.mp3 auf den 2 Sonos Zone Player EZKUGAWC und Garten abgespielt werden, wenn der Klingeltaster kurz oder lange gedrückt wird.

                Das funktioniert wie gesagt auch gut, allerdings mit einem Problem:

                Auf dem Sonos Zone Player Garten, spielt er dann plötzlich nachdem maus.mp3 fertig ist, die Playlist die als Letztes in der Zone über Sonos gelaufen ist ab, was er natürlich nicht soll ...
                In der Zone EZKUGAWC passiert das nicht. Hier wird nur maus.mp3 abgespielt und danach ist wieder Ruhe...

                Hat jemand eine Idee wo das Problem liegen kann ? Mache ich den Aufruf falsche ?

                1 Reply Last reply Reply Quote 0
                • Pepsi1183
                  Pepsi1183 last edited by

                  Spontan würde ich sagen das auf dem Garten noch eine aktive Playlist ist und auf der Zone EZKUGAWC keine Playlist hinterlegt ist bzw. im Garten ist ein Repeat eingeschaltet.
                  Generell fügt Sonos ja bei play nur zur Playlist hinzu....

                  Würde die beiden Sachen mal über die Sonos App prüfen ob es da Unterschiede gibt.

                  Wäre dann eine Überlegung ein "Clear Playlist" oder ein "Deaktivier Repeat" vorweg zu schicken. wenn es sowas gibt.

                  Habe gerade die Api nicht zurhand um zu gucken was es da für befehle gibt....

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    skokarl @Pepsi1183 last edited by

                    @Pepsi1183
                    das gleiche habe ich im ersten Moment auch gedacht,
                    die Sonos Box spielt das zuletzt gehörte weiter.

                    1 Reply Last reply Reply Quote 0
                    • Pepsi1183
                      Pepsi1183 last edited by

                      Habe jetzt nochmal ein Blick auf die API Dokumentation geworfen, also ich würde da dann zur Sicherheit ein:
                      http://192.168.30.9:5005/Garten/repeat/off
                      http://192.168.30.9:5005/Garten/shuffle/off
                      http://192.168.30.9:5005/Garten/clearqueue
                      vorher einfügen.
                      evlt. dann noch, falls normalerweise endlos durcheinander im Garten gespielt werden soll, ein
                      http://192.168.30.9:5005/Garten/repeat/on
                      http://192.168.30.9:5005/Garten/shuffle/on
                      mit einer Verzögerung (Länge der MP3 + 1-2 Sekunden puffer)

                      Randbemerkung: Shuffle könnte auch der Übeltäter sein.

                      1 Reply Last reply Reply Quote 0
                      • Q
                        Qlink last edited by

                        Hmm, wenn ich diese Befehle vorher einfüge, wie verhält sich dann die Situation, wenn ich gerade tatsächlich Musik im Garten höre und es klingelt jemand ?
                        Dann würde er ja nicht mehr automatisch weiterspielen, nachdem es geklingelt hat oder doch ?
                        Weil in der Zone EZKUGAWC funktioniert das genau so wie gewollt.

                        Läuft keine Musik und es klingelt, dann bleibt es nach der Klingel ruhig.
                        Läuft gerade Musik und es klingelt, dann geht nach der Klingel die Musik wieder an...

                        Pepsi1183 M 2 Replies Last reply Reply Quote 0
                        • I
                          IOMax last edited by IOMax

                          Moin,
                          ich bekomme die Installation in meinem Iobroker Container (docker) unter synology nicht hin. Hab dort das aktuellste Image von buanet drauf. master.zip ist geladen und entpackt. Aber bei der Installation gibt es den Fehler

                          sudo: Hostname iobroker kann nicht aufgelöst werden
                          sudo: Die Audit-Nachricht kann nicht gesendet werden: Unbekannter Fehler -1
                          sudo: pam_open_session: Systemfehler
                          sudo: Regelwerks-Plugin konnte Sitzung nicht initialisieren

                          Eingabe von "hostname" bringt als Ergebnis iobroker

                          /etc/hosts :


                          127.0.0.1 localhost
                          ::1 localhost
                          127.0.0.1 Synology
                          ::1 Synology

                          Hat jemand eine Idee ? in der hosts habe ich auch mal eingetragen "127.0.0.1 iobroker". Da kam die Meldung mit dem "Hostname iobroker kann nicht aufgelöst werden nicht mehr", aber der Rest an Fehler schon. Nach einem Neustart des Containers war der Eintrag aus der hosts auch wieder weg.
                          Installationen von Adapter innerhalb iobroker funktionieren einwandfrei.

                          -max

                          Pepsi1183 1 Reply Last reply Reply Quote 0
                          • Pepsi1183
                            Pepsi1183 @Qlink last edited by

                            @Qlink: Hast du denn mal geguckt wo der unterschied ist?
                            Also ist in beiden Zonen Shuffel und Repeat an?
                            Und das clearqueue würde ich dann definitiv weg lassen....

                            1 Reply Last reply Reply Quote 0
                            • Pepsi1183
                              Pepsi1183 @IOMax last edited by

                              @IOMax : An welcher stelle bist du genau?
                              Habe zwar kein Synologie Docker, aber evtl. kann ich dir trotzdem helfen....

                              I 1 Reply Last reply Reply Quote 0
                              • I
                                IOMax @Pepsi1183 last edited by

                                @Pepsi1183 said in [gelöst] Sonos-HTTP-API Installation für Newbies, Dummies und mich:

                                @IOMax : An welcher stelle bist du genau?

                                Wäre toll. Ich bin bei npm install --production
                                Beim ausführen des Befehls kommen die Fehlermeldungen

                                Pepsi1183 1 Reply Last reply Reply Quote 0
                                • R
                                  rehmosch last edited by

                                  Servus,

                                  vielen lieben Dank für diesen Thread 😉

                                  Habe jetzt meine Philips Hue Dimmer Fernbedienung als Sonos Fernbedienung hergenommen und bin wirklich sehr glücklich! Jedoch habe ich ein Problem das

                                  http://192.168.1.253:5005/KUECHE/groupVolume/20

                                  bei mir nicht richtig funktioniert ;( Es wird leiser jedoch haben alle verschiedene Werte.

                                  Hat jemand eine Bessere Lösung?
                                  Kann ich ein externes Script ( PartyModus, Lautstärke für alle Player, ...) in Blockly einbinden ?

                                  Danke

                                  Hier noch ein paar Infos:

                                  1. Taste - kurz gedrückt - playpause
                                  2. Tste - lange gedrückt -shuffle on
                                  3. Taste - kurz gedrückt - Volume +5
                                  4. Taste - lang gedrückt - groupVolume 20
                                  5. Taste - kurz gedrückt - Volume - 5
                                  6. Taste - lang gedrückt - groupVolume 5
                                  7. Taste - kurz gedrückt - next Song
                                  8. Taste - lang gedrückt - PartyMode

                                  PHILIPS_HUE_SWITCH_CONTROL_SONOS.JPG

                                  <xml xmlns="http://www.w3.org/1999/xhtml">
                                    <block type="comment" id="T)L7WoMF-)j{K%=k-9(T" x="-537" y="-863">
                                      <field name="COMMENT">PHILIPS HUE DIMMER SWITCH - CONTROL SONOS</field>
                                    </block>
                                    <block type="on_ext" id="efjV9ZRu|sU2}*LiK`dD" x="-563" y="-713">
                                      <mutation items="1"></mutation>
                                      <field name="CONDITION">ne</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                        <shadow type="field_oid" id="H*^H`{#Ysj?y=(T=%LCc">
                                          <field name="oid">deconz.0.Sensors.5.buttonpressed</field>
                                        </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                        <block type="comment" id="t!@v.fU5j%yGbW./Rf9|">
                                          <field name="COMMENT">TASTE 1  kurz GEDRÜCKT - SONOS PLAY / PAUSE</field>
                                          <next>
                                            <block type="controls_if" id="^K0K]o02h8q8%-YWcGJ6">
                                              <value name="IF0">
                                                <block type="logic_compare" id="2tbdG5={(,;]a^;sbK$4">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="get_value" id="W;gHg$pYO5s`i1pY#HjX">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">deconz.0.Sensors.5.buttonpressed</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="mjL$n%q3_7OA(VGOsQW#">
                                                      <field name="NUM">1002</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="request" id="1P_fH78Kf)O5?6,|sK4o">
                                                  <mutation with_statement="false"></mutation>
                                                  <field name="WITH_STATEMENT">FALSE</field>
                                                  <field name="LOG"></field>
                                                  <value name="URL">
                                                    <shadow type="text" id="wI:qn|^kKvRY,-{1fj~Q">
                                                      <field name="TEXT">http://192.168.1.253:5005/kueche/playpause </field>
                                                    </shadow>
                                                  </value>
                                                </block>
                                              </statement>
                                              <next>
                                                <block type="comment" id="$U(.V#8Va_(5QgAb}Z=K">
                                                  <field name="COMMENT">TASTE 1  lang gedrückt - SONOS shuffle on </field>
                                                  <next>
                                                    <block type="controls_if" id="S92^E6Un(~F*WQ+859+Q">
                                                      <value name="IF0">
                                                        <block type="logic_compare" id="=iMiWM}n$$P!FoSFGBuI">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="ea@W`SM*46HKwU/wq_gA">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">deconz.0.Sensors.5.buttonpressed</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="math_number" id="I6Wjao[EvnB,[XPs@u+^">
                                                              <field name="NUM">1003</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="request" id="`h}|X;-Rv`r~{_0;^Ceo">
                                                          <mutation with_statement="false"></mutation>
                                                          <field name="WITH_STATEMENT">FALSE</field>
                                                          <field name="LOG"></field>
                                                          <value name="URL">
                                                            <shadow type="text" id="#HXFZYb`G/.W2m_c{Vm7">
                                                              <field name="TEXT">http://192.168.1.253:5005/kueche/shuffle/on</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </statement>
                                                      <next>
                                                        <block type="comment" id="XymL.+^hYP+13AbKYivv">
                                                          <field name="COMMENT">TASTE 2 kurz gedrückt - Sonos Volume +5</field>
                                                          <next>
                                                            <block type="controls_if" id="vh{j(d_gD|R~Hh5J{Xf`">
                                                              <value name="IF0">
                                                                <block type="logic_compare" id="{C{H(P1lUl}QbNl2NnrM">
                                                                  <field name="OP">EQ</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="SbukImeG2oP7-u7*RLXq">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">deconz.0.Sensors.5.buttonpressed</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="math_number" id="RG+Zq[r?xd,~LO{NoXF(">
                                                                      <field name="NUM">2002</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <statement name="DO0">
                                                                <block type="request" id="J1NaZ)fI6$GbY-FT;2IO">
                                                                  <mutation with_statement="false"></mutation>
                                                                  <field name="WITH_STATEMENT">FALSE</field>
                                                                  <field name="LOG"></field>
                                                                  <value name="URL">
                                                                    <shadow type="text" id="[DX@e]WD,pc.gZ^U}Y$I">
                                                                      <field name="TEXT">http://192.168.1.253:5005/kueche/volume/+5</field>
                                                                    </shadow>
                                                                  </value>
                                                                  <next>
                                                                    <block type="request" id="$eER!$A91@b}A{PIC/WY">
                                                                      <mutation with_statement="false"></mutation>
                                                                      <field name="WITH_STATEMENT">FALSE</field>
                                                                      <field name="LOG"></field>
                                                                      <value name="URL">
                                                                        <shadow type="text" id="%$(#d0-pH0P`L[@=A2_i">
                                                                          <field name="TEXT">http://192.168.1.253:5005/COOKING/volume/+5</field>
                                                                        </shadow>
                                                                      </value>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </statement>
                                                              <next>
                                                                <block type="comment" id="]kb^Ei:J|3J9j.~BBfMh">
                                                                  <field name="COMMENT">TASTE 2 lang gedrückt -  sonos groupVolume 20</field>
                                                                  <next>
                                                                    <block type="controls_if" id="diNy26,[C4_9]u#t0pSA">
                                                                      <value name="IF0">
                                                                        <block type="logic_compare" id="ai/~~xn7V*g}F4zfj`tP">
                                                                          <field name="OP">EQ</field>
                                                                          <value name="A">
                                                                            <block type="get_value" id="f+s:e,za~xRhy:z;ne%G">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">deconz.0.Sensors.5.buttonpressed</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="math_number" id="o`B]N[/$fi%%t)=AU/Xo">
                                                                              <field name="NUM">2003</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <statement name="DO0">
                                                                        <block type="request" id="b`)f2gvgbyKdhHl=?/nt">
                                                                          <mutation with_statement="false"></mutation>
                                                                          <field name="WITH_STATEMENT">FALSE</field>
                                                                          <field name="LOG"></field>
                                                                          <value name="URL">
                                                                            <shadow type="text" id="jkAUO4knI-pOYc*i=EU_">
                                                                              <field name="TEXT">http://192.168.1.253:5005/kueche/volume/30</field>
                                                                            </shadow>
                                                                          </value>
                                                                          <next>
                                                                            <block type="request" id="H3Sy/5^|3Bq7ml[h2*_p">
                                                                              <mutation with_statement="false"></mutation>
                                                                              <field name="WITH_STATEMENT">FALSE</field>
                                                                              <field name="LOG"></field>
                                                                              <value name="URL">
                                                                                <shadow type="text" id="|#jIn!nz^_D4a9FSsdm~">
                                                                                  <field name="TEXT">http://192.168.1.253:5005/COOKING/volume/30</field>
                                                                                </shadow>
                                                                              </value>
                                                                              <next>
                                                                                <block type="request" id="93h2FsBi(:IIk?cCETmx">
                                                                                  <mutation with_statement="false"></mutation>
                                                                                  <field name="WITH_STATEMENT">FALSE</field>
                                                                                  <field name="LOG"></field>
                                                                                  <value name="URL">
                                                                                    <shadow type="text" id="ozWmuMS#es(JQrvxz6NI">
                                                                                      <field name="TEXT">http://192.168.1.253:5005/groupVolume/25</field>
                                                                                    </shadow>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="request" id="HH5Q[r.K.AQ))Tly/T_N">
                                                                                      <mutation with_statement="false"></mutation>
                                                                                      <field name="WITH_STATEMENT">FALSE</field>
                                                                                      <field name="LOG"></field>
                                                                                      <value name="URL">
                                                                                        <shadow type="text" id="Q^P#nX_vhLn)I`.^8+vB">
                                                                                          <field name="TEXT">http://192.168.1.253:5005/groupVolume/20</field>
                                                                                        </shadow>
                                                                                      </value>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </statement>
                                                                      <next>
                                                                        <block type="comment" id="5Z*m2bzQk?SKFhqJk4lT">
                                                                          <field name="COMMENT">TASTE 3 kurz gedrückt - Sonos Volume -5</field>
                                                                          <next>
                                                                            <block type="controls_if" id="Z4j|9AtIw0XOAFo@nfj9">
                                                                              <value name="IF0">
                                                                                <block type="logic_compare" id="*}Fnl@181qU3hMqVTr_~">
                                                                                  <field name="OP">EQ</field>
                                                                                  <value name="A">
                                                                                    <block type="get_value" id="V-f2j2()_A,pnfd2OAot">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">deconz.0.Sensors.5.buttonpressed</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <block type="math_number" id="8|VT79HUzr2J-d,-*ESK">
                                                                                      <field name="NUM">3002</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <statement name="DO0">
                                                                                <block type="request" id=":m.^p7^!9)dp_vodDU}v">
                                                                                  <mutation with_statement="false"></mutation>
                                                                                  <field name="WITH_STATEMENT">FALSE</field>
                                                                                  <field name="LOG"></field>
                                                                                  <value name="URL">
                                                                                    <shadow type="text" id="*)mMk0}xVy1!Mj+}RfTm">
                                                                                      <field name="TEXT">http://192.168.1.253:5005/kueche/volume/-5</field>
                                                                                    </shadow>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="request" id="e?TVl?B0D:{?M?9Xs=jt">
                                                                                      <mutation with_statement="false"></mutation>
                                                                                      <field name="WITH_STATEMENT">FALSE</field>
                                                                                      <field name="LOG"></field>
                                                                                      <value name="URL">
                                                                                        <shadow type="text" id="|+73Evwd/TF)*{L,(Qz$">
                                                                                          <field name="TEXT">http://192.168.1.253:5005/COOKING/volume/-5</field>
                                                                                        </shadow>
                                                                                      </value>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </statement>
                                                                              <next>
                                                                                <block type="comment" id="iB:/vQC)PjwukA,DXa1^">
                                                                                  <field name="COMMENT">TASTE 3 lang gedrückt - Sonos groupVolume 5</field>
                                                                                  <next>
                                                                                    <block type="controls_if" id="vFT0uD(Xg(e/FSM-t7!s">
                                                                                      <value name="IF0">
                                                                                        <block type="logic_compare" id="Cp/YJfGAKU{4!BV(!R%V">
                                                                                          <field name="OP">EQ</field>
                                                                                          <value name="A">
                                                                                            <block type="get_value" id="9k_!-F!$iB1+U{jlz!pm">
                                                                                              <field name="ATTR">val</field>
                                                                                              <field name="OID">deconz.0.Sensors.5.buttonpressed</field>
                                                                                            </block>
                                                                                          </value>
                                                                                          <value name="B">
                                                                                            <block type="math_number" id=":{4_YWEmf|0]#h1^2-w}">
                                                                                              <field name="NUM">3003</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </value>
                                                                                      <statement name="DO0">
                                                                                        <block type="request" id="Zm*g{LWo]iz)sB0n9dEC">
                                                                                          <mutation with_statement="false"></mutation>
                                                                                          <field name="WITH_STATEMENT">FALSE</field>
                                                                                          <field name="LOG"></field>
                                                                                          <value name="URL">
                                                                                            <shadow type="text" id="=2qKAt$z5x_/xOx6zZ(}">
                                                                                              <field name="TEXT">http://192.168.1.253:5005/kueche/volume/5</field>
                                                                                            </shadow>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="request" id="cfQ]ety7SG}}/9Ji``pn">
                                                                                              <mutation with_statement="false"></mutation>
                                                                                              <field name="WITH_STATEMENT">FALSE</field>
                                                                                              <field name="LOG"></field>
                                                                                              <value name="URL">
                                                                                                <shadow type="text" id="d+C-*.h:|IS|^DwJ!YJp">
                                                                                                  <field name="TEXT">http://192.168.1.253:5005/COOKING/volume/5</field>
                                                                                                </shadow>
                                                                                              </value>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </statement>
                                                                                      <next>
                                                                                        <block type="comment" id="^.JX3GE#ngCUb)44HjlO">
                                                                                          <field name="COMMENT">TASTE 4 kurz gedrückt- NEXT SONG</field>
                                                                                          <next>
                                                                                            <block type="controls_if" id="?;5NjeE|[s_SGh$(;qtH">
                                                                                              <value name="IF0">
                                                                                                <block type="logic_compare" id="N{21/DFT1+!Bt3lKi^=f">
                                                                                                  <field name="OP">EQ</field>
                                                                                                  <value name="A">
                                                                                                    <block type="get_value" id="MZQcedZS_h-3m#6W.PEL">
                                                                                                      <field name="ATTR">val</field>
                                                                                                      <field name="OID">deconz.0.Sensors.5.buttonpressed</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="B">
                                                                                                    <block type="math_number" id="^C.X,#GNvZEju:ismJ8C">
                                                                                                      <field name="NUM">4002</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                              <statement name="DO0">
                                                                                                <block type="request" id="]20AiH:HMa-doc_i8Gs]">
                                                                                                  <mutation with_statement="false"></mutation>
                                                                                                  <field name="WITH_STATEMENT">FALSE</field>
                                                                                                  <field name="LOG"></field>
                                                                                                  <value name="URL">
                                                                                                    <shadow type="text" id="KDLF[$2}wnKSnc$QZXmp">
                                                                                                      <field name="TEXT">http://192.168.1.253:5005/Kueche/next</field>
                                                                                                    </shadow>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </statement>
                                                                                              <next>
                                                                                                <block type="comment" id="trHGrgljuEhF#`*B@`mS">
                                                                                                  <field name="COMMENT">TASTE 4 lang GEDRÜCKT - PartyModus</field>
                                                                                                  <next>
                                                                                                    <block type="controls_if" id="8ij^T$I8]r`lk_bY;:/p">
                                                                                                      <value name="IF0">
                                                                                                        <block type="logic_compare" id="+sWP|%8CS*}#g,#c%$.x">
                                                                                                          <field name="OP">EQ</field>
                                                                                                          <value name="A">
                                                                                                            <block type="get_value" id="]nL``++UQ*lSmN3H,1h^">
                                                                                                              <field name="ATTR">val</field>
                                                                                                              <field name="OID">deconz.0.Sensors.5.buttonpressed</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <value name="B">
                                                                                                            <block type="math_number" id="{^KK6{CO?PfSVhABTnLB">
                                                                                                              <field name="NUM">4003</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <statement name="DO0">
                                                                                                        <block type="request" id="D6X3`Ekh1TR5PK|h:w(P">
                                                                                                          <mutation with_statement="false"></mutation>
                                                                                                          <field name="WITH_STATEMENT">FALSE</field>
                                                                                                          <field name="LOG"></field>
                                                                                                          <value name="URL">
                                                                                                            <shadow type="text" id="(Bt-o@K:,))}6Z.Ym6H|">
                                                                                                              <field name="TEXT">http://192.168.1.253:5005/BUERO/join/KUECHE</field>
                                                                                                            </shadow>
                                                                                                          </value>
                                                                                                          <next>
                                                                                                            <block type="request" id="u!4c?zL%z+6b@H,6gKm_">
                                                                                                              <mutation with_statement="false"></mutation>
                                                                                                              <field name="WITH_STATEMENT">FALSE</field>
                                                                                                              <field name="LOG"></field>
                                                                                                              <value name="URL">
                                                                                                                <shadow type="text" id="L~:B@Zv1bL%VV#M}?FOL">
                                                                                                                  <field name="TEXT">http://192.168.1.253:5005/COOKING/join/KUECHE</field>
                                                                                                                </shadow>
                                                                                                              </value>
                                                                                                              <next>
                                                                                                                <block type="request" id="T[jNg.O6Pn+.1_no/`.w">
                                                                                                                  <mutation with_statement="false"></mutation>
                                                                                                                  <field name="WITH_STATEMENT">FALSE</field>
                                                                                                                  <field name="LOG"></field>
                                                                                                                  <value name="URL">
                                                                                                                    <shadow type="text" id="LeyZ7[J$Y|WPbpPH=k?M">
                                                                                                                      <field name="TEXT">http://192.168.1.253:5005/Bathroom/join/KUECHE</field>
                                                                                                                    </shadow>
                                                                                                                  </value>
                                                                                                                  <next>
                                                                                                                    <block type="request" id="{O8s.I+4PIbm6*)F:P7_">
                                                                                                                      <mutation with_statement="false"></mutation>
                                                                                                                      <field name="WITH_STATEMENT">FALSE</field>
                                                                                                                      <field name="LOG"></field>
                                                                                                                      <value name="URL">
                                                                                                                        <shadow type="text" id=":+CE!|7zw;cVwVKZ[az,">
                                                                                                                          <field name="TEXT">http://192.168.1.253:5005/Sessel/join/KUECHE</field>
                                                                                                                        </shadow>
                                                                                                                      </value>
                                                                                                                      <next>
                                                                                                                        <block type="request" id="KeH5X5}Bo=wa2:KMjBL{">
                                                                                                                          <mutation with_statement="false"></mutation>
                                                                                                                          <field name="WITH_STATEMENT">FALSE</field>
                                                                                                                          <field name="LOG"></field>
                                                                                                                          <value name="URL">
                                                                                                                            <shadow type="text" id="bY3oJD.vL]b*.lxe1jkE">
                                                                                                                              <field name="TEXT">http://192.168.1.253:5005/Wohnzimmer/join/KUECHE</field>
                                                                                                                            </shadow>
                                                                                                                          </value>
                                                                                                                          <next>
                                                                                                                            <block type="request" id="HpQvI]9,{DdiA]k1E%XC">
                                                                                                                              <mutation with_statement="false"></mutation>
                                                                                                                              <field name="WITH_STATEMENT">FALSE</field>
                                                                                                                              <field name="LOG"></field>
                                                                                                                              <value name="URL">
                                                                                                                                <shadow type="text" id="ujyOq(j20%YnSl$p]NQ@">
                                                                                                                                  <field name="TEXT">http://192.168.1.253:5005/GANG/join/KUECHE</field>
                                                                                                                                </shadow>
                                                                                                                              </value>
                                                                                                                              <next>
                                                                                                                                <block type="request" id="Im]-U-=rJJ13*!JdXYH:">
                                                                                                                                  <mutation with_statement="false"></mutation>
                                                                                                                                  <field name="WITH_STATEMENT">FALSE</field>
                                                                                                                                  <field name="LOG"></field>
                                                                                                                                  <value name="URL">
                                                                                                                                    <shadow type="text" id="jVm_G`(~-_,j|xvjAl(8">
                                                                                                                                      <field name="TEXT">http://192.168.1.253:5005/groupVolume/20</field>
                                                                                                                                    </shadow>
                                                                                                                                  </value>
                                                                                                                                </block>
                                                                                                                              </next>
                                                                                                                            </block>
                                                                                                                          </next>
                                                                                                                        </block>
                                                                                                                      </next>
                                                                                                                    </block>
                                                                                                                  </next>
                                                                                                                </block>
                                                                                                              </next>
                                                                                                            </block>
                                                                                                          </next>
                                                                                                        </block>
                                                                                                      </statement>
                                                                                                    </block>
                                                                                                  </next>
                                                                                                </block>
                                                                                              </next>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </xml>
                                  
                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    skokarl @rehmosch last edited by skokarl

                                    @rehmosch sagte in [gelöst] Sonos-HTTP-API Installation für Newbies, Dummies und mich:

                                    Habe jetzt meine Philips Hue Dimmer Fernbedienung als Sonos Fernbedienung hergenommen und bin wirklich sehr glücklich! Jedoch habe ich ein Problem das
                                    http://192.168.1.253:5005/KUECHE/groupVolume/20
                                    bei mir nicht richtig funktioniert ;( Es wird leiser jedoch haben alle verschiedene Werte.

                                    Servus, gerne für diesen Thread 😇

                                    Eins vorab, Group Volume funktioniert einwandfrei.
                                    Kueche macht oft Theater, manche schreiben das ja auch mit ü,
                                    Bist Du sicher dass alle in einer Gruppe sind ?
                                    Woher weißt Du das alle unterschiedliche Lautstärken haben ?

                                    Teste mal im kleinen,
                                    lass eine Box spielen, gruppiere eine zweite dazu, und dann ändere die Group Volume.
                                    Das tolle an dieser Lösung ist, dass Du ja alle http Befehle direkt im Browser eingeben kannst,
                                    zum testen brauchst Du also kein IOBroker.

                                    übrigens die 10 Euro Ikea Fernbedienung geht natürlich auch 😇

                                    R 1 Reply Last reply Reply Quote 0
                                    • Pepsi1183
                                      Pepsi1183 @IOMax last edited by

                                      @IOMax: hmm, ok...dann kann ich dir glaube ich nicht wirklich weiter helfen. Habe mir das nochmal bei mir angesehen und verstehe nicht warum bei npm install die Host Meldung kommen soll. Sorry

                                      I 1 Reply Last reply Reply Quote 0
                                      • I
                                        IOMax @Pepsi1183 last edited by

                                        Ich bin tatsächlich weitergekommen, indem ich einfach nochmal das master.zip runtergeladen habe. Nach dem entpacken und erneutem Installationsversuch hat es geklappt.
                                        Allerdings habe ich beim autostart Probleme. Die sonosapi.service habe ich angelegt, aber mein System (iobroker unter docker/synology) kennt systemctl nicht,
                                        Ideen ?

                                        R BBTown 2 Replies Last reply Reply Quote 0
                                        • R
                                          rehmosch @IOMax last edited by

                                          @IOMax Hey, ich glaube das Startscript müsstest über cron-jobs auf der Synology zum laufen bringen. Da war irgendwas .... Schreib doch einfach ins Synology Forum, die sind dort recht fix.

                                          Viel Glück 😉


                                          Ich bräuchte mal die Hilfe der Community:

                                          Servus,

                                          hat jemand einen Tip wie man an die http Befehle für Sonos für

                                          “Daumen runter” & “Daumen hoch” & “Thumb up” & “thumb down” lösen kann?

                                          So ähnlich wie:

                                          http://192.168.1.253:5005/kueche/shuffle/on

                                          nur dann so:

                                          http://192.168.1.253:5005/kueche/thumbdown

                                          oder so:

                                          http://192.168.1.253:5005/KUECHE/googleplaymusic/thumbsdown

                                          dieses klappt bei mir:

                                          http://192.168.1.253:5005/KUECHE/pandora/thumbsdown

                                          Da es bei mir mit Pandora problemlos klappt, wie hier beschrieben:
                                          Pandora

                                          Perform a search for one of your Pandora stations and begin playing. Give the currently playing song a thumbs up or thumbs down. Requires a valid Pandora account and credentials.

                                          The following endpoints are available:

                                          /RoomName/pandora/play/ Plays the closest match to the specified station name in your list of Pandora stations
                                          /RoomName/pandora/thumbsup Gives the current playing Pandora song a thumbs up
                                          /RoomName/pandora/thumbsdown Gives the current playing Pandora song a thumbs down

                                          Your Pandora credentials need to be added to the settings.json file

                                          ,
                                          "pandora": {
                                          "username": "your-pandora-account-email-address",
                                          "password": "your-pandora-password"
                                          }

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            rehmosch @skokarl last edited by

                                            @skokarl Servus 😉

                                            Ja, bin mir sicher das alle in einer Gruppe sind und irgendwie muss der http-Befehl bei mir 3x mit unterschiedlichen Werten rausgeschickt werden. Ich habe mein pihole hier in Verdacht ;(

                                            Danke für den Tip mit der Tradfri Fernbedienung (10€), jedoch benötigt Ikea ca. 14 Tage Lieferzeit nach München ;( Habe eigentlich erst vor ein 3 Tagen mit ioBroker angefangen und es hat so in den Fingern gejuckt.

                                            Außerdem muss ich ein paar Hue Komponenten aus der Hue Bridge rausnehmen. Die hue-Bridge laggt, da ich zuviele Hue Komponenten (max. 12 / Bewegungsmelder, Dimmer-Switch, Tab-Switch ....) eingesetzt habe. Das war eigentlich der Grund, weshalb ich mich für ioBroker entschieden habe.

                                            S 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            908
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            sonos
                                            49
                                            437
                                            87088
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo