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
    501

  • 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

    @bbtown Screenshot_2021-05-10 javascript - ioBroker(3).png

    Nein, kann er nicht. Desshalb manuell wieder einschalten.

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

    @nole Screenshot_2021-05-10 Tasmota - Hauptmenü.png

    1 Antwort Letzte Antwort
    0
    • N nole

      @bbtown Screenshot_2021-05-10 javascript - ioBroker(3).png

      Nein, kann er nicht. Desshalb manuell wieder einschalten.

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

      @nole Screenshot_2021-05-10 Tasmota - Hauptmenü(2).png

      Screenshot_2021-05-10 Tasmota - Hauptmenü(1).png

      1 Antwort Letzte Antwort
      0
      • N nole

        @homoran Ok, die Pumpe soll automatisch abgeschaltet werden wenn sie trocken läuft um dann mit Wasser aufgefüllt manuel am Sonoff PowR2 wieder eingeschaltet werden.
        Im Trockenlauf liegt die Pumpe zwischen 150 und 190 Watt.
        Im Normal Pumpbetrieb bei über 300 Watt, allerdings wenn die Pumpe bei erreichen des Wasserdrucks selber abschaltet werden noch ein paar Watt zwischen 4 und 15 angezeigt bis sie dann auf 0 Watt geht.
        Ich hatte jetzt mal folgendes Blockly gebastelt:

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable type="timeout" id="timeout5">timeout5</variable>
          </variables>
          <block type="on_ext" id="s@2OLG^WQ0Uz${3=]rcu" x="-487" y="963">
            <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
            <field name="CONDITION">any</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="Ai;g1E]yx1YU@CvQU0_?">
                <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="controls_if" id="BFG#q9C:Ry7e,fB1,ReS">
                <mutation elseif="1"></mutation>
                <value name="IF0">
                  <block type="logic_operation" id="}0|Ibdz}[$u!,s@1umt+" inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="umRBm=/5V?A]aGtdTt,(">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="on_source" id="iU5;dy./4gJ2yO1Yy,w,">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="pVQ+AKU+f$FBVl?7#xdZ">
                            <field name="NUM">51</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="rP:D]GlY.!b+*YH+yKGB">
                        <field name="OP">LT</field>
                        <value name="A">
                          <block type="on_source" id="v/2uJg+d3`wLl!~G*m!R">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="[XFgC?0]Uk+4ioWy$bh2">
                            <field name="NUM">190</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="timeouts_cleartimeout" id="NkHbFSo4*d9Q*`.:YX{(">
                    <field name="NAME">timeout5</field>
                    <next>
                      <block type="control" id="]Dno,P3;6dYZ:5Xp4;E`">
                        <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="%`XG|!/aW/;C[bnZj%8f">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                        <next>
                          <block type="timeouts_settimeout" id=",XnI}PNQCo`}8_M}Wh{8">
                            <field name="NAME">timeout5</field>
                            <field name="DELAY">30</field>
                            <field name="UNIT">min</field>
                            <statement name="STATEMENT">
                              <block type="control" id="KRlV$DRq[]=@3e6wW~^Y">
                                <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="1?u+p!PCnX{mK*+Fc.oY">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <value name="IF1">
                  <block type="logic_operation" id="@w,+i@%MeuH{lT)|XxBH" inline="false">
                    <field name="OP">OR</field>
                    <value name="A">
                      <block type="logic_compare" id="Lc64TT##]i[Mj0XMkJH(">
                        <field name="OP">LT</field>
                        <value name="A">
                          <block type="on_source" id="GYWZfP!GgQH)]K@e[h)6">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="EnF1k6FG|l{~tOj-bmV;">
                            <field name="NUM">50</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="O]kgyw2#SRIiy|f9Unv.">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="on_source" id="lG/{Z`298OF.VUq~Hhzr">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="h1;v$D/G!wHNBhYqBq;j">
                            <field name="NUM">191</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO1">
                  <block type="timeouts_cleartimeout" id="a4*9:he[uuWGBNB9E:#t">
                    <field name="NAME">timeout5</field>
                    <next>
                      <block type="control" id=")jNRwK{Uik_:R$lzdORT">
                        <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="vq-KULo#Tk?qM!WE^c[+">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="debug" id="hR+`P5qaHhOUzOb2oFF#">
                    <field name="Severity">log</field>
                    <value name="TEXT">
                      <shadow type="text" id="U9Upn~:#r}gU|h^9`RwR">
                        <field name="TEXT">test</field>
                      </shadow>
                      <block type="text_join" id="EjlpL|_8ocdIR=pUZ:GN">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="~W4iG)g]v[b--o;@IZE]">
                            <field name="TEXT">Watt:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="on_source" id="}^ELsWj}n/S7ee^X@lO1">
                            <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 Homoran
        #89

        @nole sagte in Trockenlaufschutz, Problem mit Blockly:

        manuel am Sonoff PowR2 wieder eingeschaltet werden.

        ok - das würde passen, bedingt aber, dass du rund um die Uhr zu Hause (oder wo auch immer) bist.

        @bbtown sagte in Trockenlaufschutz, Problem mit Blockly:

        Nach meinem Verständnis schaltest Du genau den Sonoff aus, der dir eigentlich erzählen soll wie hoch die Leistungsaufnahme eigentlich ist??

        Habe keine sonöffer, aber bei HM geht das. Auch wieder anschalten, denn..

        @nole sagte in Trockenlaufschutz, Problem mit Blockly:

        bzw ist die Leistung auf Null da ja kein Strom geschaltet ist. Nur der Sonoff hat noch seinen Betriebsstrom, aber die Watt-Anzeige ist dann Null.

        @nole
        dann bleibt noch die Frage, wann es zum Trockenlaufen kommen kann....

        @homoran sagte in Trockenlaufschutz, Problem mit Blockly:

        kann das auch passieren, dass die Pumpe anspringt ohne dass Wasser da ist?
        Oder nur, dass die Pumpe nicht ausgeht, nachdem sie gepumpt hat?

        Je nach Antwort muss man beide Richtungen überprüfen.
        Was soll denn der 30 minütige Timeout bewirken?

        EDIT:
        habe mal auf die Schnelle was gezimmert, daher ohne Gewähr:

        <xml xmlns="https://developers.google.com/blockly/xml">
         <variables>
           <variable type="timeout" id="timeout5">timeout5</variable>
         </variables>
         <block type="on_ext" id="s@2OLG^WQ0Uz${3=]rcu" x="-612" y="988">
           <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
           <field name="CONDITION">any</field>
           <field name="ACK_CONDITION"></field>
           <value name="OID0">
             <shadow type="field_oid" id="Ai;g1E]yx1YU@CvQU0_?">
               <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
             </shadow>
           </value>
           <statement name="STATEMENT">
             <block type="controls_if" id="BFG#q9C:Ry7e,fB1,ReS">
               <mutation elseif="1"></mutation>
               <value name="IF0">
                 <block type="logic_operation" id="}0|Ibdz}[$u!,s@1umt+" inline="false">
                   <field name="OP">AND</field>
                   <value name="A">
                     <block type="logic_operation" id="HcLYlw110lcoa+[bJiic" inline="false">
                       <field name="OP">AND</field>
                       <value name="A">
                         <block type="logic_compare" id=";:iZxAnV(DUx83Z-My`t">
                           <field name="OP">GT</field>
                           <value name="A">
                             <block type="on_source" id="!jv^imrvv}mH3o0|yq4|">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="+B,edY]WEOI62yLx%)zy">
                               <field name="NUM">51</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_compare" id="dh1?~QNf=KH})wRkSXkF">
                           <field name="OP">LT</field>
                           <value name="A">
                             <block type="on_source" id="-a^c~1OF?C8i`hb%/s:?">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="XOJDy:Kc3|Qt/(Ca{g#w">
                               <field name="NUM">191</field>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </value>
                   <value name="B">
                     <block type="logic_operation" id="HPTJU.`{@EsF[kNU8FJa" inline="false">
                       <field name="OP">OR</field>
                       <value name="A">
                         <block type="logic_compare" id="rP:D]GlY.!b+*YH+yKGB">
                           <field name="OP">LTE</field>
                           <value name="A">
                             <block type="on_source" id="v/2uJg+d3`wLl!~G*m!R">
                               <field name="ATTR">oldState.val</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="[XFgC?0]Uk+4ioWy$bh2">
                               <field name="NUM">51</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_compare" id=",5unido@lECrS#!RN*g8">
                           <field name="OP">GTE</field>
                           <value name="A">
                             <block type="on_source" id="4bUx+6~)2-ts(MLwf[`d">
                               <field name="ATTR">oldState.val</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id=":ekgh}?XC]^!)v[@C6Pp">
                               <field name="NUM">191</field>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </value>
                 </block>
               </value>
               <statement name="DO0">
                 <block type="timeouts_cleartimeout" id="NkHbFSo4*d9Q*`.:YX{(">
                   <field name="NAME">timeout5</field>
                   <next>
                     <block type="control" id="]Dno,P3;6dYZ:5Xp4;E`">
                       <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="%`XG|!/aW/;C[bnZj%8f">
                           <field name="BOOL">TRUE</field>
                         </block>
                       </value>
                       <next>
                         <block type="timeouts_settimeout" id=",XnI}PNQCo`}8_M}Wh{8">
                           <field name="NAME">timeout5</field>
                           <field name="DELAY">30</field>
                           <field name="UNIT">min</field>
                           <statement name="STATEMENT">
                             <block type="control" id="KRlV$DRq[]=@3e6wW~^Y">
                               <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="1?u+p!PCnX{mK*+Fc.oY">
                                   <field name="BOOL">FALSE</field>
                                 </block>
                               </value>
                             </block>
                           </statement>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </statement>
               <value name="IF1">
                 <block type="logic_operation" id="@w,+i@%MeuH{lT)|XxBH" inline="false">
                   <field name="OP">OR</field>
                   <value name="A">
                     <block type="logic_compare" id="Lc64TT##]i[Mj0XMkJH(">
                       <field name="OP">LT</field>
                       <value name="A">
                         <block type="on_source" id="GYWZfP!GgQH)]K@e[h)6">
                           <field name="ATTR">state.val</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="math_number" id="EnF1k6FG|l{~tOj-bmV;">
                           <field name="NUM">50</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <value name="B">
                     <block type="logic_compare" id="O]kgyw2#SRIiy|f9Unv.">
                       <field name="OP">GT</field>
                       <value name="A">
                         <block type="on_source" id="lG/{Z`298OF.VUq~Hhzr">
                           <field name="ATTR">state.val</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="math_number" id="h1;v$D/G!wHNBhYqBq;j">
                           <field name="NUM">191</field>
                         </block>
                       </value>
                     </block>
                   </value>
                 </block>
               </value>
               <statement name="DO1">
                 <block type="timeouts_cleartimeout" id="a4*9:he[uuWGBNB9E:#t">
                   <field name="NAME">timeout5</field>
                   <next>
                     <block type="control" id=")jNRwK{Uik_:R$lzdORT">
                       <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="vq-KULo#Tk?qM!WE^c[+">
                           <field name="BOOL">TRUE</field>
                         </block>
                       </value>
                     </block>
                   </next>
                 </block>
               </statement>
               <next>
                 <block type="debug" id="hR+`P5qaHhOUzOb2oFF#">
                   <field name="Severity">log</field>
                   <value name="TEXT">
                     <shadow type="text" id="U9Upn~:#r}gU|h^9`RwR">
                       <field name="TEXT">test</field>
                     </shadow>
                     <block type="text_join" id="EjlpL|_8ocdIR=pUZ:GN">
                       <mutation items="4"></mutation>
                       <value name="ADD0">
                         <block type="text" id="~W4iG)g]v[b--o;@IZE]">
                           <field name="TEXT">aktuelle Leistung: </field>
                         </block>
                       </value>
                       <value name="ADD1">
                         <block type="on_source" id="}^ELsWj}n/S7ee^X@lO1">
                           <field name="ATTR">state.val</field>
                         </block>
                       </value>
                       <value name="ADD2">
                         <block type="text" id="IN8j6{Ogxk|n.iT0%E2I">
                           <field name="TEXT">; bisherige Leistung: </field>
                         </block>
                       </value>
                       <value name="ADD3">
                         <block type="on_source" id="|$[suDq_C(nR[~^.,o+0">
                           <field name="ATTR">oldState.val</field>
                         </block>
                       </value>
                     </block>
                   </value>
                 </block>
               </next>
             </block>
           </statement>
         </block>
        </xml>
        

        EDIT2:

        dein steuere mit wahr/falsch ergibt in meinen Augen überhaupt keinen Sinn.
        Du schaltest die Pumpe doch manuell am Sonoff an.
        Was soll da noch anschalten?
        oder, wie schon @BBTown schrieb: Wie soll der Sonoff auf Leistungsänderung reagieren, wenn die Pumpe vorher aus war?

        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:

          manuel am Sonoff PowR2 wieder eingeschaltet werden.

          ok - das würde passen, bedingt aber, dass du rund um die Uhr zu Hause (oder wo auch immer) bist.

          @bbtown sagte in Trockenlaufschutz, Problem mit Blockly:

          Nach meinem Verständnis schaltest Du genau den Sonoff aus, der dir eigentlich erzählen soll wie hoch die Leistungsaufnahme eigentlich ist??

          Habe keine sonöffer, aber bei HM geht das. Auch wieder anschalten, denn..

          @nole sagte in Trockenlaufschutz, Problem mit Blockly:

          bzw ist die Leistung auf Null da ja kein Strom geschaltet ist. Nur der Sonoff hat noch seinen Betriebsstrom, aber die Watt-Anzeige ist dann Null.

          @nole
          dann bleibt noch die Frage, wann es zum Trockenlaufen kommen kann....

          @homoran sagte in Trockenlaufschutz, Problem mit Blockly:

          kann das auch passieren, dass die Pumpe anspringt ohne dass Wasser da ist?
          Oder nur, dass die Pumpe nicht ausgeht, nachdem sie gepumpt hat?

          Je nach Antwort muss man beide Richtungen überprüfen.
          Was soll denn der 30 minütige Timeout bewirken?

          EDIT:
          habe mal auf die Schnelle was gezimmert, daher ohne Gewähr:

          <xml xmlns="https://developers.google.com/blockly/xml">
           <variables>
             <variable type="timeout" id="timeout5">timeout5</variable>
           </variables>
           <block type="on_ext" id="s@2OLG^WQ0Uz${3=]rcu" x="-612" y="988">
             <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
             <field name="CONDITION">any</field>
             <field name="ACK_CONDITION"></field>
             <value name="OID0">
               <shadow type="field_oid" id="Ai;g1E]yx1YU@CvQU0_?">
                 <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
               </shadow>
             </value>
             <statement name="STATEMENT">
               <block type="controls_if" id="BFG#q9C:Ry7e,fB1,ReS">
                 <mutation elseif="1"></mutation>
                 <value name="IF0">
                   <block type="logic_operation" id="}0|Ibdz}[$u!,s@1umt+" inline="false">
                     <field name="OP">AND</field>
                     <value name="A">
                       <block type="logic_operation" id="HcLYlw110lcoa+[bJiic" inline="false">
                         <field name="OP">AND</field>
                         <value name="A">
                           <block type="logic_compare" id=";:iZxAnV(DUx83Z-My`t">
                             <field name="OP">GT</field>
                             <value name="A">
                               <block type="on_source" id="!jv^imrvv}mH3o0|yq4|">
                                 <field name="ATTR">state.val</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="math_number" id="+B,edY]WEOI62yLx%)zy">
                                 <field name="NUM">51</field>
                               </block>
                             </value>
                           </block>
                         </value>
                         <value name="B">
                           <block type="logic_compare" id="dh1?~QNf=KH})wRkSXkF">
                             <field name="OP">LT</field>
                             <value name="A">
                               <block type="on_source" id="-a^c~1OF?C8i`hb%/s:?">
                                 <field name="ATTR">state.val</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="math_number" id="XOJDy:Kc3|Qt/(Ca{g#w">
                                 <field name="NUM">191</field>
                               </block>
                             </value>
                           </block>
                         </value>
                       </block>
                     </value>
                     <value name="B">
                       <block type="logic_operation" id="HPTJU.`{@EsF[kNU8FJa" inline="false">
                         <field name="OP">OR</field>
                         <value name="A">
                           <block type="logic_compare" id="rP:D]GlY.!b+*YH+yKGB">
                             <field name="OP">LTE</field>
                             <value name="A">
                               <block type="on_source" id="v/2uJg+d3`wLl!~G*m!R">
                                 <field name="ATTR">oldState.val</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="math_number" id="[XFgC?0]Uk+4ioWy$bh2">
                                 <field name="NUM">51</field>
                               </block>
                             </value>
                           </block>
                         </value>
                         <value name="B">
                           <block type="logic_compare" id=",5unido@lECrS#!RN*g8">
                             <field name="OP">GTE</field>
                             <value name="A">
                               <block type="on_source" id="4bUx+6~)2-ts(MLwf[`d">
                                 <field name="ATTR">oldState.val</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="math_number" id=":ekgh}?XC]^!)v[@C6Pp">
                                 <field name="NUM">191</field>
                               </block>
                             </value>
                           </block>
                         </value>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="timeouts_cleartimeout" id="NkHbFSo4*d9Q*`.:YX{(">
                     <field name="NAME">timeout5</field>
                     <next>
                       <block type="control" id="]Dno,P3;6dYZ:5Xp4;E`">
                         <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="%`XG|!/aW/;C[bnZj%8f">
                             <field name="BOOL">TRUE</field>
                           </block>
                         </value>
                         <next>
                           <block type="timeouts_settimeout" id=",XnI}PNQCo`}8_M}Wh{8">
                             <field name="NAME">timeout5</field>
                             <field name="DELAY">30</field>
                             <field name="UNIT">min</field>
                             <statement name="STATEMENT">
                               <block type="control" id="KRlV$DRq[]=@3e6wW~^Y">
                                 <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="1?u+p!PCnX{mK*+Fc.oY">
                                     <field name="BOOL">FALSE</field>
                                   </block>
                                 </value>
                               </block>
                             </statement>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </statement>
                 <value name="IF1">
                   <block type="logic_operation" id="@w,+i@%MeuH{lT)|XxBH" inline="false">
                     <field name="OP">OR</field>
                     <value name="A">
                       <block type="logic_compare" id="Lc64TT##]i[Mj0XMkJH(">
                         <field name="OP">LT</field>
                         <value name="A">
                           <block type="on_source" id="GYWZfP!GgQH)]K@e[h)6">
                             <field name="ATTR">state.val</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="math_number" id="EnF1k6FG|l{~tOj-bmV;">
                             <field name="NUM">50</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <value name="B">
                       <block type="logic_compare" id="O]kgyw2#SRIiy|f9Unv.">
                         <field name="OP">GT</field>
                         <value name="A">
                           <block type="on_source" id="lG/{Z`298OF.VUq~Hhzr">
                             <field name="ATTR">state.val</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="math_number" id="h1;v$D/G!wHNBhYqBq;j">
                             <field name="NUM">191</field>
                           </block>
                         </value>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO1">
                   <block type="timeouts_cleartimeout" id="a4*9:he[uuWGBNB9E:#t">
                     <field name="NAME">timeout5</field>
                     <next>
                       <block type="control" id=")jNRwK{Uik_:R$lzdORT">
                         <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="vq-KULo#Tk?qM!WE^c[+">
                             <field name="BOOL">TRUE</field>
                           </block>
                         </value>
                       </block>
                     </next>
                   </block>
                 </statement>
                 <next>
                   <block type="debug" id="hR+`P5qaHhOUzOb2oFF#">
                     <field name="Severity">log</field>
                     <value name="TEXT">
                       <shadow type="text" id="U9Upn~:#r}gU|h^9`RwR">
                         <field name="TEXT">test</field>
                       </shadow>
                       <block type="text_join" id="EjlpL|_8ocdIR=pUZ:GN">
                         <mutation items="4"></mutation>
                         <value name="ADD0">
                           <block type="text" id="~W4iG)g]v[b--o;@IZE]">
                             <field name="TEXT">aktuelle Leistung: </field>
                           </block>
                         </value>
                         <value name="ADD1">
                           <block type="on_source" id="}^ELsWj}n/S7ee^X@lO1">
                             <field name="ATTR">state.val</field>
                           </block>
                         </value>
                         <value name="ADD2">
                           <block type="text" id="IN8j6{Ogxk|n.iT0%E2I">
                             <field name="TEXT">; bisherige Leistung: </field>
                           </block>
                         </value>
                         <value name="ADD3">
                           <block type="on_source" id="|$[suDq_C(nR[~^.,o+0">
                             <field name="ATTR">oldState.val</field>
                           </block>
                         </value>
                       </block>
                     </value>
                   </block>
                 </next>
               </block>
             </statement>
           </block>
          </xml>
          

          EDIT2:

          dein steuere mit wahr/falsch ergibt in meinen Augen überhaupt keinen Sinn.
          Du schaltest die Pumpe doch manuell am Sonoff an.
          Was soll da noch anschalten?
          oder, wie schon @BBTown schrieb: Wie soll der Sonoff auf Leistungsänderung reagieren, wenn die Pumpe vorher aus war?

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

          @homoran Das mit dem Trockenlauf liegt wohl an dem Einlass der Pumpe, da ist irgendwie ein stopfen der hochgedrückt wird. Ich vermute das die dazugehörige Feder nicht mehr ok ist. Der Handwerker sagt aber ok.
          Nachfolgendes Bild bei Trockenlauf gerade eben. Pumpe wird wohl scheinbar abgeschaltet, das Skript schaltet sie dann aber wieder ein.Screenshot_2021-05-10 Tasmota - Hauptmenü(3).png

          HomoranH 2 Antworten Letzte Antwort
          0
          • HomoranH Homoran

            @nole sagte in Trockenlaufschutz, Problem mit Blockly:

            manuel am Sonoff PowR2 wieder eingeschaltet werden.

            ok - das würde passen, bedingt aber, dass du rund um die Uhr zu Hause (oder wo auch immer) bist.

            @bbtown sagte in Trockenlaufschutz, Problem mit Blockly:

            Nach meinem Verständnis schaltest Du genau den Sonoff aus, der dir eigentlich erzählen soll wie hoch die Leistungsaufnahme eigentlich ist??

            Habe keine sonöffer, aber bei HM geht das. Auch wieder anschalten, denn..

            @nole sagte in Trockenlaufschutz, Problem mit Blockly:

            bzw ist die Leistung auf Null da ja kein Strom geschaltet ist. Nur der Sonoff hat noch seinen Betriebsstrom, aber die Watt-Anzeige ist dann Null.

            @nole
            dann bleibt noch die Frage, wann es zum Trockenlaufen kommen kann....

            @homoran sagte in Trockenlaufschutz, Problem mit Blockly:

            kann das auch passieren, dass die Pumpe anspringt ohne dass Wasser da ist?
            Oder nur, dass die Pumpe nicht ausgeht, nachdem sie gepumpt hat?

            Je nach Antwort muss man beide Richtungen überprüfen.
            Was soll denn der 30 minütige Timeout bewirken?

            EDIT:
            habe mal auf die Schnelle was gezimmert, daher ohne Gewähr:

            <xml xmlns="https://developers.google.com/blockly/xml">
             <variables>
               <variable type="timeout" id="timeout5">timeout5</variable>
             </variables>
             <block type="on_ext" id="s@2OLG^WQ0Uz${3=]rcu" x="-612" y="988">
               <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
               <field name="CONDITION">any</field>
               <field name="ACK_CONDITION"></field>
               <value name="OID0">
                 <shadow type="field_oid" id="Ai;g1E]yx1YU@CvQU0_?">
                   <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                 </shadow>
               </value>
               <statement name="STATEMENT">
                 <block type="controls_if" id="BFG#q9C:Ry7e,fB1,ReS">
                   <mutation elseif="1"></mutation>
                   <value name="IF0">
                     <block type="logic_operation" id="}0|Ibdz}[$u!,s@1umt+" inline="false">
                       <field name="OP">AND</field>
                       <value name="A">
                         <block type="logic_operation" id="HcLYlw110lcoa+[bJiic" inline="false">
                           <field name="OP">AND</field>
                           <value name="A">
                             <block type="logic_compare" id=";:iZxAnV(DUx83Z-My`t">
                               <field name="OP">GT</field>
                               <value name="A">
                                 <block type="on_source" id="!jv^imrvv}mH3o0|yq4|">
                                   <field name="ATTR">state.val</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="math_number" id="+B,edY]WEOI62yLx%)zy">
                                   <field name="NUM">51</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <value name="B">
                             <block type="logic_compare" id="dh1?~QNf=KH})wRkSXkF">
                               <field name="OP">LT</field>
                               <value name="A">
                                 <block type="on_source" id="-a^c~1OF?C8i`hb%/s:?">
                                   <field name="ATTR">state.val</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="math_number" id="XOJDy:Kc3|Qt/(Ca{g#w">
                                   <field name="NUM">191</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_operation" id="HPTJU.`{@EsF[kNU8FJa" inline="false">
                           <field name="OP">OR</field>
                           <value name="A">
                             <block type="logic_compare" id="rP:D]GlY.!b+*YH+yKGB">
                               <field name="OP">LTE</field>
                               <value name="A">
                                 <block type="on_source" id="v/2uJg+d3`wLl!~G*m!R">
                                   <field name="ATTR">oldState.val</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="math_number" id="[XFgC?0]Uk+4ioWy$bh2">
                                   <field name="NUM">51</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <value name="B">
                             <block type="logic_compare" id=",5unido@lECrS#!RN*g8">
                               <field name="OP">GTE</field>
                               <value name="A">
                                 <block type="on_source" id="4bUx+6~)2-ts(MLwf[`d">
                                   <field name="ATTR">oldState.val</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="math_number" id=":ekgh}?XC]^!)v[@C6Pp">
                                   <field name="NUM">191</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="timeouts_cleartimeout" id="NkHbFSo4*d9Q*`.:YX{(">
                       <field name="NAME">timeout5</field>
                       <next>
                         <block type="control" id="]Dno,P3;6dYZ:5Xp4;E`">
                           <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="%`XG|!/aW/;C[bnZj%8f">
                               <field name="BOOL">TRUE</field>
                             </block>
                           </value>
                           <next>
                             <block type="timeouts_settimeout" id=",XnI}PNQCo`}8_M}Wh{8">
                               <field name="NAME">timeout5</field>
                               <field name="DELAY">30</field>
                               <field name="UNIT">min</field>
                               <statement name="STATEMENT">
                                 <block type="control" id="KRlV$DRq[]=@3e6wW~^Y">
                                   <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="1?u+p!PCnX{mK*+Fc.oY">
                                       <field name="BOOL">FALSE</field>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <value name="IF1">
                     <block type="logic_operation" id="@w,+i@%MeuH{lT)|XxBH" inline="false">
                       <field name="OP">OR</field>
                       <value name="A">
                         <block type="logic_compare" id="Lc64TT##]i[Mj0XMkJH(">
                           <field name="OP">LT</field>
                           <value name="A">
                             <block type="on_source" id="GYWZfP!GgQH)]K@e[h)6">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="EnF1k6FG|l{~tOj-bmV;">
                               <field name="NUM">50</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_compare" id="O]kgyw2#SRIiy|f9Unv.">
                           <field name="OP">GT</field>
                           <value name="A">
                             <block type="on_source" id="lG/{Z`298OF.VUq~Hhzr">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="h1;v$D/G!wHNBhYqBq;j">
                               <field name="NUM">191</field>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO1">
                     <block type="timeouts_cleartimeout" id="a4*9:he[uuWGBNB9E:#t">
                       <field name="NAME">timeout5</field>
                       <next>
                         <block type="control" id=")jNRwK{Uik_:R$lzdORT">
                           <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="vq-KULo#Tk?qM!WE^c[+">
                               <field name="BOOL">TRUE</field>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <next>
                     <block type="debug" id="hR+`P5qaHhOUzOb2oFF#">
                       <field name="Severity">log</field>
                       <value name="TEXT">
                         <shadow type="text" id="U9Upn~:#r}gU|h^9`RwR">
                           <field name="TEXT">test</field>
                         </shadow>
                         <block type="text_join" id="EjlpL|_8ocdIR=pUZ:GN">
                           <mutation items="4"></mutation>
                           <value name="ADD0">
                             <block type="text" id="~W4iG)g]v[b--o;@IZE]">
                               <field name="TEXT">aktuelle Leistung: </field>
                             </block>
                           </value>
                           <value name="ADD1">
                             <block type="on_source" id="}^ELsWj}n/S7ee^X@lO1">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                           <value name="ADD2">
                             <block type="text" id="IN8j6{Ogxk|n.iT0%E2I">
                               <field name="TEXT">; bisherige Leistung: </field>
                             </block>
                           </value>
                           <value name="ADD3">
                             <block type="on_source" id="|$[suDq_C(nR[~^.,o+0">
                               <field name="ATTR">oldState.val</field>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </next>
                 </block>
               </statement>
             </block>
            </xml>
            

            EDIT2:

            dein steuere mit wahr/falsch ergibt in meinen Augen überhaupt keinen Sinn.
            Du schaltest die Pumpe doch manuell am Sonoff an.
            Was soll da noch anschalten?
            oder, wie schon @BBTown schrieb: Wie soll der Sonoff auf Leistungsänderung reagieren, wenn die Pumpe vorher aus war?

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

            @homoran werde ich mir gleich ansehen, muß erstmal Wasser auffüllen.

            1 Antwort Letzte Antwort
            0
            • N nole

              @homoran Das mit dem Trockenlauf liegt wohl an dem Einlass der Pumpe, da ist irgendwie ein stopfen der hochgedrückt wird. Ich vermute das die dazugehörige Feder nicht mehr ok ist. Der Handwerker sagt aber ok.
              Nachfolgendes Bild bei Trockenlauf gerade eben. Pumpe wird wohl scheinbar abgeschaltet, das Skript schaltet sie dann aber wieder ein.Screenshot_2021-05-10 Tasmota - Hauptmenü(3).png

              HomoranH Nicht stören
              HomoranH Nicht stören
              Homoran
              Global Moderator Administrators
              schrieb am zuletzt editiert von
              #92

              @nole sagte in Trockenlaufschutz, Problem mit Blockly:

              Das mit dem Trockenlauf liegt wohl an dem Einlass der Pumpe, da ist irgendwie ein stopfen der hochgedrückt wird. Ich vermute das die dazugehörige Feder nicht mehr ok ist. Der Handwerker sagt aber ok.

              Was hat das jetzt mit dem Skript zu tun?

              Bitte gehe das Skript mal ganz neu strukturiert an. Das ist bei Logikoperationen unabdingbar.
              Hier geht es schon viel zu lange immer wieder kreuz und quer ohne Struktur!

              Beispiel/Grundlage:
              normale Funktion eines Hauswasserwerks:

              • Stromzufuhr an
              • Druck baut sich auf
                • Leistung 200-300 W
              • Druck erreicht
                • Pumpe schaltet ab
                • Leistung 0

              Nimm dies mal als Grundlage und schreibe an den entsprechenden Stellen dazu was

              • passieren kann
              • du von dem Skript an diesen Stellen für Aktionen erwartest.

              So kann ich z.B. überhaupt nicht nachvollziehen, warum du bei Druck erreicht - Leistung 0 den Strom abschalten willst?

              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 1 Antwort Letzte Antwort
              0
              • N nole

                @homoran Das mit dem Trockenlauf liegt wohl an dem Einlass der Pumpe, da ist irgendwie ein stopfen der hochgedrückt wird. Ich vermute das die dazugehörige Feder nicht mehr ok ist. Der Handwerker sagt aber ok.
                Nachfolgendes Bild bei Trockenlauf gerade eben. Pumpe wird wohl scheinbar abgeschaltet, das Skript schaltet sie dann aber wieder ein.Screenshot_2021-05-10 Tasmota - Hauptmenü(3).png

                HomoranH Nicht stören
                HomoranH Nicht stören
                Homoran
                Global Moderator Administrators
                schrieb am zuletzt editiert von
                #93

                @nole sagte in Trockenlaufschutz, Problem mit Blockly:

                das Skript schaltet sie dann aber wieder ein

                das ist ja was ich schreibe!

                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 1 Antwort Letzte Antwort
                0
                • HomoranH Homoran

                  @nole sagte in Trockenlaufschutz, Problem mit Blockly:

                  Das mit dem Trockenlauf liegt wohl an dem Einlass der Pumpe, da ist irgendwie ein stopfen der hochgedrückt wird. Ich vermute das die dazugehörige Feder nicht mehr ok ist. Der Handwerker sagt aber ok.

                  Was hat das jetzt mit dem Skript zu tun?

                  Bitte gehe das Skript mal ganz neu strukturiert an. Das ist bei Logikoperationen unabdingbar.
                  Hier geht es schon viel zu lange immer wieder kreuz und quer ohne Struktur!

                  Beispiel/Grundlage:
                  normale Funktion eines Hauswasserwerks:

                  • Stromzufuhr an
                  • Druck baut sich auf
                    • Leistung 200-300 W
                  • Druck erreicht
                    • Pumpe schaltet ab
                    • Leistung 0

                  Nimm dies mal als Grundlage und schreibe an den entsprechenden Stellen dazu was

                  • passieren kann
                  • du von dem Skript an diesen Stellen für Aktionen erwartest.

                  So kann ich z.B. überhaupt nicht nachvollziehen, warum du bei Druck erreicht - Leistung 0 den Strom abschalten willst?

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

                  @homoran Ich möchte bei Leistung 0 nicht den Strom abschalten, der soll nur abgeschaltet werden wenn die Pumpe sich im Trockenlauf befindet da in der Pumpe kein Wasser mehr ist. Dann kann ich Wasser nachfüllen und den Strom vom Sonoff zur Pumpe am Sonoff bzw iobroker oder web wieder einschalten und die Pumpe nimmt keinen Schaden. Ansonsten soll der Strom immer zur Pumpe durchgeschaltet sein damit diese immer im Standby ist und bei Bedarf den Wasserdruck wieder aufbauen kann. Also bei Leistung 0 ist die Pumpe im Standby sofern das Skript den Strom zur Pumpe gekappt hat weil die Pumpe im Trockenlauf war.

                  HomoranH 1 Antwort Letzte Antwort
                  0
                  • HomoranH Homoran

                    @nole sagte in Trockenlaufschutz, Problem mit Blockly:

                    das Skript schaltet sie dann aber wieder ein

                    das ist ja was ich schreibe!

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

                    @homoran wenn ich bei dem Skript den sonst falls Teil weglasse sollte das doch gehen, oder liege ich da falsch?

                    1 Antwort Letzte Antwort
                    0
                    • N nole

                      @homoran Ich möchte bei Leistung 0 nicht den Strom abschalten, der soll nur abgeschaltet werden wenn die Pumpe sich im Trockenlauf befindet da in der Pumpe kein Wasser mehr ist. Dann kann ich Wasser nachfüllen und den Strom vom Sonoff zur Pumpe am Sonoff bzw iobroker oder web wieder einschalten und die Pumpe nimmt keinen Schaden. Ansonsten soll der Strom immer zur Pumpe durchgeschaltet sein damit diese immer im Standby ist und bei Bedarf den Wasserdruck wieder aufbauen kann. Also bei Leistung 0 ist die Pumpe im Standby sofern das Skript den Strom zur Pumpe gekappt hat weil die Pumpe im Trockenlauf war.

                      HomoranH Nicht stören
                      HomoranH Nicht stören
                      Homoran
                      Global Moderator Administrators
                      schrieb am zuletzt editiert von
                      #96

                      @nole sagte in Trockenlaufschutz, Problem mit Blockly:

                      Ich möchte bei Leistung 0 nicht den Strom abschalten, der soll nur abgeschaltet werden wenn die Pumpe sich im Trockenlauf befindet

                      Mir ist das klar, wie es laufen sollte.
                      Leider habe ich immer noch nicht alle Informationen.

                      So kommen wir nicht weiter.

                      Beantworte bitte alle offenen Fragen

                      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 1 Antwort Letzte Antwort
                      0
                      • HomoranH Homoran

                        @nole sagte in Trockenlaufschutz, Problem mit Blockly:

                        Ich möchte bei Leistung 0 nicht den Strom abschalten, der soll nur abgeschaltet werden wenn die Pumpe sich im Trockenlauf befindet

                        Mir ist das klar, wie es laufen sollte.
                        Leider habe ich immer noch nicht alle Informationen.

                        So kommen wir nicht weiter.

                        Beantworte bitte alle offenen Fragen

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

                        @homoran Mache ich, aber das muß ich jetzt leider auf morgen verschieben. Ich werde mir morgen früh deinen Vorschlag ansehen und deine Fragen beantworten. Heute sehe ich glaube ich vor lauter Bäumen den Wald nicht mehr. Bis morgen und schonmal vielen herzlichen Dank

                        HomoranH 2 Antworten Letzte Antwort
                        0
                        • N nole

                          @homoran Mache ich, aber das muß ich jetzt leider auf morgen verschieben. Ich werde mir morgen früh deinen Vorschlag ansehen und deine Fragen beantworten. Heute sehe ich glaube ich vor lauter Bäumen den Wald nicht mehr. Bis morgen und schonmal vielen herzlichen Dank

                          HomoranH Nicht stören
                          HomoranH Nicht stören
                          Homoran
                          Global Moderator Administrators
                          schrieb am zuletzt editiert von
                          #98

                          @nole
                          noch mal das wichtigste:
                          Trockenlauf01.png

                          Da ist aber noch einiges weiteres offen!

                          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 -

                          1 Antwort Letzte Antwort
                          0
                          • N nole

                            @homoran Mache ich, aber das muß ich jetzt leider auf morgen verschieben. Ich werde mir morgen früh deinen Vorschlag ansehen und deine Fragen beantworten. Heute sehe ich glaube ich vor lauter Bäumen den Wald nicht mehr. Bis morgen und schonmal vielen herzlichen Dank

                            HomoranH Nicht stören
                            HomoranH Nicht stören
                            Homoran
                            Global Moderator Administrators
                            schrieb am zuletzt editiert von Homoran
                            #99

                            @nole letzter Versuch ohne vollständige Informationen:
                            Trockenlauf02.png

                            alles in meinen Augen nicht notwendige deaktiviert und den timeout auf 3 Min gekürzt

                            <xml xmlns="https://developers.google.com/blockly/xml">
                             <variables>
                               <variable type="timeout" id="timeout5">timeout5</variable>
                             </variables>
                             <block type="on_ext" id="s@2OLG^WQ0Uz${3=]rcu" x="-612" y="988">
                               <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="Ai;g1E]yx1YU@CvQU0_?">
                                   <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                                 </shadow>
                               </value>
                               <statement name="STATEMENT">
                                 <block type="controls_if" id="BFG#q9C:Ry7e,fB1,ReS">
                                   <mutation elseif="1"></mutation>
                                   <value name="IF0">
                                     <block type="logic_operation" id="}0|Ibdz}[$u!,s@1umt+" inline="false">
                                       <field name="OP">AND</field>
                                       <value name="A">
                                         <block type="logic_operation" id="HcLYlw110lcoa+[bJiic" inline="false">
                                           <field name="OP">AND</field>
                                           <value name="A">
                                             <block type="logic_compare" id=";:iZxAnV(DUx83Z-My`t">
                                               <field name="OP">GT</field>
                                               <value name="A">
                                                 <block type="on_source" id="!jv^imrvv}mH3o0|yq4|">
                                                   <field name="ATTR">state.val</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="math_number" id="+B,edY]WEOI62yLx%)zy">
                                                   <field name="NUM">51</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="logic_compare" id="dh1?~QNf=KH})wRkSXkF">
                                               <field name="OP">LT</field>
                                               <value name="A">
                                                 <block type="on_source" id="-a^c~1OF?C8i`hb%/s:?">
                                                   <field name="ATTR">state.val</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="math_number" id="XOJDy:Kc3|Qt/(Ca{g#w">
                                                   <field name="NUM">191</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="logic_operation" id="HPTJU.`{@EsF[kNU8FJa" inline="false">
                                           <field name="OP">OR</field>
                                           <value name="A">
                                             <block type="logic_compare" id="rP:D]GlY.!b+*YH+yKGB">
                                               <field name="OP">LTE</field>
                                               <value name="A">
                                                 <block type="on_source" id="v/2uJg+d3`wLl!~G*m!R">
                                                   <field name="ATTR">oldState.val</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="math_number" id="[XFgC?0]Uk+4ioWy$bh2">
                                                   <field name="NUM">51</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="logic_compare" id=",5unido@lECrS#!RN*g8">
                                               <field name="OP">GTE</field>
                                               <value name="A">
                                                 <block type="on_source" id="4bUx+6~)2-ts(MLwf[`d">
                                                   <field name="ATTR">oldState.val</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="math_number" id=":ekgh}?XC]^!)v[@C6Pp">
                                                   <field name="NUM">191</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="timeouts_cleartimeout" id="NkHbFSo4*d9Q*`.:YX{(">
                                       <field name="NAME">timeout5</field>
                                       <next>
                                         <block type="control" id="]Dno,P3;6dYZ:5Xp4;E`" disabled="true">
                                           <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="%`XG|!/aW/;C[bnZj%8f">
                                               <field name="BOOL">TRUE</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="timeouts_settimeout" id=",XnI}PNQCo`}8_M}Wh{8">
                                               <field name="NAME">timeout5</field>
                                               <field name="DELAY">3</field>
                                               <field name="UNIT">min</field>
                                               <statement name="STATEMENT">
                                                 <block type="control" id="KRlV$DRq[]=@3e6wW~^Y">
                                                   <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="1?u+p!PCnX{mK*+Fc.oY">
                                                       <field name="BOOL">FALSE</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </statement>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                   <value name="IF1">
                                     <block type="logic_operation" id="@w,+i@%MeuH{lT)|XxBH" inline="false">
                                       <field name="OP">OR</field>
                                       <value name="A">
                                         <block type="logic_compare" id="Lc64TT##]i[Mj0XMkJH(">
                                           <field name="OP">LT</field>
                                           <value name="A">
                                             <block type="on_source" id="GYWZfP!GgQH)]K@e[h)6">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="math_number" id="EnF1k6FG|l{~tOj-bmV;">
                                               <field name="NUM">50</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="logic_compare" id="O]kgyw2#SRIiy|f9Unv.">
                                           <field name="OP">GT</field>
                                           <value name="A">
                                             <block type="on_source" id="lG/{Z`298OF.VUq~Hhzr">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="math_number" id="h1;v$D/G!wHNBhYqBq;j">
                                               <field name="NUM">191</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO1">
                                     <block type="timeouts_cleartimeout" id="a4*9:he[uuWGBNB9E:#t">
                                       <field name="NAME">timeout5</field>
                                       <next>
                                         <block type="control" id=")jNRwK{Uik_:R$lzdORT" disabled="true">
                                           <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="vq-KULo#Tk?qM!WE^c[+">
                                               <field name="BOOL">TRUE</field>
                                             </block>
                                           </value>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                   <next>
                                     <block type="debug" id="hR+`P5qaHhOUzOb2oFF#">
                                       <field name="Severity">log</field>
                                       <value name="TEXT">
                                         <shadow type="text" id="U9Upn~:#r}gU|h^9`RwR">
                                           <field name="TEXT">test</field>
                                         </shadow>
                                         <block type="text_join" id="EjlpL|_8ocdIR=pUZ:GN">
                                           <mutation items="4"></mutation>
                                           <value name="ADD0">
                                             <block type="text" id="~W4iG)g]v[b--o;@IZE]">
                                               <field name="TEXT">aktuelle Leistung: </field>
                                             </block>
                                           </value>
                                           <value name="ADD1">
                                             <block type="on_source" id="}^ELsWj}n/S7ee^X@lO1">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                           <value name="ADD2">
                                             <block type="text" id="IN8j6{Ogxk|n.iT0%E2I">
                                               <field name="TEXT">; bisherige Leistung: </field>
                                             </block>
                                           </value>
                                           <value name="ADD3">
                                             <block type="on_source" id="|$[suDq_C(nR[~^.,o+0">
                                               <field name="ATTR">oldState.val</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                            </xml>
                            

                            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 1 Antwort Letzte Antwort
                            0
                            • BBTownB BBTown

                              @nole kann man bei deinem Sonoff Schalter auch dann noch die Leistung erfassen/ablesen, wenn dieser ausgeschaltet ist?

                              Nach meinem Verständnis schaltest Du genau den Sonoff aus, der dir eigentlich erzählen soll wie hoch die Leistungsaufnahme eigentlich ist??

                              sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power
                              sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER
                              
                              N Offline
                              N Offline
                              nole
                              schrieb am zuletzt editiert von
                              #100

                              @bbtown Der Sonoff wird nicht ausgeschaltet, der Sonoff unterbricht den Strom zur Pumpe. Somit wird auch kein Watt verbraucht.
                              ich habe jetzt folgendes Skript im Testlauf

                              <xml xmlns="https://developers.google.com/blockly/xml">
                                <variables>
                                  <variable type="timeout" id="timeout6">timeout6</variable>
                                </variables>
                                <block type="comment" id="*y5gM_Yt$M=}Z4MSw|$." x="-587" y="1213">
                                  <field name="COMMENT">Trockenlaufschutz</field>
                                  <next>
                                    <block type="on_ext" id="~gu9.*D}mpMz~aX}kpUK">
                                      <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="VQO7,Q*ctQ$M8z$0]T/R">
                                          <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                                        </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                        <block type="controls_if" id="5G3@1QNij/L%k?9}TpbK">
                                          <mutation elseif="1"></mutation>
                                          <value name="IF0">
                                            <block type="logic_operation" id="s?fR1Kse-kjW_QO7C3MW" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="[[h~7hIX=MsyQR.gLg4z">
                                                  <field name="OP">GT</field>
                                                  <value name="A">
                                                    <block type="on_source" id="qZ07u5a3~-hJ_$(vJ`2X">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id=":_u[TZOf8Qj@#K|wpIM6">
                                                      <field name="NUM">100</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="COqKZpMT-,`W$Gsl6^u`">
                                                  <field name="OP">LT</field>
                                                  <value name="A">
                                                    <block type="on_source" id="^@)5zf_lP=_]B*a_Vg+f">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="j#wOLd23;j_AO(vH}$8~">
                                                      <field name="NUM">190</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="timeouts_cleartimeout" id="{TkW[${#W4eJ`wu)rMS{">
                                              <field name="NAME">timeout6</field>
                                              <next>
                                                <block type="timeouts_settimeout" id="y/cDU3$KW1l4._9Pm4rn">
                                                  <field name="NAME">timeout6</field>
                                                  <field name="DELAY">5</field>
                                                  <field name="UNIT">min</field>
                                                  <statement name="STATEMENT">
                                                    <block type="control" id="$(!L(_zS|YRfYooi)((`">
                                                      <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="5oA+@|b_CmmC%@|:LJ-s">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                          <value name="IF1">
                                            <block type="logic_operation" id="1rH+I#hCIlg#9c}XAbpk" inline="false">
                                              <field name="OP">OR</field>
                                              <value name="A">
                                                <block type="logic_compare" id="4W9.|D43T3Y1-j=OZSbm">
                                                  <field name="OP">LT</field>
                                                  <value name="A">
                                                    <block type="on_source" id="O.ape@jY+`Z]d|cJU,;X">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="K:_}E+H5Y!!m{sun3_7h">
                                                      <field name="NUM">100</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="BpQfjtJ%Qv+lA2ztdyhI">
                                                  <field name="OP">GT</field>
                                                  <value name="A">
                                                    <block type="on_source" id="ZDZ8F=8@D84u[Pqzo~*(">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="4~$Ds9H,/o3*%GK$G^#O">
                                                      <field name="NUM">190</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO1">
                                            <block type="timeouts_cleartimeout" id="P}-=0PXSIC:|(-KyxUy(">
                                              <field name="NAME">timeout6</field>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </xml>
                              
                              1 Antwort Letzte Antwort
                              0
                              • HomoranH Homoran

                                @nole letzter Versuch ohne vollständige Informationen:
                                Trockenlauf02.png

                                alles in meinen Augen nicht notwendige deaktiviert und den timeout auf 3 Min gekürzt

                                <xml xmlns="https://developers.google.com/blockly/xml">
                                 <variables>
                                   <variable type="timeout" id="timeout5">timeout5</variable>
                                 </variables>
                                 <block type="on_ext" id="s@2OLG^WQ0Uz${3=]rcu" x="-612" y="988">
                                   <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="Ai;g1E]yx1YU@CvQU0_?">
                                       <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                                     </shadow>
                                   </value>
                                   <statement name="STATEMENT">
                                     <block type="controls_if" id="BFG#q9C:Ry7e,fB1,ReS">
                                       <mutation elseif="1"></mutation>
                                       <value name="IF0">
                                         <block type="logic_operation" id="}0|Ibdz}[$u!,s@1umt+" inline="false">
                                           <field name="OP">AND</field>
                                           <value name="A">
                                             <block type="logic_operation" id="HcLYlw110lcoa+[bJiic" inline="false">
                                               <field name="OP">AND</field>
                                               <value name="A">
                                                 <block type="logic_compare" id=";:iZxAnV(DUx83Z-My`t">
                                                   <field name="OP">GT</field>
                                                   <value name="A">
                                                     <block type="on_source" id="!jv^imrvv}mH3o0|yq4|">
                                                       <field name="ATTR">state.val</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="math_number" id="+B,edY]WEOI62yLx%)zy">
                                                       <field name="NUM">51</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="logic_compare" id="dh1?~QNf=KH})wRkSXkF">
                                                   <field name="OP">LT</field>
                                                   <value name="A">
                                                     <block type="on_source" id="-a^c~1OF?C8i`hb%/s:?">
                                                       <field name="ATTR">state.val</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="math_number" id="XOJDy:Kc3|Qt/(Ca{g#w">
                                                       <field name="NUM">191</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="logic_operation" id="HPTJU.`{@EsF[kNU8FJa" inline="false">
                                               <field name="OP">OR</field>
                                               <value name="A">
                                                 <block type="logic_compare" id="rP:D]GlY.!b+*YH+yKGB">
                                                   <field name="OP">LTE</field>
                                                   <value name="A">
                                                     <block type="on_source" id="v/2uJg+d3`wLl!~G*m!R">
                                                       <field name="ATTR">oldState.val</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="math_number" id="[XFgC?0]Uk+4ioWy$bh2">
                                                       <field name="NUM">51</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="logic_compare" id=",5unido@lECrS#!RN*g8">
                                                   <field name="OP">GTE</field>
                                                   <value name="A">
                                                     <block type="on_source" id="4bUx+6~)2-ts(MLwf[`d">
                                                       <field name="ATTR">oldState.val</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="math_number" id=":ekgh}?XC]^!)v[@C6Pp">
                                                       <field name="NUM">191</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <statement name="DO0">
                                         <block type="timeouts_cleartimeout" id="NkHbFSo4*d9Q*`.:YX{(">
                                           <field name="NAME">timeout5</field>
                                           <next>
                                             <block type="control" id="]Dno,P3;6dYZ:5Xp4;E`" disabled="true">
                                               <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="%`XG|!/aW/;C[bnZj%8f">
                                                   <field name="BOOL">TRUE</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="timeouts_settimeout" id=",XnI}PNQCo`}8_M}Wh{8">
                                                   <field name="NAME">timeout5</field>
                                                   <field name="DELAY">3</field>
                                                   <field name="UNIT">min</field>
                                                   <statement name="STATEMENT">
                                                     <block type="control" id="KRlV$DRq[]=@3e6wW~^Y">
                                                       <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="1?u+p!PCnX{mK*+Fc.oY">
                                                           <field name="BOOL">FALSE</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </statement>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                       <value name="IF1">
                                         <block type="logic_operation" id="@w,+i@%MeuH{lT)|XxBH" inline="false">
                                           <field name="OP">OR</field>
                                           <value name="A">
                                             <block type="logic_compare" id="Lc64TT##]i[Mj0XMkJH(">
                                               <field name="OP">LT</field>
                                               <value name="A">
                                                 <block type="on_source" id="GYWZfP!GgQH)]K@e[h)6">
                                                   <field name="ATTR">state.val</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="math_number" id="EnF1k6FG|l{~tOj-bmV;">
                                                   <field name="NUM">50</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="logic_compare" id="O]kgyw2#SRIiy|f9Unv.">
                                               <field name="OP">GT</field>
                                               <value name="A">
                                                 <block type="on_source" id="lG/{Z`298OF.VUq~Hhzr">
                                                   <field name="ATTR">state.val</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="math_number" id="h1;v$D/G!wHNBhYqBq;j">
                                                   <field name="NUM">191</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <statement name="DO1">
                                         <block type="timeouts_cleartimeout" id="a4*9:he[uuWGBNB9E:#t">
                                           <field name="NAME">timeout5</field>
                                           <next>
                                             <block type="control" id=")jNRwK{Uik_:R$lzdORT" disabled="true">
                                               <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="vq-KULo#Tk?qM!WE^c[+">
                                                   <field name="BOOL">TRUE</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                       <next>
                                         <block type="debug" id="hR+`P5qaHhOUzOb2oFF#">
                                           <field name="Severity">log</field>
                                           <value name="TEXT">
                                             <shadow type="text" id="U9Upn~:#r}gU|h^9`RwR">
                                               <field name="TEXT">test</field>
                                             </shadow>
                                             <block type="text_join" id="EjlpL|_8ocdIR=pUZ:GN">
                                               <mutation items="4"></mutation>
                                               <value name="ADD0">
                                                 <block type="text" id="~W4iG)g]v[b--o;@IZE]">
                                                   <field name="TEXT">aktuelle Leistung: </field>
                                                 </block>
                                               </value>
                                               <value name="ADD1">
                                                 <block type="on_source" id="}^ELsWj}n/S7ee^X@lO1">
                                                   <field name="ATTR">state.val</field>
                                                 </block>
                                               </value>
                                               <value name="ADD2">
                                                 <block type="text" id="IN8j6{Ogxk|n.iT0%E2I">
                                                   <field name="TEXT">; bisherige Leistung: </field>
                                                 </block>
                                               </value>
                                               <value name="ADD3">
                                                 <block type="on_source" id="|$[suDq_C(nR[~^.,o+0">
                                                   <field name="ATTR">oldState.val</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                                </xml>
                                

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

                                @homoran Hallo, ich habe das Skript neu gebaut und es befindet sich im Testlauf. Bis jetzt scheint es zu funktionieren.
                                Ich prüfe jetzt den Wert zwischen 100 und 190 also ">100 und <190" (Watt) für den timeout.
                                Ist der Wert unter 100 oder über 190 soll der timeout gestopt werden. Somit denke ich wird die Pumpe nur ausgeschaltet wenn ich die vorgegebene Zeit zwischen 100 und 190 Watt (das ist der Stromverbrauch bei Trockenlauf) erreiche.
                                Mein Ziel ist es das die Pumpe nur bei Trockenlauf vom Strom getrennt wird und ansonsten am Strom ist und somit im Standby damit wir jederzeit im Haus Wasser entnehmen können. Wenn dann der Trockenlauf eintritt und das Skript den timout startet und die Pumpe vom Strom trennt werde ich über eine StatusLED (bzw. später irgendwann mal Benachrichtigung aufs Handy) darüber informiert und kann das Wasser nachfüllen und die Stromzufuhr zur Pumpe am Sonoff wieder einschalten. Das ist mein Ziel, und ich hoffe das das mit eurer Hilfe und dem jetzt daraus entstandenen Skript klappt.
                                Ihr ward gestern echt geduldig mit mir Anfänger und dafür bin ich sehr dankbar. Das war mein erster Tag in einem Forum und ich habe viel gelernt und hoffe in der nächsten Zeit besser zu werden. Dieses hier ist ein super Forum und ich fühle mich hier sehr wohl. Ich hoffe in der Zukunft auch Anfängern und Lösungssuchenden so gut helfen zu können.

                                Screenshot_2021-05-11 javascript - ioBroker.png

                                "SonoffPOW2-Hauswasserpumpe Energy Power" = Watt-Anzeige
                                SonoffPOW2-HauswasserpumpePOWER = Switch (also Strom on/off)

                                <xml xmlns="https://developers.google.com/blockly/xml">
                                 <variables>
                                   <variable type="timeout" id="timeout6">timeout6</variable>
                                 </variables>
                                 <block type="comment" id="*y5gM_Yt$M=}Z4MSw|$." x="-587" y="1213">
                                   <field name="COMMENT">Trockenlaufschutz</field>
                                   <next>
                                     <block type="on_ext" id="~gu9.*D}mpMz~aX}kpUK">
                                       <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="VQO7,Q*ctQ$M8z$0]T/R">
                                           <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                                         </shadow>
                                       </value>
                                       <statement name="STATEMENT">
                                         <block type="controls_if" id="5G3@1QNij/L%k?9}TpbK">
                                           <mutation elseif="1"></mutation>
                                           <value name="IF0">
                                             <block type="logic_operation" id="s?fR1Kse-kjW_QO7C3MW" inline="false">
                                               <field name="OP">AND</field>
                                               <value name="A">
                                                 <block type="logic_compare" id="[[h~7hIX=MsyQR.gLg4z">
                                                   <field name="OP">GT</field>
                                                   <value name="A">
                                                     <block type="on_source" id="qZ07u5a3~-hJ_$(vJ`2X">
                                                       <field name="ATTR">state.val</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="math_number" id=":_u[TZOf8Qj@#K|wpIM6">
                                                       <field name="NUM">100</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="logic_compare" id="COqKZpMT-,`W$Gsl6^u`">
                                                   <field name="OP">LT</field>
                                                   <value name="A">
                                                     <block type="on_source" id="^@)5zf_lP=_]B*a_Vg+f">
                                                       <field name="ATTR">state.val</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="math_number" id="j#wOLd23;j_AO(vH}$8~">
                                                       <field name="NUM">190</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <statement name="DO0">
                                             <block type="timeouts_cleartimeout" id="{TkW[${#W4eJ`wu)rMS{">
                                               <field name="NAME">timeout6</field>
                                               <next>
                                                 <block type="timeouts_settimeout" id="y/cDU3$KW1l4._9Pm4rn">
                                                   <field name="NAME">timeout6</field>
                                                   <field name="DELAY">5</field>
                                                   <field name="UNIT">min</field>
                                                   <statement name="STATEMENT">
                                                     <block type="control" id="$(!L(_zS|YRfYooi)((`">
                                                       <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="5oA+@|b_CmmC%@|:LJ-s">
                                                           <field name="BOOL">FALSE</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </statement>
                                                 </block>
                                               </next>
                                             </block>
                                           </statement>
                                           <value name="IF1">
                                             <block type="logic_operation" id="1rH+I#hCIlg#9c}XAbpk" inline="false">
                                               <field name="OP">OR</field>
                                               <value name="A">
                                                 <block type="logic_compare" id="4W9.|D43T3Y1-j=OZSbm">
                                                   <field name="OP">LT</field>
                                                   <value name="A">
                                                     <block type="on_source" id="O.ape@jY+`Z]d|cJU,;X">
                                                       <field name="ATTR">state.val</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="math_number" id="K:_}E+H5Y!!m{sun3_7h">
                                                       <field name="NUM">100</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="logic_compare" id="BpQfjtJ%Qv+lA2ztdyhI">
                                                   <field name="OP">GT</field>
                                                   <value name="A">
                                                     <block type="on_source" id="ZDZ8F=8@D84u[Pqzo~*(">
                                                       <field name="ATTR">state.val</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="math_number" id="4~$Ds9H,/o3*%GK$G^#O">
                                                       <field name="NUM">190</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <statement name="DO1">
                                             <block type="timeouts_cleartimeout" id="P}-=0PXSIC:|(-KyxUy(">
                                               <field name="NAME">timeout6</field>
                                             </block>
                                           </statement>
                                         </block>
                                       </statement>
                                     </block>
                                   </next>
                                 </block>
                                </xml>
                                

                                HomoranH 1 Antwort Letzte Antwort
                                0
                                • N nole

                                  @homoran Hallo, ich habe das Skript neu gebaut und es befindet sich im Testlauf. Bis jetzt scheint es zu funktionieren.
                                  Ich prüfe jetzt den Wert zwischen 100 und 190 also ">100 und <190" (Watt) für den timeout.
                                  Ist der Wert unter 100 oder über 190 soll der timeout gestopt werden. Somit denke ich wird die Pumpe nur ausgeschaltet wenn ich die vorgegebene Zeit zwischen 100 und 190 Watt (das ist der Stromverbrauch bei Trockenlauf) erreiche.
                                  Mein Ziel ist es das die Pumpe nur bei Trockenlauf vom Strom getrennt wird und ansonsten am Strom ist und somit im Standby damit wir jederzeit im Haus Wasser entnehmen können. Wenn dann der Trockenlauf eintritt und das Skript den timout startet und die Pumpe vom Strom trennt werde ich über eine StatusLED (bzw. später irgendwann mal Benachrichtigung aufs Handy) darüber informiert und kann das Wasser nachfüllen und die Stromzufuhr zur Pumpe am Sonoff wieder einschalten. Das ist mein Ziel, und ich hoffe das das mit eurer Hilfe und dem jetzt daraus entstandenen Skript klappt.
                                  Ihr ward gestern echt geduldig mit mir Anfänger und dafür bin ich sehr dankbar. Das war mein erster Tag in einem Forum und ich habe viel gelernt und hoffe in der nächsten Zeit besser zu werden. Dieses hier ist ein super Forum und ich fühle mich hier sehr wohl. Ich hoffe in der Zukunft auch Anfängern und Lösungssuchenden so gut helfen zu können.

                                  Screenshot_2021-05-11 javascript - ioBroker.png

                                  "SonoffPOW2-Hauswasserpumpe Energy Power" = Watt-Anzeige
                                  SonoffPOW2-HauswasserpumpePOWER = Switch (also Strom on/off)

                                  <xml xmlns="https://developers.google.com/blockly/xml">
                                   <variables>
                                     <variable type="timeout" id="timeout6">timeout6</variable>
                                   </variables>
                                   <block type="comment" id="*y5gM_Yt$M=}Z4MSw|$." x="-587" y="1213">
                                     <field name="COMMENT">Trockenlaufschutz</field>
                                     <next>
                                       <block type="on_ext" id="~gu9.*D}mpMz~aX}kpUK">
                                         <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="VQO7,Q*ctQ$M8z$0]T/R">
                                             <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                                           </shadow>
                                         </value>
                                         <statement name="STATEMENT">
                                           <block type="controls_if" id="5G3@1QNij/L%k?9}TpbK">
                                             <mutation elseif="1"></mutation>
                                             <value name="IF0">
                                               <block type="logic_operation" id="s?fR1Kse-kjW_QO7C3MW" inline="false">
                                                 <field name="OP">AND</field>
                                                 <value name="A">
                                                   <block type="logic_compare" id="[[h~7hIX=MsyQR.gLg4z">
                                                     <field name="OP">GT</field>
                                                     <value name="A">
                                                       <block type="on_source" id="qZ07u5a3~-hJ_$(vJ`2X">
                                                         <field name="ATTR">state.val</field>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <block type="math_number" id=":_u[TZOf8Qj@#K|wpIM6">
                                                         <field name="NUM">100</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <block type="logic_compare" id="COqKZpMT-,`W$Gsl6^u`">
                                                     <field name="OP">LT</field>
                                                     <value name="A">
                                                       <block type="on_source" id="^@)5zf_lP=_]B*a_Vg+f">
                                                         <field name="ATTR">state.val</field>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <block type="math_number" id="j#wOLd23;j_AO(vH}$8~">
                                                         <field name="NUM">190</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <statement name="DO0">
                                               <block type="timeouts_cleartimeout" id="{TkW[${#W4eJ`wu)rMS{">
                                                 <field name="NAME">timeout6</field>
                                                 <next>
                                                   <block type="timeouts_settimeout" id="y/cDU3$KW1l4._9Pm4rn">
                                                     <field name="NAME">timeout6</field>
                                                     <field name="DELAY">5</field>
                                                     <field name="UNIT">min</field>
                                                     <statement name="STATEMENT">
                                                       <block type="control" id="$(!L(_zS|YRfYooi)((`">
                                                         <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="5oA+@|b_CmmC%@|:LJ-s">
                                                             <field name="BOOL">FALSE</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </statement>
                                                   </block>
                                                 </next>
                                               </block>
                                             </statement>
                                             <value name="IF1">
                                               <block type="logic_operation" id="1rH+I#hCIlg#9c}XAbpk" inline="false">
                                                 <field name="OP">OR</field>
                                                 <value name="A">
                                                   <block type="logic_compare" id="4W9.|D43T3Y1-j=OZSbm">
                                                     <field name="OP">LT</field>
                                                     <value name="A">
                                                       <block type="on_source" id="O.ape@jY+`Z]d|cJU,;X">
                                                         <field name="ATTR">state.val</field>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <block type="math_number" id="K:_}E+H5Y!!m{sun3_7h">
                                                         <field name="NUM">100</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <block type="logic_compare" id="BpQfjtJ%Qv+lA2ztdyhI">
                                                     <field name="OP">GT</field>
                                                     <value name="A">
                                                       <block type="on_source" id="ZDZ8F=8@D84u[Pqzo~*(">
                                                         <field name="ATTR">state.val</field>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <block type="math_number" id="4~$Ds9H,/o3*%GK$G^#O">
                                                         <field name="NUM">190</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <statement name="DO1">
                                               <block type="timeouts_cleartimeout" id="P}-=0PXSIC:|(-KyxUy(">
                                                 <field name="NAME">timeout6</field>
                                               </block>
                                             </statement>
                                           </block>
                                         </statement>
                                       </block>
                                     </next>
                                   </block>
                                  </xml>
                                  

                                  HomoranH Nicht stören
                                  HomoranH Nicht stören
                                  Homoran
                                  Global Moderator Administrators
                                  schrieb am zuletzt editiert von
                                  #102

                                  @nole sagte in Trockenlaufschutz, Problem mit Blockly:

                                  ich habe das Skript neu gebaut und es befindet sich im Testlauf. Bis jetzt scheint es zu funktionieren.

                                  so sieht es sinnvoll aus.

                                  Es wird zwar jetzt nicht mehr geprüft, ob sich der Druck verändert hat (also vorher noch normal gepumpt wurde), der mögliche Fehler, dass zufällig ein Druck zwischen 100 und 190 gemessen wurde, weil z.B. die Pumpe gerade anläuft, wird hoffentlich über den timeout abgefangen

                                  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 1 Antwort Letzte Antwort
                                  0
                                  • HomoranH Homoran

                                    @nole sagte in Trockenlaufschutz, Problem mit Blockly:

                                    ich habe das Skript neu gebaut und es befindet sich im Testlauf. Bis jetzt scheint es zu funktionieren.

                                    so sieht es sinnvoll aus.

                                    Es wird zwar jetzt nicht mehr geprüft, ob sich der Druck verändert hat (also vorher noch normal gepumpt wurde), der mögliche Fehler, dass zufällig ein Druck zwischen 100 und 190 gemessen wurde, weil z.B. die Pumpe gerade anläuft, wird hoffentlich über den timeout abgefangen

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

                                    @homoran Bis jetzt hat das Skript den Test bestanden, die Duschorgie fängt jetzt an. Aber ich denke das klappt auch.
                                    Es wird die Watt Aufnahme der Pumpe geprüft ob zwischen 100 Watt und 190 Watt. Im Normalbetrieb (also mit Wasser) geht die Aufnahme beim Start der Pumpe direkt über 300 Watt und bei erreichen des Wasserdrucks wenn die Pumpe aufhört zu pumpen pendelt die Watt-Angabe noch kurz zwischen 30 und 1 Watt bis sie dann auf 0 Watt geht. Das Skript hat das abendliche Duschen auch geschafft.
                                    Vielen Dank für die Hilfe, ich hatte vor Gestern schon fast die Hoffnung verloren das noch hin zu bekommen, aber bei so einem tollen Forum........, Danke an Alle!
                                    Demnächst versuche ich ein Blockly mit nachts Licht im Flur für eine bestimmte Zeit einschalten wenn eins von 2 Schlafzimmern verlassen wurde verlassen wurde um zb. zur Toilette zu gehen. Zur Zeit lässt meine Frau das Licht die ganze Nacht an. Ich warte noch auf 2 Fenster/Türkontakte.

                                    1 Antwort Letzte Antwort
                                    0
                                    • N Offline
                                      N Offline
                                      nole
                                      schrieb am zuletzt editiert von
                                      #104

                                      @homoran Hallo nochmal, das Skript läuft so wie es soll. Mein Problem in diesem Fall ist also gelöst dank Eurer Hilfe.
                                      Muß ich jetzt den Post auf gelöst setzen und wie würde das gehen?

                                      HomoranH 1 Antwort Letzte Antwort
                                      0
                                      • N nole

                                        @homoran Hallo nochmal, das Skript läuft so wie es soll. Mein Problem in diesem Fall ist also gelöst dank Eurer Hilfe.
                                        Muß ich jetzt den Post auf gelöst setzen und wie würde das gehen?

                                        HomoranH Nicht stören
                                        HomoranH Nicht stören
                                        Homoran
                                        Global Moderator Administrators
                                        schrieb am zuletzt editiert von
                                        #105

                                        @nole sagte in Trockenlaufschutz, Problem mit Blockly:

                                        wie würde das gehen?

                                        den ersten Post editieren und vor dem Threadtitel [gelöst] einfügen

                                        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 1 Antwort Letzte Antwort
                                        0
                                        • HomoranH Homoran

                                          @nole sagte in Trockenlaufschutz, Problem mit Blockly:

                                          wie würde das gehen?

                                          den ersten Post editieren und vor dem Threadtitel [gelöst] einfügen

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

                                          @homoran Danke, habe ich jetzt gemacht.

                                          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

                                          717

                                          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