Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Bad Musik Sonos

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Bad Musik Sonos

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

      Ich habe Probleme mein Badmusik Skript zum laufen zu bekommen. Wir sind jetzt in unser neues Haus gezogen, Das einzige was sich zur Wohnung geändert hat ist das jetzt eine andere Sonos Box im Bad hängt. Ich bekomme das Skript einfach nicht zum laufen. Vielleicht kann ja einer von den Experten mal kurz drüber schauen.
      Ist bestimmt nur eine Kleinigkeit, warum es nicht läuft.
      DankeBadMusikHaus.png

      <xml xmlns="https://developers.google.com/blockly/xml">
        <block type="on" id="{!Ow5W{xI=1u8E[NnSUK" x="38" y="-437">
          <field name="OID">zigbee.0.00158d000644491e.occupancy</field>
          <field name="CONDITION">any</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="controls_if" id="Kx3vNe=R:}qK8)0gWt@">
              <value name="IF0">
                <block type="logic_operation" id="6s#Qd!cP$$-Co+A*2M#}" inline="false">
                  <field name="OP">AND</field>
                  <value name="A">
                    <block type="logic_operation" id="`@P9yXP}(1:(-ey|#!~B">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="on_source" id="^+5-V0l(IaEz54uNVDKf">
                          <field name="ATTR">state.val</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_compare" id="Q/^~*Qu,sf2q|:M,EU1H">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="#9JLNFEdq8%K~r1c%KIL">
                              <field name="ATTR">val</field>
                              <field name="OID">0_userdata.0.Datenpunkte.Bewegung_Bad</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="!D.=O@nca]Pq0+r9ib3d">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_operation" id="4?*WfIKqZiI!c(5PfJ@j" inline="false">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_operation" id="x`2E4DnQ.BgSd,iRP*c8" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="logic_compare" id="Ohd:_Bw/iju]Awl-^=z-">
                              <field name="OP">NEQ</field>
                              <value name="A">
                                <block type="time_get" id="O^x[v[!?catkP4RCpOz]">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                  <field name="OPTION">wd</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id="Ja2f??qvp!GX*YKtcJ]6">
                                  <field name="NUM">5</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id=")oLQU@bu6a5/?n_Dhv1h">
                              <field name="OP">NEQ</field>
                              <value name="A">
                                <block type="time_get" id="NN4DT)!uI~)C([1SECM*">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                  <field name="OPTION">wd</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id="My8hqgd2/OACXUvdMGC{">
                                  <field name="NUM">6</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="time_compare_ex" id="Tt0_xmUcA.@q=R^6c?K">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                          <field name="USE_ACTUAL_TIME">TRUE</field>
                          <field name="OPTION">not between</field>
                          <value name="START_TIME">
                            <shadow type="text" id="Ds2^t-6oqCLq{#P9fh(/">
                              <field name="TEXT">04:30</field>
                            </shadow>
                          </value>
                          <value name="END_TIME">
                            <shadow type="text" id="gu#LKi_N|YJrLy[.i6XR">
                              <field name="TEXT">03:00</field>
                            </shadow>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="procedures_callnoreturn" id="RFMSNmL0QOg9;cqyN(2p">
                  <mutation name="Christoph"></mutation>
                </block>
              </statement>
              <next>
                <block type="controls_if" id="B@G}Yc2t_oKV[xG2q$.X">
                  <value name="IF0">
                    <block type="logic_operation" id="6^;AUsi|_(xrY)KY5kK`" inline="false">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_operation" id="lu=(H,:j{e%c`C|Gc]mz">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="on_source" id="5)/O^+T%!IPwr321bDL7">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="AZhSqd@*e!4T8wa:!Wam">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="QQ9ml03.`(PTD)c?GAXr">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.Datenpunkte.Bewegung_Bad</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="RiYibfsQuxrk_`!x05S-">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_operation" id="ls5?BHNbiLCr=*[Vv995" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="logic_operation" id="X5S%fX7=O-{2+bZ^dE(4" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="logic_compare" id="xZiA-/6.lu[4yhxGMAfQ">
                                  <field name="OP">NEQ</field>
                                  <value name="A">
                                    <block type="time_get" id="YC~ex][O+R/CZLSn?$0[">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                      <field name="OPTION">wd</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="%l(8U81(KKV$xx%+2Br7">
                                      <field name="NUM">5</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_compare" id="|^;v)JkDTDN7O?*Uvhs?">
                                  <field name="OP">NEQ</field>
                                  <value name="A">
                                    <block type="time_get" id="!T//M9YZUYgKS;X_$mKG">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                      <field name="OPTION">wd</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="z7*@9C@*cF42Q?5k=o+U">
                                      <field name="NUM">6</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="time_compare_ex" id="nzNwD2LmEN4Ss0BC4b|:">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                              <field name="USE_ACTUAL_TIME">TRUE</field>
                              <field name="OPTION">not between</field>
                              <value name="START_TIME">
                                <shadow type="text" id="a9R[b3~}Yg5/0[y6tgAo">
                                  <field name="TEXT">20:30</field>
                                </shadow>
                              </value>
                              <value name="END_TIME">
                                <shadow type="text" id="nsa$00x|[U%8g(3=|@.#">
                                  <field name="TEXT">04:31</field>
                                </shadow>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="procedures_callnoreturn" id="E)OQMF~]3k9JPY0u$KH^">
                      <mutation name="Christoph"></mutation>
                    </block>
                  </statement>
                  <next>
                    <block type="controls_if" id="@@Y/G%0(zOY]TRaYzf=N">
                      <value name="IF0">
                        <block type="logic_operation" id="dox+zMq(.{pu%p{)7.iP" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="logic_operation" id="XHcyPRVztKh,un,m:uYY">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="on_source" id="m2N.gR|d_bzjRv4~8gw-">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_compare" id="QjJ@oCxi(T3hxr.=#dMd">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="Vx;D;dm4k.0zuv8Fp303">
                                      <field name="ATTR">val</field>
                                      <field name="OID">0_userdata.0.Datenpunkte.Bewegung_Bad</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="lutW.q)f^xUh:~4NE,Y(">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_operation" id="o{n|Fn9=9x,n%M25Rffs" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="logic_operation" id="b[vb$b?f6sM9Qt#B@+oq" inline="false">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                    <block type="logic_compare" id="uw(mNeapmu`gpu|uPz:7">
                                      <field name="OP">NEQ</field>
                                      <value name="A">
                                        <block type="time_get" id="]@XD#.V}9.A|g-n/W2Y9">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                          <field name="OPTION">wd</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="=)ObG5.~X^tKpey!29Ak">
                                          <field name="NUM">5</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_compare" id="b5UluUsnAeW*,/o0C%RO">
                                      <field name="OP">NEQ</field>
                                      <value name="A">
                                        <block type="time_get" id="^QAjD=THO:+gDM$ks!dF">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                          <field name="OPTION">wd</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="YZ2B,]O%%Lr5c^DZ5rXc">
                                          <field name="NUM">6</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="time_compare_ex" id="+q;[4TW;aAE`ZC[,-J.h">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                  <field name="USE_ACTUAL_TIME">TRUE</field>
                                  <field name="OPTION">not between</field>
                                  <value name="START_TIME">
                                    <shadow type="text" id="1ySHU?=]t*:#U%7m)VGm">
                                      <field name="TEXT">22:00</field>
                                    </shadow>
                                  </value>
                                  <value name="END_TIME">
                                    <shadow type="text" id="mwQ7gDKR6H6dq/ZqS{tC">
                                      <field name="TEXT">20:31</field>
                                    </shadow>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="procedures_callnoreturn" id="3^A,:{Aou5K-pMl#c}TT">
                          <mutation name="Christoph"></mutation>
                        </block>
                      </statement>
                      <next>
                        <block type="controls_if" id="u|H)(@*hqhJ@_:f36Pl,">
                          <value name="IF0">
                            <block type="logic_operation" id="hb=JsVjTrVc}ht6:@;Tz" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="logic_operation" id="N~wN8{-h@[6FT~J-K.}[">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                    <block type="on_source" id=")Rk=sElfW7_-f~f|F$W(">
                                      <field name="ATTR">state.val</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_compare" id="Wo}!#%sI=1+exShzpT1J">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id="tkZ8,8qflh|f{}:Md~Bp">
                                          <field name="ATTR">val</field>
                                          <field name="OID">0_userdata.0.Datenpunkte.Bewegung_Bad</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id=":)#s#zja=Ej;jK=LN~D3">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_operation" id="H:r0a@jlkAc9sL$O(O#V" inline="false">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                    <block type="logic_operation" id="P$fbDr7:773XkVU2=BJp" inline="false">
                                      <field name="OP">OR</field>
                                      <value name="A">
                                        <block type="logic_compare" id="i3/O:|ti/LY/uHR/fEU+">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="time_get" id="^G;Psf~+o2]}Uob(]b2a">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                              <field name="OPTION">wd</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="_.Mul65$$G*j*sZ^bQ.r">
                                              <field name="NUM">5</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_compare" id="iK:{R?msG0E(6C}XAUog">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="time_get" id="H{FxEk#$^~Rwn5uv]37Y">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                              <field name="OPTION">wd</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="_P;Wn7P;KOm7#aLJNC)}">
                                              <field name="NUM">6</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="time_compare_ex" id="^lfh?S(toOnFPFKDFi+g">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                      <field name="USE_ACTUAL_TIME">TRUE</field>
                                      <field name="OPTION">not between</field>
                                      <value name="START_TIME">
                                        <shadow type="text" id="8dK5/$+^{fKNNFd^zvf/">
                                          <field name="TEXT">22:00</field>
                                        </shadow>
                                      </value>
                                      <value name="END_TIME">
                                        <shadow type="text" id="z=Vk@M/,CRI+E`n8`bUU">
                                          <field name="TEXT">04:00</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="procedures_callnoreturn" id="|[[H=TK5r=8py0M$koUt">
                              <mutation name="Christoph"></mutation>
                            </block>
                          </statement>
                          <next>
                            <block type="controls_if" id="f/}bJqFXu]9tXiA8gY:b">
                              <value name="IF0">
                                <block type="logic_operation" id="fT]xLWaTbdLH6lmmEp7;" inline="false">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                    <block type="logic_operation" id="~ZWZ!$]RtEee^oHxya)D">
                                      <field name="OP">AND</field>
                                      <value name="A">
                                        <block type="on_source" id="8m:90*pw8JvmA,QMs?AB">
                                          <field name="ATTR">state.val</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_compare" id="(NujdP*OTLL?Du;[4ohL">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="4dVw)hdIiG[j$p(!6#mU">
                                              <field name="ATTR">val</field>
                                              <field name="OID">0_userdata.0.Datenpunkte.Bewegung_Bad</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_boolean" id="m(R%J`R6IyA^~J$6?fF;">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_operation" id="0-FNCf3bw#{f[Y+wH*O(" inline="false">
                                      <field name="OP">AND</field>
                                      <value name="A">
                                        <block type="logic_operation" id="!$Ryq_a7D1OWoG-utveJ" inline="false">
                                          <field name="OP">OR</field>
                                          <value name="A">
                                            <block type="logic_compare" id="_;2M[x/.#Y~H|UUS{z[I">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="time_get" id="ij2t(luIOrKl1ZK$G1T#">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                  <field name="OPTION">wd</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="qrf=.%M;7dxbKt|#HvxA">
                                                  <field name="NUM">5</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_compare" id="26~fGqd{wu1FbaW#`R@=">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="time_get" id=",[v5KOt}!J%S#ocR;}=B">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                  <field name="OPTION">wd</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="W7^rH_E{)V1{XD$pjBV,">
                                                  <field name="NUM">6</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="time_compare_ex" id="[W+~e99Me?DiB=QH~EP2">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                          <field name="USE_ACTUAL_TIME">TRUE</field>
                                          <field name="OPTION">not between</field>
                                          <value name="START_TIME">
                                            <shadow type="text" id="zT7?f}n+7S*tA-~`N!aS">
                                              <field name="TEXT">0:00</field>
                                            </shadow>
                                          </value>
                                          <value name="END_TIME">
                                            <shadow type="text" id="7)VxLEP=qop=JS7gTaQ?">
                                              <field name="TEXT">22:01</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="procedures_callnoreturn" id="GYqPcH7]z}URgOCWy5y@">
                                  <mutation name="Christoph"></mutation>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
          <next>
            <block type="on" id="sM:.Y~^%@f(]1=[;xCd]">
              <field name="OID">zigbee.0.00158d0009ce479c.opened</field>
              <field name="CONDITION">any</field>
              <field name="ACK_CONDITION"></field>
              <statement name="STATEMENT">
                <block type="controls_if" id="5cj)P381Yi%K(%Q6B4l">
                  <value name="IF0">
                    <block type="logic_operation" id="{Rplmn4(WE4q}_1wR26?" inline="false">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_operation" id="t@D!X]|O)2(W[@Avkreh">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="on_source" id=",m@rctfra`7]l)+o}@d^">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="vih:#X6H0zmW[J?-f:VP">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id=")3a~tzj|UEDFx*YsQ=k5">
                                  <field name="ATTR">val</field>
                                  <field name="OID">sonos.0.root.192_168_0_71.play</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="gO^=`PS^Vdd9-VXFC[}K">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_compare" id="JyU_SlMk[4_lknB_r1n[">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="o@_9?#8|S,=r8S0;H+Cr">
                              <field name="ATTR">val</field>
                              <field name="OID">0_userdata.0.Datenpunkte.Bewegung_Bad</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="3w:u6J4?5=I`D=RPJ4).">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="Ku};gU6!M7~:Vfq37H(_">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">0_userdata.0.Datenpunkte.Bewegung_Bad</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="*:$8|G_q~41Id%~s?2n9">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                      <next>
                        <block type="procedures_callnoreturn" id="zVrUD#*+#tSbB._7DCCk">
                          <mutation name="mach_Musik_aus"></mutation>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </next>
        </block>
        <block type="procedures_defnoreturn" id="zDn%EJ=R{.L40rH7~+|Q" x="1162" y="-263">
          <field name="NAME">Christoph</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="control" id="`d+A}*$IZ1H69q=;0(`~">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">0_userdata.0.Datenpunkte.Bewegung_Bad</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
                <block type="logic_boolean" id="oo2@}i.f2GR.bM`+Aqu`">
                  <field name="BOOL">TRUE</field>
                </block>
              </value>
              <next>
                <block type="debug" id="6?n5|vrGqCL//`8%L$V4">
                  <field name="Severity">log</field>
                  <value name="TEXT">
                    <shadow type="text" id="?c4TZZgzy:oY/z;huTBi">
                      <field name="TEXT">test</field>
                    </shadow>
                  </value>
                  <next>
                    <block type="control" id="Sahu=,1p^4Z}o9]o#(b_">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">sonos.0.root.192_168_0_101.group_volume</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="math_number" id="-z[_F:I/}*Wy,AHstQxj">
                          <field name="NUM">10</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="^r%naM5(9*$xbW$}Q5V[">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">sonos.0.root.192_168_0_101.favorites_set</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="text" id="i92FiksZV$:bJ=%4Mlqq">
                              <field name="TEXT">hr3</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="F3getn#qn%8hHanvXgGK">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">sonos.0.root.192_168_0_101.play</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="BSD1=riF32xmX.C1Et7#">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
        </block>
        <block type="procedures_defnoreturn" id="O(3*+|mgt]9chiP7/98V" x="1163" y="-12">
          <field name="NAME">mach_Musik_aus</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="control" id="aw-U.VFFII+FtU]U/o`r">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">sonos.0.root.192_168_0_101.stop</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
                <block type="logic_boolean" id="I1WfR-nF,!Zs+:68P!?:">
                  <field name="BOOL">TRUE</field>
                </block>
              </value>
              <next>
                <block type="comment" id="5W/()7s]5%k.hDzAvw]c">
                  <field name="COMMENT">hier den stopp Befehl Button</field>
                </block>
              </next>
            </block>
          </statement>
        </block>
        <block type="procedures_defnoreturn" id="pHJ3H9_@{s=QBTK=JBj." x="1162" y="113">
          <field name="NAME">Cori</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="control" id="1xmTJj6o;/Z~T@.#*0!Y">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">0_userdata.0.Datenpunkte.Bewegung_Bad</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
                <block type="logic_boolean" id="z9([eoGG#l^lvkg9G/5D">
                  <field name="BOOL">TRUE</field>
                </block>
              </value>
              <next>
                <block type="control" id="b?3(T/=;5|1JR@bZ{I$2">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">sonos.0.root.192_168_0_101.group_volume</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="math_number" id="~U7CC:op:}.`LL2-ATj2">
                      <field name="NUM">10</field>
                    </block>
                  </value>
                  <next>
                    <block type="control" id="X8+;JI?IPt@hJ{VhiHNl">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">sonos.0.root.192_168_0_101.favorites_set</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="text" id="lnsn4:Kf()#Uf47CO[(z">
                          <field name="TEXT">89.0 RTL</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="9{AjJ=_S]Lw?S?/]fMpf">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">sonos.0.root.192_168_0_71.play</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="7eny;Wued2SA2-~.5pg#">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
        </block>
        <block type="procedures_defnoreturn" id="F53HO;SlZ}p`7I)x_VxA" x="1163" y="313">
          <field name="NAME">ChillMusik</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="control" id="A6=`q[Ey1DZ*9k(hCAuR">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">0_userdata.0.Datenpunkte.Bewegung_Bad</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
                <block type="logic_boolean" id="RN}D7c#/ZaGvD1JJxGR5">
                  <field name="BOOL">TRUE</field>
                </block>
              </value>
              <next>
                <block type="control" id="z=[(X(:MRU@o00)_h=2[">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">sonos.0.root.192_168_0_101.group_volume</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="math_number" id="}+`.Fn8wj,e|b!WVxC.J">
                      <field name="NUM">8</field>
                    </block>
                  </value>
                  <next>
                    <block type="control" id="[-{k/6tL-yY4%UVx.qVf">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">sonos.0.root.192_168_0_101.favorites_set</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="text" id="!_QAoX6Jlg5RmH`CME*~">
                          <field name="TEXT">Chillout Lounge Ibiza</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="XT,pumU-G,B@L9-Lf31:">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">sonos.0.root.192_168_0_71.shuffle</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="-b9#ygQ~I2[aftX]P1R0">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="+D2!y+_(Ye3lzQI#oHmh">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">sonos.0.root.192_168_0_101.play</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id=".Y.m+C(%UG*%AyljGajc">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
        </block>
        <block type="procedures_defnoreturn" id="iu#:/[xt4ENd(Bd`kz}7" x="1088" y="687">
          <field name="NAME">Mache Musik an</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="control" id="A)lEFDjqMewyvs%c#DN[">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">sonos.0.root.192_168_0_101.play</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
                <block type="logic_boolean" id="HMGnAX73lPa/_7E?xM`C">
                  <field name="BOOL">TRUE</field>
                </block>
              </value>
            </block>
          </statement>
        </block>
      </xml>
      
      L 1 Reply Last reply Reply Quote 0
      • L
        lustig29 @lustig29 last edited by

        Habe das Skript jetzt ein bisschen abgeändert, bzw ganz neu gemacht. So läuft es jetzt auch.
        Jetzt hätte ich nur noch gerne eine zusätzliche Sicherheit drin, falls das stopen mit der Tür mal nicht funktionieren sollte, aus welchen Gründen auch immer. Möchte ich gerne das die Musik nach einer gewissen Zeit stoppt.

        BadMusikSkriptaktueel.png

        DJMarc75 1 Reply Last reply Reply Quote 0
        • DJMarc75
          DJMarc75 @lustig29 last edited by

          @lustig29

          Screenshot 2024-01-07 111946.png

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

          Support us

          ioBroker
          Community Adapters
          Donate

          821
          Online

          32.0k
          Users

          80.4k
          Topics

          1.3m
          Posts

          2
          3
          104
          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