Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst]Trockenlaufschutz, Problem mit Blockly

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [gelöst]Trockenlaufschutz, Problem mit Blockly

    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nole @BBTown last edited by

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

      Nein, kann er nicht. Desshalb manuell wieder einschalten.

      N 4 Replies Last reply Reply Quote 0
      • N
        nole @BBTown last edited by

        @bbtown 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.

        1 Reply Last reply Reply Quote 0
        • N
          nole @nole last edited by

          @nole Skript ist jetzt zu testen eingeschaltet, meine Frau und Kinder gehen jetzt duschen.
          Kurze Erklärung: wir wohnen seit einem Jahr wieder in Thailand.

          1 Reply Last reply Reply Quote 0
          • N
            nole @nole last edited by

            @nole mit "geändert"

            Screenshot_2021-05-10 javascript - ioBroker(4).png

            1 Reply Last reply Reply Quote 0
            • N
              nole @nole last edited by

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

              1 Reply Last reply Reply Quote 0
              • N
                nole @nole last edited by

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

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

                1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @nole last edited by 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 2 Replies Last reply Reply Quote 0
                  • N
                    nole @Homoran last edited by

                    @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

                    Homoran 2 Replies Last reply Reply Quote 0
                    • N
                      nole @Homoran last edited by

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

                      1 Reply Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators @nole last edited by

                        @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 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @nole last edited by

                          @nole sagte in Trockenlaufschutz, Problem mit Blockly:

                          das Skript schaltet sie dann aber wieder ein

                          das ist ja was ich schreibe!

                          N 1 Reply Last reply Reply Quote 0
                          • N
                            nole @Homoran last edited by

                            @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.

                            Homoran 1 Reply Last reply Reply Quote 0
                            • N
                              nole @Homoran last edited by

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

                              1 Reply Last reply Reply Quote 0
                              • Homoran
                                Homoran Global Moderator Administrators @nole last edited by

                                @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 1 Reply Last reply Reply Quote 0
                                • N
                                  nole @Homoran last edited by

                                  @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

                                  Homoran 2 Replies Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @nole last edited by

                                    @nole
                                    noch mal das wichtigste:
                                    Trockenlauf01.png

                                    Da ist aber noch einiges weiteres offen!

                                    1 Reply Last reply Reply Quote 0
                                    • Homoran
                                      Homoran Global Moderator Administrators @nole last edited by 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 1 Reply Last reply Reply Quote 0
                                      • N
                                        nole @BBTown last edited by

                                        @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 Reply Last reply Reply Quote 0
                                        • N
                                          nole @Homoran last edited by 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>
                                          

                                          Homoran 1 Reply Last reply Reply Quote 0
                                          • Homoran
                                            Homoran Global Moderator Administrators @nole last edited by

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            830
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            107
                                            6269
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo