Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Bad Musik Bewegung

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.2k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.9k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.2k

Bad Musik Bewegung

Geplant Angeheftet Gesperrt Verschoben Blockly
8 Beiträge 2 Kommentatoren 172 Aufrufe 2 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • Olli_MO Offline
    Olli_MO Offline
    Olli_M
    schrieb am zuletzt editiert von
    #1

    Hallo,

    ich habe folgendes Blockly gebaut, wenn ich ins Bad gehe dass er die Musik startet anhand von einem Bewegungsmelder.
    Allerdings wenn ich nochmal nach ein paar Sekunden in den Radius komme schickt er wieder die Anfrage los also unterbricht kurz die Musik und fängt nochmal an. Kann ich das irgendwie pausieren?
    oder hat jemand eine bessere Idee noch?

    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable type="timeout" id="timeout2">timeout2</variable>
        <variable type="timeout" id="timeout">timeout</variable>
      </variables>
      <block type="on_ext" id="e]wx#wSWqz[(+0/d`Ksf" x="112" y="137">
        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
        <field name="CONDITION">ne</field>
        <field name="ACK_CONDITION"></field>
        <value name="OID0">
          <shadow type="field_oid" id="h3$lpWSM+M3!wHu[tqz8">
            <field name="oid">hue.0.Hue_motion_sensor_Bad.presence</field>
          </shadow>
        </value>
        <statement name="STATEMENT">
          <block type="controls_if" id="-ZgLH#PTMneCXufmW:ib">
            <value name="IF0">
              <block type="logic_compare" id="O90z4yQ~8rNod|EiO7(o">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="on_source" id=".(C{R1fLTpN~Om}${{?z">
                    <field name="ATTR">state.val</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_boolean" id="#*oMjQ)LCwfL}^34?6=t">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="debug" id="LDTsi;X,c~!oM2y*@%rH">
                <field name="Severity">info</field>
                <value name="TEXT">
                  <shadow type="text" id="hot7toSL:bew*i]l!??@">
                    <field name="TEXT">Bewegung ja</field>
                  </shadow>
                </value>
                <next>
                  <block type="controls_if" id="XgXb(,$ikh-R%*G((~.6">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_negate" id="U:+CrDxg=`sRbMkt-hS=">
                        <value name="BOOL">
                          <block type="time_compare_ex" id="Sc2V)sG8!6.uLjuaeU:b">
                            <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">between</field>
                            <value name="START_TIME">
                              <shadow type="text" id="AB$3~sUyPZ.S(m#dBMaA">
                                <field name="TEXT">06:00</field>
                              </shadow>
                            </value>
                            <value name="END_TIME">
                              <shadow type="text" id="~oZ2ZcCB/}tkE0#gLC}Z">
                                <field name="TEXT">11:00</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="F=#ltD~p9}{oK}eB/S)t">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">sonos.0.root.192_168_178_154.volume</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="BwN:*K;U{bE@{,q-^h`_">
                            <field name="NUM">15</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="UPuqe0tp[8pBjO@$f|{#">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                            <field name="OID">sonos.0.root.192_168_178_154.favorites_set</field>
                            <field name="WITH_DELAY">TRUE</field>
                            <field name="DELAY_MS">2</field>
                            <field name="UNIT">sec</field>
                            <field name="CLEAR_RUNNING">FALSE</field>
                            <value name="VALUE">
                              <block type="text" id="p`b3TvsbFfQ}bD%{XG3]">
                                <field name="TEXT">Trending Pop Top 20</field>
                              </block>
                            </value>
                            <next>
                              <block type="debug" id="#]k0E*)!/ScnT7$t@ajO">
                                <field name="Severity">info</field>
                                <value name="TEXT">
                                  <shadow type="text" id="{LO6WhVe57CZ]NAb|KM7">
                                    <field name="TEXT">ausgeführt</field>
                                  </shadow>
                                </value>
                                <next>
                                  <block type="timeouts_settimeout" id="Z|^21n/k7=..`!kU;={I">
                                    <field name="NAME">timeout</field>
                                    <field name="DELAY">8</field>
                                    <field name="UNIT">min</field>
                                    <statement name="STATEMENT">
                                      <block type="control" id=",pH[^m*:ca-{9zOY}wBV">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">sonos.0.root.192_168_178_154.stop</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="N$BlduS]H[!*w=W}LpYK">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="control" id="[OKKBz0zGzl*913g]Gzt">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">sonos.0.root.192_168_178_154.volume</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="h,5ES,eH18[es_}}Y@$A">
                            <field name="NUM">15</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="@lLyL{+gQHrRdQ0n!t*O">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                            <field name="OID">sonos.0.root.192_168_178_154.favorites_set</field>
                            <field name="WITH_DELAY">TRUE</field>
                            <field name="DELAY_MS">2</field>
                            <field name="UNIT">sec</field>
                            <field name="CLEAR_RUNNING">FALSE</field>
                            <value name="VALUE">
                              <block type="text" id="k;9{LbsAoJ|K[T4l)Ryf">
                                <field name="TEXT">Pop Drive</field>
                              </block>
                            </value>
                            <next>
                              <block type="timeouts_settimeout" id="F80]xiD%yM+yO0DP[uND">
                                <field name="NAME">timeout2</field>
                                <field name="DELAY">8</field>
                                <field name="UNIT">min</field>
                                <statement name="STATEMENT">
                                  <block type="control" id="0p2sc//RbCYcw|nVY0We">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">sonos.0.root.192_168_178_154.stop</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="aV.IEk-@1~CL:IVj5k@#">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </statement>
      </block>
    </xml>
    

    Bildschirmfoto 2025-11-12 um 23.01.27.png

    paul53P 1 Antwort Letzte Antwort
    0
    • Olli_MO Olli_M

      Hallo,

      ich habe folgendes Blockly gebaut, wenn ich ins Bad gehe dass er die Musik startet anhand von einem Bewegungsmelder.
      Allerdings wenn ich nochmal nach ein paar Sekunden in den Radius komme schickt er wieder die Anfrage los also unterbricht kurz die Musik und fängt nochmal an. Kann ich das irgendwie pausieren?
      oder hat jemand eine bessere Idee noch?

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="timeout" id="timeout2">timeout2</variable>
          <variable type="timeout" id="timeout">timeout</variable>
        </variables>
        <block type="on_ext" id="e]wx#wSWqz[(+0/d`Ksf" x="112" y="137">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="h3$lpWSM+M3!wHu[tqz8">
              <field name="oid">hue.0.Hue_motion_sensor_Bad.presence</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id="-ZgLH#PTMneCXufmW:ib">
              <value name="IF0">
                <block type="logic_compare" id="O90z4yQ~8rNod|EiO7(o">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="on_source" id=".(C{R1fLTpN~Om}${{?z">
                      <field name="ATTR">state.val</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="#*oMjQ)LCwfL}^34?6=t">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="debug" id="LDTsi;X,c~!oM2y*@%rH">
                  <field name="Severity">info</field>
                  <value name="TEXT">
                    <shadow type="text" id="hot7toSL:bew*i]l!??@">
                      <field name="TEXT">Bewegung ja</field>
                    </shadow>
                  </value>
                  <next>
                    <block type="controls_if" id="XgXb(,$ikh-R%*G((~.6">
                      <mutation else="1"></mutation>
                      <value name="IF0">
                        <block type="logic_negate" id="U:+CrDxg=`sRbMkt-hS=">
                          <value name="BOOL">
                            <block type="time_compare_ex" id="Sc2V)sG8!6.uLjuaeU:b">
                              <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">between</field>
                              <value name="START_TIME">
                                <shadow type="text" id="AB$3~sUyPZ.S(m#dBMaA">
                                  <field name="TEXT">06:00</field>
                                </shadow>
                              </value>
                              <value name="END_TIME">
                                <shadow type="text" id="~oZ2ZcCB/}tkE0#gLC}Z">
                                  <field name="TEXT">11:00</field>
                                </shadow>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="F=#ltD~p9}{oK}eB/S)t">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">sonos.0.root.192_168_178_154.volume</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="BwN:*K;U{bE@{,q-^h`_">
                              <field name="NUM">15</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="UPuqe0tp[8pBjO@$f|{#">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                              <field name="OID">sonos.0.root.192_168_178_154.favorites_set</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">2</field>
                              <field name="UNIT">sec</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="text" id="p`b3TvsbFfQ}bD%{XG3]">
                                  <field name="TEXT">Trending Pop Top 20</field>
                                </block>
                              </value>
                              <next>
                                <block type="debug" id="#]k0E*)!/ScnT7$t@ajO">
                                  <field name="Severity">info</field>
                                  <value name="TEXT">
                                    <shadow type="text" id="{LO6WhVe57CZ]NAb|KM7">
                                      <field name="TEXT">ausgeführt</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="timeouts_settimeout" id="Z|^21n/k7=..`!kU;={I">
                                      <field name="NAME">timeout</field>
                                      <field name="DELAY">8</field>
                                      <field name="UNIT">min</field>
                                      <statement name="STATEMENT">
                                        <block type="control" id=",pH[^m*:ca-{9zOY}wBV">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">sonos.0.root.192_168_178_154.stop</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="N$BlduS]H[!*w=W}LpYK">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <statement name="ELSE">
                        <block type="control" id="[OKKBz0zGzl*913g]Gzt">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">sonos.0.root.192_168_178_154.volume</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="h,5ES,eH18[es_}}Y@$A">
                              <field name="NUM">15</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="@lLyL{+gQHrRdQ0n!t*O">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                              <field name="OID">sonos.0.root.192_168_178_154.favorites_set</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">2</field>
                              <field name="UNIT">sec</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="text" id="k;9{LbsAoJ|K[T4l)Ryf">
                                  <field name="TEXT">Pop Drive</field>
                                </block>
                              </value>
                              <next>
                                <block type="timeouts_settimeout" id="F80]xiD%yM+yO0DP[uND">
                                  <field name="NAME">timeout2</field>
                                  <field name="DELAY">8</field>
                                  <field name="UNIT">min</field>
                                  <statement name="STATEMENT">
                                    <block type="control" id="0p2sc//RbCYcw|nVY0We">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">sonos.0.root.192_168_178_154.stop</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="aV.IEk-@1~CL:IVj5k@#">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      

      Bildschirmfoto 2025-11-12 um 23.01.27.png

      paul53P Offline
      paul53P Offline
      paul53
      schrieb am zuletzt editiert von paul53
      #2

      @olli_m sagte: bessere Idee noch?

      Versuche es mal so:

      Blockly_temp.JPG

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      Olli_MO 1 Antwort Letzte Antwort
      0
      • paul53P paul53

        @olli_m sagte: bessere Idee noch?

        Versuche es mal so:

        Blockly_temp.JPG

        Olli_MO Offline
        Olli_MO Offline
        Olli_M
        schrieb am zuletzt editiert von
        #3

        @paul53

        cool probiere ich -:-)

        warum ist bei dir bei den Uhrzeiten das Feld auch lila eigentlich?

        Wie könnte ich das noch ergänzen mit mehreren Zeiten? dann müsste man das anders wieder bauen oder?

        Olli_MO 1 Antwort Letzte Antwort
        0
        • Olli_MO Olli_M

          @paul53

          cool probiere ich -:-)

          warum ist bei dir bei den Uhrzeiten das Feld auch lila eigentlich?

          Wie könnte ich das noch ergänzen mit mehreren Zeiten? dann müsste man das anders wieder bauen oder?

          Olli_MO Offline
          Olli_MO Offline
          Olli_M
          schrieb am zuletzt editiert von
          #4

          Ich würde gerne noch mehr Bedingungen machen, dass bei bestimmter Uhrzeit es länger läuft sonst kürzer....und halt auch mehr Tageszeiten :-)

          paul53P 1 Antwort Letzte Antwort
          0
          • Olli_MO Olli_M

            Ich würde gerne noch mehr Bedingungen machen, dass bei bestimmter Uhrzeit es länger läuft sonst kürzer....und halt auch mehr Tageszeiten :-)

            paul53P Offline
            paul53P Offline
            paul53
            schrieb am zuletzt editiert von paul53
            #5

            @olli_m sagte: mehr Bedingungen machen, dass bei bestimmter Uhrzeit es länger läuft sonst kürzer....und halt auch mehr Tageszeiten

            Prinzip mit 3 Tageszeiten:

            Blockly_temp.JPG

            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

            Olli_MO 1 Antwort Letzte Antwort
            0
            • paul53P paul53

              @olli_m sagte: mehr Bedingungen machen, dass bei bestimmter Uhrzeit es länger läuft sonst kürzer....und halt auch mehr Tageszeiten

              Prinzip mit 3 Tageszeiten:

              Blockly_temp.JPG

              Olli_MO Offline
              Olli_MO Offline
              Olli_M
              schrieb zuletzt editiert von
              #6

              @paul53

              erstmal vielen Dank. Aber so ganz gehts noch nicht, sobald ich mich kurz nicht im bewegen geht der presence wieder auf false und wenn ich mich dann bewege, fängt es halt wieder von vorne an....

              Bildschirmfoto 2025-11-19 um 09.48.57.png

              <xml xmlns="https://developers.google.com/blockly/xml">
                <variables>
                  <variable id="pzzqm$SqBn%w0y6pcX)I">favorit</variable>
                  <variable id="yZcv]eS9Fv9kHL[~aA1U">Dauer</variable>
                  <variable type="timeout" id="timeout2">timeout2</variable>
                </variables>
                <block type="on_ext" id="n@B:I40g5DsrSS92+%Ap" x="-37" y="112">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                  <field name="CONDITION">gt</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="5pNs/~BubV(m2`e~;G=}">
                      <field name="oid">hue.0.Hue_motion_sensor_Bad.presence</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="XgXb(,$ikh-R%*G((~.6">
                      <value name="IF0">
                        <block type="logic_negate" id="U:+CrDxg=`sRbMkt-hS=">
                          <value name="BOOL">
                            <block type="timeouts_gettimeout" id="Dim`ZJ]hQr/O`B8vv_6C">
                              <field name="NAME">timeout2</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="controls_if" id="EUiQ7mRa}ut9-U?}MfTx">
                          <mutation elseif="1" else="1"></mutation>
                          <value name="IF0">
                            <block type="time_compare" id="u*K8[Qb,hpISkN(*OLKP">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                              <field name="OPTION">between</field>
                              <field name="START_TIME">06:00</field>
                              <field name="END_TIME">11:00</field>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="variables_set" id="Ewj(M6hnBxf[%w+wY~w|">
                              <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field>
                              <value name="VALUE">
                                <block type="text" id="p`b3TvsbFfQ}bD%{XG3]">
                                  <field name="TEXT">Trending Pop Top 20</field>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="Zyb_LI+5emAlsY=03v5F">
                                  <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="ZRnto~s^Kci~1U}.VrK-">
                                      <field name="NUM">8</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <value name="IF1">
                            <block type="time_compare" id="vg@ARk#AQ~).-V315-E_">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                              <field name="OPTION">between</field>
                              <field name="START_TIME">11:00</field>
                              <field name="END_TIME">22:00</field>
                            </block>
                          </value>
                          <statement name="DO1">
                            <block type="variables_set" id="hoUh1(hfn:hw1s(;lX}L">
                              <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field>
                              <value name="VALUE">
                                <block type="text" id="k;9{LbsAoJ|K[T4l)Ryf">
                                  <field name="TEXT">Kiss Radio</field>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="lv0#@2W8*0oUTZw3,=;A">
                                  <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="zD`f+L(YWyt^95kiKInB">
                                      <field name="NUM">8</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <statement name="ELSE">
                            <block type="variables_set" id="HQkthbK|%3C5BypV)uG2">
                              <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field>
                              <value name="VALUE">
                                <block type="text" id="GTAatKN.Kp:vQ0|6#D`+">
                                  <field name="TEXT">Chill Alternative Radio</field>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="!]$20E=2,9IhRD5$}XHV">
                                  <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="*_]jAf+,p_I:f55GK6u3">
                                      <field name="NUM">8</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </statement>
                      <next>
                        <block type="control" id="F=#ltD~p9}{oK}eB/S)t">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">sonos.0.root.192_168_178_154.volume</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="BwN:*K;U{bE@{,q-^h`_">
                              <field name="NUM">10</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="UPuqe0tp[8pBjO@$f|{#">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                              <field name="OID">sonos.0.root.192_168_178_154.favorites_set</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">2</field>
                              <field name="UNIT">sec</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="variables_get" id="Do70@rfVY5X!?Lo7@yv|">
                                  <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field>
                                </block>
                              </value>
                              <next>
                                <block type="debug" id="#]k0E*)!/ScnT7$t@ajO">
                                  <field name="Severity">info</field>
                                  <value name="TEXT">
                                    <shadow type="text" id="{LO6WhVe57CZ]NAb|KM7">
                                      <field name="TEXT">ausgeführt</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="timeouts_settimeout_variable" id="`F0,V3[!E1n@Y{x)3cud">
                                      <field name="NAME">timeout2</field>
                                      <value name="DELAY_MS">
                                        <shadow type="math_number" id="7zg/F-pce`$W0!low-XY">
                                          <field name="NUM">1000</field>
                                        </shadow>
                                        <block type="math_arithmetic" id="k_[KoKtcc!BZnzu))ge3">
                                          <field name="OP">MULTIPLY</field>
                                          <value name="A">
                                            <shadow type="math_number" id=",5S3T@Z:@_Y_Vk,fvtE~">
                                              <field name="NUM">1</field>
                                            </shadow>
                                          </value>
                                          <value name="B">
                                            <shadow type="math_number" id="_6{BAi*fIO%IHa95ms}U">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="variables_get" id="J5)[vS]aTqlNF8+yp*YX">
                                              <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="STATEMENT">
                                        <block type="control" id="0p2sc//RbCYcw|nVY0We">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">sonos.0.root.192_168_178_154.stop</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="aV.IEk-@1~CL:IVj5k@#">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </xml>
              
              paul53P 1 Antwort Letzte Antwort
              0
              • Olli_MO Offline
                Olli_MO Offline
                Olli_M
                schrieb zuletzt editiert von Olli_M
                #7

                ist doch identisch mit dem timeout....aber er startet dann immer neu...

                glaub habs es gefunden mit den 6000 ms am Ende aber warum x dann der Dauer? kannst du mir das kurz erklären dass ich es verstehe?

                1 Antwort Letzte Antwort
                0
                • Olli_MO Olli_M

                  @paul53

                  erstmal vielen Dank. Aber so ganz gehts noch nicht, sobald ich mich kurz nicht im bewegen geht der presence wieder auf false und wenn ich mich dann bewege, fängt es halt wieder von vorne an....

                  Bildschirmfoto 2025-11-19 um 09.48.57.png

                  <xml xmlns="https://developers.google.com/blockly/xml">
                    <variables>
                      <variable id="pzzqm$SqBn%w0y6pcX)I">favorit</variable>
                      <variable id="yZcv]eS9Fv9kHL[~aA1U">Dauer</variable>
                      <variable type="timeout" id="timeout2">timeout2</variable>
                    </variables>
                    <block type="on_ext" id="n@B:I40g5DsrSS92+%Ap" x="-37" y="112">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                      <field name="CONDITION">gt</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id="5pNs/~BubV(m2`e~;G=}">
                          <field name="oid">hue.0.Hue_motion_sensor_Bad.presence</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="XgXb(,$ikh-R%*G((~.6">
                          <value name="IF0">
                            <block type="logic_negate" id="U:+CrDxg=`sRbMkt-hS=">
                              <value name="BOOL">
                                <block type="timeouts_gettimeout" id="Dim`ZJ]hQr/O`B8vv_6C">
                                  <field name="NAME">timeout2</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="controls_if" id="EUiQ7mRa}ut9-U?}MfTx">
                              <mutation elseif="1" else="1"></mutation>
                              <value name="IF0">
                                <block type="time_compare" id="u*K8[Qb,hpISkN(*OLKP">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                  <field name="OPTION">between</field>
                                  <field name="START_TIME">06:00</field>
                                  <field name="END_TIME">11:00</field>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="variables_set" id="Ewj(M6hnBxf[%w+wY~w|">
                                  <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field>
                                  <value name="VALUE">
                                    <block type="text" id="p`b3TvsbFfQ}bD%{XG3]">
                                      <field name="TEXT">Trending Pop Top 20</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="Zyb_LI+5emAlsY=03v5F">
                                      <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="ZRnto~s^Kci~1U}.VrK-">
                                          <field name="NUM">8</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <value name="IF1">
                                <block type="time_compare" id="vg@ARk#AQ~).-V315-E_">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                  <field name="OPTION">between</field>
                                  <field name="START_TIME">11:00</field>
                                  <field name="END_TIME">22:00</field>
                                </block>
                              </value>
                              <statement name="DO1">
                                <block type="variables_set" id="hoUh1(hfn:hw1s(;lX}L">
                                  <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field>
                                  <value name="VALUE">
                                    <block type="text" id="k;9{LbsAoJ|K[T4l)Ryf">
                                      <field name="TEXT">Kiss Radio</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="lv0#@2W8*0oUTZw3,=;A">
                                      <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="zD`f+L(YWyt^95kiKInB">
                                          <field name="NUM">8</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <statement name="ELSE">
                                <block type="variables_set" id="HQkthbK|%3C5BypV)uG2">
                                  <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field>
                                  <value name="VALUE">
                                    <block type="text" id="GTAatKN.Kp:vQ0|6#D`+">
                                      <field name="TEXT">Chill Alternative Radio</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="!]$20E=2,9IhRD5$}XHV">
                                      <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="*_]jAf+,p_I:f55GK6u3">
                                          <field name="NUM">8</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </statement>
                          <next>
                            <block type="control" id="F=#ltD~p9}{oK}eB/S)t">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">sonos.0.root.192_168_178_154.volume</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="BwN:*K;U{bE@{,q-^h`_">
                                  <field name="NUM">10</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="UPuqe0tp[8pBjO@$f|{#">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                  <field name="OID">sonos.0.root.192_168_178_154.favorites_set</field>
                                  <field name="WITH_DELAY">TRUE</field>
                                  <field name="DELAY_MS">2</field>
                                  <field name="UNIT">sec</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <value name="VALUE">
                                    <block type="variables_get" id="Do70@rfVY5X!?Lo7@yv|">
                                      <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="debug" id="#]k0E*)!/ScnT7$t@ajO">
                                      <field name="Severity">info</field>
                                      <value name="TEXT">
                                        <shadow type="text" id="{LO6WhVe57CZ]NAb|KM7">
                                          <field name="TEXT">ausgeführt</field>
                                        </shadow>
                                      </value>
                                      <next>
                                        <block type="timeouts_settimeout_variable" id="`F0,V3[!E1n@Y{x)3cud">
                                          <field name="NAME">timeout2</field>
                                          <value name="DELAY_MS">
                                            <shadow type="math_number" id="7zg/F-pce`$W0!low-XY">
                                              <field name="NUM">1000</field>
                                            </shadow>
                                            <block type="math_arithmetic" id="k_[KoKtcc!BZnzu))ge3">
                                              <field name="OP">MULTIPLY</field>
                                              <value name="A">
                                                <shadow type="math_number" id=",5S3T@Z:@_Y_Vk,fvtE~">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                              </value>
                                              <value name="B">
                                                <shadow type="math_number" id="_6{BAi*fIO%IHa95ms}U">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="variables_get" id="J5)[vS]aTqlNF8+yp*YX">
                                                  <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="STATEMENT">
                                            <block type="control" id="0p2sc//RbCYcw|nVY0We">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">sonos.0.root.192_168_178_154.stop</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="aV.IEk-@1~CL:IVj5k@#">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </xml>
                  
                  paul53P Offline
                  paul53P Offline
                  paul53
                  schrieb zuletzt editiert von paul53
                  #8

                  @Olli_M sagte: bewege, fängt es halt wieder von vorne an....

                  Die Klammer "falls nicht Verzögerung timeout" muss über alle Blöcke gehen.

                  @Olli_M sagte in Bad Musik Bewegung:

                  6000 ms am Ende aber warum x dann der Dauer?

                  60000 * Minuten = ms.

                  EDIT: Dein Blockly korrigiert:

                  Blockly_temp.JPG

                  Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                  Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                  1 Antwort Letzte Antwort
                  0
                  Antworten
                  • In einem neuen Thema antworten
                  Anmelden zum Antworten
                  • Älteste zuerst
                  • Neuste zuerst
                  • Meiste Stimmen


                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  522

                  Online

                  32.4k

                  Benutzer

                  81.4k

                  Themen

                  1.3m

                  Beiträge
                  Community
                  Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                  ioBroker Community 2014-2025
                  logo
                  • Anmelden

                  • Du hast noch kein Konto? Registrieren

                  • Anmelden oder registrieren, um zu suchen
                  • Erster Beitrag
                    Letzter Beitrag
                  0
                  • Home
                  • Aktuell
                  • Tags
                  • Ungelesen 0
                  • Kategorien
                  • Unreplied
                  • Beliebt
                  • GitHub
                  • Docu
                  • Hilfe