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. [gelöst]Trockenlaufschutz, Problem mit Blockly

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    16
    1
    332

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

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

[gelöst]Trockenlaufschutz, Problem mit Blockly

Scheduled Pinned Locked Moved Blockly
107 Posts 6 Posters 9.4k 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.
  • N nole

    @bbtown wenn ich auf die 3 Punkte gehe bekomme ich nicht das gleiche sondern was mit flags

    BBTownB Offline
    BBTownB Offline
    BBTown
    wrote on last edited by
    #41

    @nole
    dein innerer "falls" Block wird nie erreicht, da Du fragst ob der Wert >= 100 ist, kann er innerhalb dieser Frage ja niemals <=50 sein

    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 Reply Last reply
    0
    • N nole

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

      BBTownB Offline
      BBTownB Offline
      BBTown
      wrote on last edited by BBTown
      #42

      @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

      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 Reply Last reply
      0
      • N nole

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

        BBTownB Offline
        BBTownB Offline
        BBTown
        wrote on last edited by
        #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 Reply Last reply
        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
          wrote on last edited by
          #44

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

          BBTownB 1 Reply Last reply
          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
            wrote on last edited by 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 Replies Last reply
            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
              wrote on last edited by
              #46

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

              1 Reply Last reply
              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
                wrote on last edited by
                #47

                @bbtown kommt das durch das kopieren des Bausteins?

                BBTownB N 2 Replies Last reply
                0
                • N nole

                  @bbtown kommt das durch das kopieren des Bausteins?

                  BBTownB Offline
                  BBTownB Offline
                  BBTown
                  wrote on last edited by
                  #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 Reply Last reply
                  0
                  • N nole

                    @bbtown kommt das durch das kopieren des Bausteins?

                    N Offline
                    N Offline
                    nole
                    wrote on last edited by
                    #49

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

                    BBTownB 2 Replies Last reply
                    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
                      wrote on last edited by
                      #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 Reply Last reply
                      0
                      • BBTownB BBTown

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

                        N Offline
                        N Offline
                        nole
                        wrote on last edited by
                        #51

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

                        BBTownB J 2 Replies Last reply
                        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
                          wrote on last edited by
                          #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 Reply Last reply
                          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
                            wrote on last edited by
                            #53

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

                            1 Reply Last reply
                            0
                            • N nole

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

                              BBTownB Offline
                              BBTownB Offline
                              BBTown
                              wrote on last edited by
                              #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 Reply Last reply
                              0
                              • N nole

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

                                J Offline
                                J Offline
                                Jan1
                                wrote on last edited by
                                #55

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

                                N 2 Replies Last reply
                                0
                                • J Jan1

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

                                  N Offline
                                  N Offline
                                  nole
                                  wrote on last edited by
                                  #56

                                  @jan1 was sieht gut aus?

                                  J 1 Reply Last reply
                                  0
                                  • J Jan1

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

                                    N Offline
                                    N Offline
                                    nole
                                    wrote on last edited by
                                    #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 Reply Last reply
                                    0
                                    • N nole

                                      @jan1 was sieht gut aus?

                                      J Offline
                                      J Offline
                                      Jan1
                                      wrote on last edited by
                                      #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 Replies Last reply
                                      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
                                        wrote on last edited by
                                        #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 Reply Last reply
                                        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
                                          wrote on last edited by
                                          #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 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

                                          603

                                          Online

                                          32.7k

                                          Users

                                          82.5k

                                          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