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

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. [gelöst]Trockenlaufschutz, Problem mit Blockly

NEWS

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    11
    1
    507

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.7k

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

[gelöst]Trockenlaufschutz, Problem mit Blockly

Geplant Angeheftet Gesperrt Verschoben Blockly
107 Beiträge 6 Kommentatoren 8.7k 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.
  • N nole

    @nole mein Fehler, ich muß die 3 Punkte unterhalb nehmen.

    BBTownB Offline
    BBTownB Offline
    BBTown
    schrieb am zuletzt editiert von
    #43

    @nole
    Mit Beispielmeldungen
    e9df0c85-6944-4e97-9f73-7f955e9ecf8c-image.png

    ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

    1 Antwort Letzte Antwort
    0
    • BBTownB BBTown

      @nole

      das könnte passen
      e7085d49-c19a-4695-8fd2-15a2eefe8fd5-image.png

      <xml xmlns="https://developers.google.com/blockly/xml">
       <variables>
         <variable type="timeout" id="timeout3">timeout3</variable>
       </variables>
       <block type="on_ext" id=")3Y6O)OSZ6,a.eId9_([" x="-488" y="138">
         <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="FB}qA2j)SArn`ar=BQ8z">
             <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
           </shadow>
         </value>
         <statement name="STATEMENT">
           <block type="controls_if" id="nT8{B{T^As}6|P1eFdAp">
             <mutation elseif="1"></mutation>
             <value name="IF0">
               <block type="logic_operation" id="k/5vYdt)FO5#4fIMa~m;" inline="false">
                 <field name="OP">AND</field>
                 <value name="A">
                   <block type="logic_compare" id="h=ll3)j0~lH*]vID@v{h">
                     <field name="OP">GTE</field>
                     <value name="A">
                       <block type="on_source" id="u:72U[-3Dnb8^3xE,|!!">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="QWMd~%R.#BvSN.-Jr7|S">
                         <field name="NUM">100</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <value name="B">
                   <block type="logic_compare" id="{T1t5z14z,+4|DC]gOXz">
                     <field name="OP">LT</field>
                     <value name="A">
                       <block type="on_source" id="=QYK}e_eO)R!UP9V$lM^">
                         <field name="ATTR">oldState.val</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="hLUSUOYJL$qWXsN7kTk8">
                         <field name="NUM">100</field>
                       </block>
                     </value>
                   </block>
                 </value>
               </block>
             </value>
             <statement name="DO0">
               <block type="timeouts_cleartimeout" id="U_%ugF^L^YUcG@wP=]~Z">
                 <field name="NAME">timeout3</field>
                 <next>
                   <block type="control" id="hZTA=BSjCVV{]?(0pVgY">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                     <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="logic_boolean" id="R||h%3X{{l}e4p`%Yawz">
                         <field name="BOOL">TRUE</field>
                       </block>
                     </value>
                     <next>
                       <block type="timeouts_settimeout" id="|y|12`S1gi{?f|+:!d87">
                         <field name="NAME">timeout3</field>
                         <field name="DELAY">30</field>
                         <field name="UNIT">min</field>
                         <statement name="STATEMENT">
                           <block type="control" id="]:Q/hgD*3Ye$XrhiCKVK">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="logic_boolean" id="]qeVb0?p3y!^dSP8T!{!">
                                 <field name="BOOL">FALSE</field>
                               </block>
                             </value>
                           </block>
                         </statement>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
             </statement>
             <value name="IF1">
               <block type="logic_operation" id="!/F3qNm$R2Q]m/jo|f#T" inline="false">
                 <field name="OP">AND</field>
                 <value name="A">
                   <block type="logic_compare" id="iHA4@^BN{s/[}$=sq31n">
                     <field name="OP">LTE</field>
                     <value name="A">
                       <block type="on_source" id="gQBF^?(7;hKwq*ro`;LK">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="E1Co9VoP0Z]U].V}:dk6">
                         <field name="NUM">50</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <value name="B">
                   <block type="logic_compare" id="2[[fJeqHxkcfP[F^]I-Q">
                     <field name="OP">GT</field>
                     <value name="A">
                       <block type="on_source" id="f5IDFVCeLD}U6K[_XEG@">
                         <field name="ATTR">oldState.val</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="2k,M4Zr}0C_#uR%MuF|Q">
                         <field name="NUM">50</field>
                       </block>
                     </value>
                   </block>
                 </value>
               </block>
             </value>
             <statement name="DO1">
               <block type="timeouts_cleartimeout" id="s_tu+G)JzfXKRo!,-i?j">
                 <field name="NAME">timeout3</field>
                 <next>
                   <block type="control" id="dYN%$E|/?la90IKRz{*w">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                     <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="logic_boolean" id="lU?:V,sk#5e#Zs@){!|m">
                         <field name="BOOL">FALSE</field>
                       </block>
                     </value>
                   </block>
                 </next>
               </block>
             </statement>
             <next>
               <block type="debug" id="jv2kcn+O#/wer{(+o+DW">
                 <field name="Severity">log</field>
                 <value name="TEXT">
                   <shadow type="text">
                     <field name="TEXT">test</field>
                   </shadow>
                   <block type="text_join" id="FXin0|uc^i=Wm;0R-Jtj">
                     <mutation items="2"></mutation>
                     <value name="ADD0">
                       <block type="text" id="Z##h?{^2;N/L6AAv4~..">
                         <field name="TEXT">Watt:</field>
                       </block>
                     </value>
                     <value name="ADD1">
                       <block type="on_source" id="t@LBx#Y!8Fv5({,pHM[,">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                   </block>
                 </value>
               </block>
             </next>
           </block>
         </statement>
       </block>
      </xml>
      

      [Edit]
      Nun bekommst Du allerdings bei jeder Temperatur-Änderung eine Meldung.
      Womöglich ist es sinnvoller die Meldungen auch innerhalb der falls Blöcke zu platzieren, je nachdem wann Du welche Meldung haben möchtest

      N Offline
      N Offline
      nole
      schrieb am zuletzt editiert von
      #44

      @bbtown Wenn ich dein Skript importiere habe ich da "Ausführen timeout4" drin, die anderen beiden sind timeout3.

      BBTownB 1 Antwort Letzte Antwort
      0
      • N nole

        @bbtown Wenn ich dein Skript importiere habe ich da "Ausführen timeout4" drin, die anderen beiden sind timeout3.

        BBTownB Offline
        BBTownB Offline
        BBTown
        schrieb am zuletzt editiert von BBTown
        #45

        @nole ich habe den Timeout gar nicht angefasst, sondern von deinem Import übernommen und nur den Baustein einmal dupliziert. Umbenennen kannst Du ihn wie Du willst. Der Timeout muss nur zum Timer passen

        [EDIT] benutze doch mal die Auswahlliste des Timeout-Bausteins (DropDown) und wähle die korrekte Bezeichnung aus

        ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

        N 2 Antworten Letzte Antwort
        0
        • BBTownB BBTown

          @nole ich habe den Timeout gar nicht angefasst, sondern von deinem Import übernommen und nur den Baustein einmal dupliziert. Umbenennen kannst Du ihn wie Du willst. Der Timeout muss nur zum Timer passen

          [EDIT] benutze doch mal die Auswahlliste des Timeout-Bausteins (DropDown) und wähle die korrekte Bezeichnung aus

          N Offline
          N Offline
          nole
          schrieb am zuletzt editiert von
          #46

          @bbtown Umbenennen geht nicht, ändert sich immer wieder auf 4

          1 Antwort Letzte Antwort
          0
          • BBTownB BBTown

            @nole ich habe den Timeout gar nicht angefasst, sondern von deinem Import übernommen und nur den Baustein einmal dupliziert. Umbenennen kannst Du ihn wie Du willst. Der Timeout muss nur zum Timer passen

            [EDIT] benutze doch mal die Auswahlliste des Timeout-Bausteins (DropDown) und wähle die korrekte Bezeichnung aus

            N Offline
            N Offline
            nole
            schrieb am zuletzt editiert von
            #47

            @bbtown kommt das durch das kopieren des Bausteins?

            BBTownB N 2 Antworten Letzte Antwort
            0
            • N nole

              @bbtown kommt das durch das kopieren des Bausteins?

              BBTownB Offline
              BBTownB Offline
              BBTown
              schrieb am zuletzt editiert von
              #48

              @nole benutze doch mal die Auswahlliste des Timeout-Bausteins (DropDown) und wähle die korrekte Bezeichnung aus

              ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

              1 Antwort Letzte Antwort
              0
              • N nole

                @bbtown kommt das durch das kopieren des Bausteins?

                N Offline
                N Offline
                nole
                schrieb am zuletzt editiert von
                #49

                @nole Der timeout 4 hat komischerweise keine Auswahlliste, kann ich die anderen beiden einfach auf 4 ändern?

                BBTownB 2 Antworten Letzte Antwort
                0
                • N nole

                  @nole Der timeout 4 hat komischerweise keine Auswahlliste, kann ich die anderen beiden einfach auf 4 ändern?

                  BBTownB Offline
                  BBTownB Offline
                  BBTown
                  schrieb am zuletzt editiert von
                  #50

                  @nole dann lösche den Baustein und füge ihn neu hinzu

                  ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

                  N 1 Antwort Letzte Antwort
                  0
                  • BBTownB BBTown

                    @nole dann lösche den Baustein und füge ihn neu hinzu

                    N Offline
                    N Offline
                    nole
                    schrieb am zuletzt editiert von
                    #51

                    @bbtown dann ändert sich dieser timeout automatisch von der eingegebenen 3 auf 5

                    BBTownB J 2 Antworten Letzte Antwort
                    0
                    • N nole

                      @nole Der timeout 4 hat komischerweise keine Auswahlliste, kann ich die anderen beiden einfach auf 4 ändern?

                      BBTownB Offline
                      BBTownB Offline
                      BBTown
                      schrieb am zuletzt editiert von
                      #52

                      @nole Du kannst die Bezeichnung des Timers ändern und die neue Bezeichnung steht danach in den Auswahllisten der Timeout Bausteine zur Verfügung

                      ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

                      N 1 Antwort Letzte Antwort
                      0
                      • BBTownB BBTown

                        @nole Du kannst die Bezeichnung des Timers ändern und die neue Bezeichnung steht danach in den Auswahllisten der Timeout Bausteine zur Verfügung

                        N Offline
                        N Offline
                        nole
                        schrieb am zuletzt editiert von
                        #53

                        @bbtown ich habe jetzt die beiden anderen auf 4 geändert, das hat geklappt.

                        1 Antwort Letzte Antwort
                        0
                        • N nole

                          @bbtown dann ändert sich dieser timeout automatisch von der eingegebenen 3 auf 5

                          BBTownB Offline
                          BBTownB Offline
                          BBTown
                          schrieb am zuletzt editiert von
                          #54

                          @nole dann kann ich dir nicht helfen.
                          Du hast jetzt eine Vorlage an der Du dich orientieren kannst
                          Entweder Du fängst ein neues Script an und versucht erneut den Import, oder aber Du legst ein neues Script manuell mit den Bausteinen gemäß Vorlage an.

                          ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

                          1 Antwort Letzte Antwort
                          0
                          • N nole

                            @bbtown dann ändert sich dieser timeout automatisch von der eingegebenen 3 auf 5

                            J Offline
                            J Offline
                            Jan1
                            schrieb am zuletzt editiert von
                            #55

                            @nole
                            Das sieht ja schon ganz gut aus hier ;)

                            N 2 Antworten Letzte Antwort
                            0
                            • J Jan1

                              @nole
                              Das sieht ja schon ganz gut aus hier ;)

                              N Offline
                              N Offline
                              nole
                              schrieb am zuletzt editiert von
                              #56

                              @jan1 was sieht gut aus?

                              J 1 Antwort Letzte Antwort
                              0
                              • J Jan1

                                @nole
                                Das sieht ja schon ganz gut aus hier ;)

                                N Offline
                                N Offline
                                nole
                                schrieb am zuletzt editiert von
                                #57

                                @jan1 Das skript sieht bei mir jetzt so aus:

                                <xml xmlns="https://developers.google.com/blockly/xml">
                                  <variables>
                                    <variable type="timeout" id="timeout3">timeout3</variable>
                                    <variable type="timeout" id="timeout4">timeout4</variable>
                                  </variables>
                                  <block type="on_ext" id="FB^,o-|.DkV*l1Zpw1ev" x="-487" y="88">
                                    <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="w]B4izL8Xi6Xis[a47]}">
                                        <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                                      </shadow>
                                    </value>
                                    <statement name="STATEMENT">
                                      <block type="controls_if" id="o9}:IIEo};jIF72b9AA.">
                                        <mutation elseif="1"></mutation>
                                        <value name="IF0">
                                          <block type="logic_operation" id="k/5vYdt)FO5#4fIMa~m;" inline="false">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_compare" id="ViV`%UQ}k~UPs7,j-ryV">
                                                <field name="OP">GTE</field>
                                                <value name="A">
                                                  <block type="on_source" id="u:72U[-3Dnb8^3xE,|!!">
                                                    <field name="ATTR">state.val</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="!{rp568)Xa_3X^/P-X67">
                                                    <field name="NUM">100</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="{T1t5z14z,+4|DC]gOXz">
                                                <field name="OP">LT</field>
                                                <value name="A">
                                                  <block type="on_source" id="=QYK}e_eO)R!UP9V$lM^">
                                                    <field name="ATTR">oldState.val</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="hLUSUOYJL$qWXsN7kTk8">
                                                    <field name="NUM">100</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="timeouts_cleartimeout" id="U_%ugF^L^YUcG@wP=]~Z">
                                            <field name="NAME">timeout4</field>
                                            <next>
                                              <block type="control" id="hZTA=BSjCVV{]?(0pVgY">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="R||h%3X{{l}e4p`%Yawz">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="timeouts_settimeout" id=".o~uvJbWt^KQ`oiI!e$!">
                                                    <field name="NAME">timeout4</field>
                                                    <field name="DELAY">30</field>
                                                    <field name="UNIT">min</field>
                                                    <statement name="STATEMENT">
                                                      <block type="control" id="4S}(|m-Kt)y5P9txPZ+I">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="}wd]{cXQ@x{`KvgI26LW">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <value name="IF1">
                                          <block type="logic_operation" id="!/F3qNm$R2Q]m/jo|f#T" inline="false">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_compare" id="iHA4@^BN{s/[}$=sq31n">
                                                <field name="OP">LTE</field>
                                                <value name="A">
                                                  <block type="on_source" id="gQBF^?(7;hKwq*ro`;LK">
                                                    <field name="ATTR">state.val</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="E1Co9VoP0Z]U].V}:dk6">
                                                    <field name="NUM">50</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="2[[fJeqHxkcfP[F^]I-Q">
                                                <field name="OP">GT</field>
                                                <value name="A">
                                                  <block type="on_source" id="f5IDFVCeLD}U6K[_XEG@">
                                                    <field name="ATTR">oldState.val</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="2k,M4Zr}0C_#uR%MuF|Q">
                                                    <field name="NUM">50</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO1">
                                          <block type="timeouts_cleartimeout" id="cL@Uuw#K=7Oj=lJL/W:h">
                                            <field name="NAME">timeout4</field>
                                            <next>
                                              <block type="control" id="dYN%$E|/?la90IKRz{*w">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="lU?:V,sk#5e#Zs@){!|m">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="debug" id=",qorWlCkGFLb!+WM7/rO">
                                            <field name="Severity">log</field>
                                            <value name="TEXT">
                                              <shadow type="text">
                                                <field name="TEXT">test</field>
                                              </shadow>
                                              <block type="text_join" id="8h9QE+{dve}o}{xFz4^/">
                                                <mutation items="2"></mutation>
                                                <value name="ADD0">
                                                  <block type="text" id="^^vC/IAZ$YnpMiFFn.nC">
                                                    <field name="TEXT">Watt:</field>
                                                  </block>
                                                </value>
                                                <value name="ADD1">
                                                  <block type="on_source" id="-bW!=3`GYzyDgu_1}k0G">
                                                    <field name="ATTR">state.val</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                  <block type="on_ext" id=")3Y6O)OSZ6,a.eId9_([" disabled="true" x="-487" y="688">
                                    <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="FB}qA2j)SArn`ar=BQ8z">
                                        <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                                      </shadow>
                                    </value>
                                    <statement name="STATEMENT">
                                      <block type="controls_if" id="nT8{B{T^As}6|P1eFdAp">
                                        <value name="IF0">
                                          <block type="logic_compare" id="h=ll3)j0~lH*]vID@v{h">
                                            <field name="OP">GTE</field>
                                            <value name="A">
                                              <block type="get_value" id="prv]M@]WP)O8k`WxQv,M">
                                                <field name="ATTR">val</field>
                                                <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="QWMd~%R.#BvSN.-Jr7|S">
                                                <field name="NUM">100</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="controls_if" id=";N~?jZO,:^+(B6c4+e.p">
                                            <value name="IF0">
                                              <block type="logic_compare" id="nLGp=iM$L~IydiZi8!Z?">
                                                <field name="OP">LTE</field>
                                                <value name="A">
                                                  <block type="get_value" id="#X;Nd8faxS1r?ibN,9Ur">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="3L+Hx`ZZZ[6;bcStTgXv">
                                                    <field name="NUM">50</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="timeouts_cleartimeout" id="s_tu+G)JzfXKRo!,-i?j">
                                                <field name="NAME">timeout3</field>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="timeouts_settimeout" id="|y|12`S1gi{?f|+:!d87">
                                                <field name="NAME">timeout3</field>
                                                <field name="DELAY">30</field>
                                                <field name="UNIT">min</field>
                                                <statement name="STATEMENT">
                                                  <block type="control" id="]:Q/hgD*3Ye$XrhiCKVK">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="]qeVb0?p3y!^dSP8T!{!">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="debug" id="jv2kcn+O#/wer{(+o+DW">
                                            <field name="Severity">log</field>
                                            <value name="TEXT">
                                              <shadow type="text">
                                                <field name="TEXT">test</field>
                                              </shadow>
                                              <block type="text_join" id="FXin0|uc^i=Wm;0R-Jtj">
                                                <mutation items="2"></mutation>
                                                <value name="ADD0">
                                                  <block type="text" id="Z##h?{^2;N/L6AAv4~..">
                                                    <field name="TEXT">Watt:</field>
                                                  </block>
                                                </value>
                                                <value name="ADD1">
                                                  <block type="on_source" id="t@LBx#Y!8Fv5({,pHM[,">
                                                    <field name="ATTR">state.val</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </xml>
                                
                                HomoranH 1 Antwort Letzte Antwort
                                0
                                • N nole

                                  @jan1 was sieht gut aus?

                                  J Offline
                                  J Offline
                                  Jan1
                                  schrieb am zuletzt editiert von
                                  #58

                                  @nole
                                  Das Blockly.
                                  Wurde auch etwas optimierte und wie man timeouts verwendet siehst ja. Es sollte immer ein stopp des timeouts davor erfolgen um sicher zu stellen, dass nicht genau dieser schon läuft, sonst passt die ein gestellte Zeit nie und man wundert sich, was exakt bei Dir zu Beginn der Grund Deiner Verwirrung war ;)

                                  N 2 Antworten Letzte Antwort
                                  0
                                  • J Jan1

                                    @nole
                                    Das Blockly.
                                    Wurde auch etwas optimierte und wie man timeouts verwendet siehst ja. Es sollte immer ein stopp des timeouts davor erfolgen um sicher zu stellen, dass nicht genau dieser schon läuft, sonst passt die ein gestellte Zeit nie und man wundert sich, was exakt bei Dir zu Beginn der Grund Deiner Verwirrung war ;)

                                    N Offline
                                    N Offline
                                    nole
                                    schrieb am zuletzt editiert von
                                    #59

                                    @jan1 ich arbeite mich gerade gedanklich durch das Blockly, ich habe dank euch allen heute einiges wichtige dazu gelernt. Vielen Dank an euch alle. Wenn alles läuft erfahrt ihr das natürlich. Ich gehe dann jetzt in die Testphase über.

                                    1 Antwort Letzte Antwort
                                    0
                                    • J Jan1

                                      @nole
                                      Das Blockly.
                                      Wurde auch etwas optimierte und wie man timeouts verwendet siehst ja. Es sollte immer ein stopp des timeouts davor erfolgen um sicher zu stellen, dass nicht genau dieser schon läuft, sonst passt die ein gestellte Zeit nie und man wundert sich, was exakt bei Dir zu Beginn der Grund Deiner Verwirrung war ;)

                                      N Offline
                                      N Offline
                                      nole
                                      schrieb am zuletzt editiert von
                                      #60

                                      @jan1 irgendwas stimmt noch nicht, ich weiß nur noch nicht was. Schaltet immer noch ohne erkennbaren Grund aus. Ich probiere den Fehler zu finden.

                                      HomoranH 1 Antwort Letzte Antwort
                                      0
                                      • N nole

                                        @jan1 Das skript sieht bei mir jetzt so aus:

                                        <xml xmlns="https://developers.google.com/blockly/xml">
                                          <variables>
                                            <variable type="timeout" id="timeout3">timeout3</variable>
                                            <variable type="timeout" id="timeout4">timeout4</variable>
                                          </variables>
                                          <block type="on_ext" id="FB^,o-|.DkV*l1Zpw1ev" x="-487" y="88">
                                            <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="w]B4izL8Xi6Xis[a47]}">
                                                <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                                              </shadow>
                                            </value>
                                            <statement name="STATEMENT">
                                              <block type="controls_if" id="o9}:IIEo};jIF72b9AA.">
                                                <mutation elseif="1"></mutation>
                                                <value name="IF0">
                                                  <block type="logic_operation" id="k/5vYdt)FO5#4fIMa~m;" inline="false">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="logic_compare" id="ViV`%UQ}k~UPs7,j-ryV">
                                                        <field name="OP">GTE</field>
                                                        <value name="A">
                                                          <block type="on_source" id="u:72U[-3Dnb8^3xE,|!!">
                                                            <field name="ATTR">state.val</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="!{rp568)Xa_3X^/P-X67">
                                                            <field name="NUM">100</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_compare" id="{T1t5z14z,+4|DC]gOXz">
                                                        <field name="OP">LT</field>
                                                        <value name="A">
                                                          <block type="on_source" id="=QYK}e_eO)R!UP9V$lM^">
                                                            <field name="ATTR">oldState.val</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="hLUSUOYJL$qWXsN7kTk8">
                                                            <field name="NUM">100</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="timeouts_cleartimeout" id="U_%ugF^L^YUcG@wP=]~Z">
                                                    <field name="NAME">timeout4</field>
                                                    <next>
                                                      <block type="control" id="hZTA=BSjCVV{]?(0pVgY">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="R||h%3X{{l}e4p`%Yawz">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="timeouts_settimeout" id=".o~uvJbWt^KQ`oiI!e$!">
                                                            <field name="NAME">timeout4</field>
                                                            <field name="DELAY">30</field>
                                                            <field name="UNIT">min</field>
                                                            <statement name="STATEMENT">
                                                              <block type="control" id="4S}(|m-Kt)y5P9txPZ+I">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="}wd]{cXQ@x{`KvgI26LW">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                                <value name="IF1">
                                                  <block type="logic_operation" id="!/F3qNm$R2Q]m/jo|f#T" inline="false">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="logic_compare" id="iHA4@^BN{s/[}$=sq31n">
                                                        <field name="OP">LTE</field>
                                                        <value name="A">
                                                          <block type="on_source" id="gQBF^?(7;hKwq*ro`;LK">
                                                            <field name="ATTR">state.val</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="E1Co9VoP0Z]U].V}:dk6">
                                                            <field name="NUM">50</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_compare" id="2[[fJeqHxkcfP[F^]I-Q">
                                                        <field name="OP">GT</field>
                                                        <value name="A">
                                                          <block type="on_source" id="f5IDFVCeLD}U6K[_XEG@">
                                                            <field name="ATTR">oldState.val</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="2k,M4Zr}0C_#uR%MuF|Q">
                                                            <field name="NUM">50</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO1">
                                                  <block type="timeouts_cleartimeout" id="cL@Uuw#K=7Oj=lJL/W:h">
                                                    <field name="NAME">timeout4</field>
                                                    <next>
                                                      <block type="control" id="dYN%$E|/?la90IKRz{*w">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="lU?:V,sk#5e#Zs@){!|m">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="debug" id=",qorWlCkGFLb!+WM7/rO">
                                                    <field name="Severity">log</field>
                                                    <value name="TEXT">
                                                      <shadow type="text">
                                                        <field name="TEXT">test</field>
                                                      </shadow>
                                                      <block type="text_join" id="8h9QE+{dve}o}{xFz4^/">
                                                        <mutation items="2"></mutation>
                                                        <value name="ADD0">
                                                          <block type="text" id="^^vC/IAZ$YnpMiFFn.nC">
                                                            <field name="TEXT">Watt:</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD1">
                                                          <block type="on_source" id="-bW!=3`GYzyDgu_1}k0G">
                                                            <field name="ATTR">state.val</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                          <block type="on_ext" id=")3Y6O)OSZ6,a.eId9_([" disabled="true" x="-487" y="688">
                                            <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="FB}qA2j)SArn`ar=BQ8z">
                                                <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                                              </shadow>
                                            </value>
                                            <statement name="STATEMENT">
                                              <block type="controls_if" id="nT8{B{T^As}6|P1eFdAp">
                                                <value name="IF0">
                                                  <block type="logic_compare" id="h=ll3)j0~lH*]vID@v{h">
                                                    <field name="OP">GTE</field>
                                                    <value name="A">
                                                      <block type="get_value" id="prv]M@]WP)O8k`WxQv,M">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number" id="QWMd~%R.#BvSN.-Jr7|S">
                                                        <field name="NUM">100</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="controls_if" id=";N~?jZO,:^+(B6c4+e.p">
                                                    <value name="IF0">
                                                      <block type="logic_compare" id="nLGp=iM$L~IydiZi8!Z?">
                                                        <field name="OP">LTE</field>
                                                        <value name="A">
                                                          <block type="get_value" id="#X;Nd8faxS1r?ibN,9Ur">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="3L+Hx`ZZZ[6;bcStTgXv">
                                                            <field name="NUM">50</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="timeouts_cleartimeout" id="s_tu+G)JzfXKRo!,-i?j">
                                                        <field name="NAME">timeout3</field>
                                                      </block>
                                                    </statement>
                                                    <next>
                                                      <block type="timeouts_settimeout" id="|y|12`S1gi{?f|+:!d87">
                                                        <field name="NAME">timeout3</field>
                                                        <field name="DELAY">30</field>
                                                        <field name="UNIT">min</field>
                                                        <statement name="STATEMENT">
                                                          <block type="control" id="]:Q/hgD*3Ye$XrhiCKVK">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="]qeVb0?p3y!^dSP8T!{!">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="debug" id="jv2kcn+O#/wer{(+o+DW">
                                                    <field name="Severity">log</field>
                                                    <value name="TEXT">
                                                      <shadow type="text">
                                                        <field name="TEXT">test</field>
                                                      </shadow>
                                                      <block type="text_join" id="FXin0|uc^i=Wm;0R-Jtj">
                                                        <mutation items="2"></mutation>
                                                        <value name="ADD0">
                                                          <block type="text" id="Z##h?{^2;N/L6AAv4~..">
                                                            <field name="TEXT">Watt:</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD1">
                                                          <block type="on_source" id="t@LBx#Y!8Fv5({,pHM[,">
                                                            <field name="ATTR">state.val</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </xml>
                                        
                                        HomoranH Nicht stören
                                        HomoranH Nicht stören
                                        Homoran
                                        Global Moderator Administrators
                                        schrieb am zuletzt editiert von
                                        #61

                                        @nole sagte in Trockenlaufschutz, Problem mit Blockly:

                                        Das skript sieht bei mir jetzt so aus:

                                        warum nie als screenshot??
                                        Am Handy nutzt der xml-Export rein gar nix

                                        kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                                        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                        der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                                        N 2 Antworten Letzte Antwort
                                        0
                                        • HomoranH Homoran

                                          @nole sagte in Trockenlaufschutz, Problem mit Blockly:

                                          Das skript sieht bei mir jetzt so aus:

                                          warum nie als screenshot??
                                          Am Handy nutzt der xml-Export rein gar nix

                                          N Offline
                                          N Offline
                                          nole
                                          schrieb am zuletzt editiert von
                                          #62

                                          @homoran Screenshot_2021-05-10 javascript - ioBroker(2).png

                                          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

                                          839

                                          Online

                                          32.5k

                                          Benutzer

                                          81.8k

                                          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