Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
Logo
  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.1k

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

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

Bad Musik Bewegung

Scheduled Pinned Locked Moved Blockly
5 Posts 2 Posters 130 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Olli_MO Offline
    Olli_MO Offline
    Olli_M
    wrote on last edited by
    #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 Reply Last reply
    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
      wrote on last edited by 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 Reply Last reply
      0
      • paul53P paul53

        @olli_m sagte: bessere Idee noch?

        Versuche es mal so:

        Blockly_temp.JPG

        Olli_MO Offline
        Olli_MO Offline
        Olli_M
        wrote on last edited by
        #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 Reply Last reply
        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
          wrote on last edited by
          #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 Reply Last reply
          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
            wrote on last edited by 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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            Support us

            ioBroker
            Community Adapters
            Donate

            652

            Online

            32.4k

            Users

            81.4k

            Topics

            1.3m

            Posts
            Community
            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
            ioBroker Community 2014-2025
            logo
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Recent
            • Tags
            • Unread 0
            • Categories
            • Unreplied
            • Popular
            • GitHub
            • Docu
            • Hilfe