Skip to content
  • Home
  • 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
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Blockly Schleife

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.8k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.1k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.4k

Blockly Schleife

Scheduled Pinned Locked Moved Blockly
blockly
3 Posts 2 Posters 533 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.
  • A Offline
    A Offline
    Airgeibi
    wrote on last edited by
    #1

    Hallo,
    ich habe ein Problem ich möchte eine Pumpe 5 mal an und wieder aus schalten , wenn ich eine Taste drücke.
    im Debug Output wird auch bis 5 gezählt leider geht mein Verbraucher nur einmal an und wieder aus.
    Scheinbar zählt der Zähler ohne zu warten ob der Verbraucher an und wieder aus gegangen ist.
    Kann mir da jemand weiterhelfen.
    Danke
    Heiko

    9733d06d-1b26-4fe3-b2a5-998651e5c03a-image.png

    <xml xmlns="http://www.w3.org/1999/xhtml">
      <variables>
        <variable type="" id="|!Yttg64GAKIme-}},k*">Pumpe</variable>
      </variables>
      <block type="on_ext" id="k03RUlhc~;I92%exv7bd" x="263" y="-437">
        <mutation items="1"></mutation>
        <field name="CONDITION">ne</field>
        <field name="ACK_CONDITION"></field>
        <value name="OID0">
          <shadow type="field_oid" id="lCX?w!4pDaiBHnQ}N#sL">
            <field name="oid">sonoff.0.DVES_833DC4.POWER</field>
          </shadow>
        </value>
        <statement name="STATEMENT">
          <block type="variables_set" id="/Iaw3ojjutKo/4{@,d6_">
            <field name="VAR" id="|!Yttg64GAKIme-}},k*" variabletype="">Pumpe</field>
            <value name="VALUE">
              <block type="math_number" id=";|YuGKntSwyfwYvO%MJ_">
                <field name="NUM">0</field>
              </block>
            </value>
            <next>
              <block type="controls_whileUntil" id="[J)+j2ic;8Iaf%TV)-Yw">
                <field name="MODE">WHILE</field>
                <value name="BOOL">
                  <block type="logic_compare" id=".OBEV4Tfw;Sv!B+@8c8;">
                    <field name="OP">LT</field>
                    <value name="A">
                      <block type="variables_get" id="Aw]Ux:FgM=gMj].S]fYF">
                        <field name="VAR" id="|!Yttg64GAKIme-}},k*" variabletype="">Pumpe</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="jWHA1A4usoi,m*SK}[F#">
                        <field name="NUM">5</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO">
                  <block type="math_change" id="0F4/LDyAGd4e@v^hhM?_">
                    <field name="VAR" id="|!Yttg64GAKIme-}},k*" variabletype="">Pumpe</field>
                    <value name="DELTA">
                      <shadow type="math_number" id="xfnX|AStN,%`Ic-_X^M0">
                        <field name="NUM">1</field>
                      </shadow>
                    </value>
                    <next>
                      <block type="control" id="Gdb0_^5](_WPc[,ZNhTL">
                        <mutation delay_input="true"></mutation>
                        <field name="OID">sonoff.0.Gosund SP111.POWER</field>
                        <field name="WITH_DELAY">TRUE</field>
                        <field name="DELAY_MS">5</field>
                        <field name="UNIT">sec</field>
                        <field name="CLEAR_RUNNING">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="xZVMz[o[C|fl$U?Aj=Up">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="d0op}6?9.@1g;P*Fn(_S">
                            <mutation delay_input="true"></mutation>
                            <field name="OID">sonoff.0.Gosund SP111.POWER</field>
                            <field name="WITH_DELAY">TRUE</field>
                            <field name="DELAY_MS">5</field>
                            <field name="UNIT">sec</field>
                            <field name="CLEAR_RUNNING">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="$*y/QPFP{P?dX0oF=+02">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="debug" id="dVtO^4cwn#WAo=j$JH*v">
                                <field name="Severity">log</field>
                                <value name="TEXT">
                                  <shadow type="text" id="!63vTJIpm/tP?u/}`qaf">
                                    <field name="TEXT">test</field>
                                  </shadow>
                                  <block type="variables_get" id="|h48sD3)`.pN=g)IBlB+">
                                    <field name="VAR" id="|!Yttg64GAKIme-}},k*" variabletype="">Pumpe</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </xml>
    
    paul53P 1 Reply Last reply
    0
    • A Airgeibi

      Hallo,
      ich habe ein Problem ich möchte eine Pumpe 5 mal an und wieder aus schalten , wenn ich eine Taste drücke.
      im Debug Output wird auch bis 5 gezählt leider geht mein Verbraucher nur einmal an und wieder aus.
      Scheinbar zählt der Zähler ohne zu warten ob der Verbraucher an und wieder aus gegangen ist.
      Kann mir da jemand weiterhelfen.
      Danke
      Heiko

      9733d06d-1b26-4fe3-b2a5-998651e5c03a-image.png

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
          <variable type="" id="|!Yttg64GAKIme-}},k*">Pumpe</variable>
        </variables>
        <block type="on_ext" id="k03RUlhc~;I92%exv7bd" x="263" y="-437">
          <mutation items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="lCX?w!4pDaiBHnQ}N#sL">
              <field name="oid">sonoff.0.DVES_833DC4.POWER</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="variables_set" id="/Iaw3ojjutKo/4{@,d6_">
              <field name="VAR" id="|!Yttg64GAKIme-}},k*" variabletype="">Pumpe</field>
              <value name="VALUE">
                <block type="math_number" id=";|YuGKntSwyfwYvO%MJ_">
                  <field name="NUM">0</field>
                </block>
              </value>
              <next>
                <block type="controls_whileUntil" id="[J)+j2ic;8Iaf%TV)-Yw">
                  <field name="MODE">WHILE</field>
                  <value name="BOOL">
                    <block type="logic_compare" id=".OBEV4Tfw;Sv!B+@8c8;">
                      <field name="OP">LT</field>
                      <value name="A">
                        <block type="variables_get" id="Aw]Ux:FgM=gMj].S]fYF">
                          <field name="VAR" id="|!Yttg64GAKIme-}},k*" variabletype="">Pumpe</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="jWHA1A4usoi,m*SK}[F#">
                          <field name="NUM">5</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO">
                    <block type="math_change" id="0F4/LDyAGd4e@v^hhM?_">
                      <field name="VAR" id="|!Yttg64GAKIme-}},k*" variabletype="">Pumpe</field>
                      <value name="DELTA">
                        <shadow type="math_number" id="xfnX|AStN,%`Ic-_X^M0">
                          <field name="NUM">1</field>
                        </shadow>
                      </value>
                      <next>
                        <block type="control" id="Gdb0_^5](_WPc[,ZNhTL">
                          <mutation delay_input="true"></mutation>
                          <field name="OID">sonoff.0.Gosund SP111.POWER</field>
                          <field name="WITH_DELAY">TRUE</field>
                          <field name="DELAY_MS">5</field>
                          <field name="UNIT">sec</field>
                          <field name="CLEAR_RUNNING">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="xZVMz[o[C|fl$U?Aj=Up">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="d0op}6?9.@1g;P*Fn(_S">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">sonoff.0.Gosund SP111.POWER</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">5</field>
                              <field name="UNIT">sec</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="$*y/QPFP{P?dX0oF=+02">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="debug" id="dVtO^4cwn#WAo=j$JH*v">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                    <shadow type="text" id="!63vTJIpm/tP?u/}`qaf">
                                      <field name="TEXT">test</field>
                                    </shadow>
                                    <block type="variables_get" id="|h48sD3)`.pN=g)IBlB+">
                                      <field name="VAR" id="|!Yttg64GAKIme-}},k*" variabletype="">Pumpe</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      
      paul53P Offline
      paul53P Offline
      paul53
      wrote on last edited by
      #2

      @Airgeibi sagte:

      Pumpe 5 mal an und wieder aus schalten , wenn ich eine Taste drücke.

      Das macht man mit einem Intervall, etwa 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

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Airgeibi
        wrote on last edited by Airgeibi
        #3

        Hallo

        funktioniert erstmal so wie Du es erstellt hast aber:
        Wenn das Intervall gestartet wird, wartet Broker die eingestellte Zeit mit der ersten Ausführung bzw. ansteuern der Pumpe

        Ist natürlich doof denn die soll 15 min laufen und 30 sek Pause haben zwischen den Intervalle

        Habe das jetzt so gelöst
        gefällt mir auch nicht so aber die Pumpe läuft direkt an bei Betätigung des Taster

        d026ae02-94df-4ae8-858c-f23e372ee7c8-image.png

        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

        298

        Online

        32.6k

        Users

        82.3k

        Topics

        1.3m

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

        • Don't have an account? Register

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