Navigation

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

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Blockly Schleife

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

      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>
      
      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Airgeibi last edited by

        @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

        1 Reply Last reply Reply Quote 1
        • A
          Airgeibi last edited by Airgeibi

          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 Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          522
          Online

          31.9k
          Users

          80.1k
          Topics

          1.3m
          Posts

          blockly
          2
          3
          438
          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