Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

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

NEWS

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

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

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

[gelöst]Trockenlaufschutz, Problem mit Blockly

Scheduled Pinned Locked Moved Blockly
107 Posts 6 Posters 9.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N nole

    @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>
    
    BBTownB Offline
    BBTownB Offline
    BBTown
    wrote on last edited by
    #81

    @nole Screenshot vom Blockly?

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

    1 Reply Last reply
    0
    • N nole

      @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>
      
      BBTownB Offline
      BBTownB Offline
      BBTown
      wrote on last edited by BBTown
      #82

      @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
      

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

      N 3 Replies Last reply
      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
        wrote on last edited by
        #83

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

        Nein, kann er nicht. Desshalb manuell wieder einschalten.

        N 4 Replies Last reply
        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
          wrote on last edited by
          #84

          @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
          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
            wrote on last edited by
            #85

            @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
            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
              wrote on last edited by
              #86

              @nole mit "geändert"

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

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

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

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

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

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

                  1 Reply Last reply
                  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 Do not disturb
                    HomoranH Do not disturb
                    Homoran
                    Global Moderator Administrators
                    wrote on last edited by 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 -
                    Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
                    Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton im Header. Danke!
                    der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                    N 2 Replies Last reply
                    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
                      wrote on last edited by
                      #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 Replies Last reply
                      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
                        wrote on last edited by
                        #91

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

                        1 Reply Last reply
                        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 Do not disturb
                          HomoranH Do not disturb
                          Homoran
                          Global Moderator Administrators
                          wrote on last edited by
                          #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 -
                          Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
                          Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton im Header. Danke!
                          der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                          N 1 Reply Last reply
                          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 Do not disturb
                            HomoranH Do not disturb
                            Homoran
                            Global Moderator Administrators
                            wrote on last edited by
                            #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 -
                            Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
                            Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton im Header. Danke!
                            der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

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

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

                                1 Reply Last reply
                                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 Do not disturb
                                  HomoranH Do not disturb
                                  Homoran
                                  Global Moderator Administrators
                                  wrote on last edited by
                                  #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 -
                                  Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
                                  Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton im Header. Danke!
                                  der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                                  N 1 Reply Last reply
                                  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
                                    wrote on last edited by
                                    #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 Replies Last reply
                                    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 Do not disturb
                                      HomoranH Do not disturb
                                      Homoran
                                      Global Moderator Administrators
                                      wrote on last edited by
                                      #98

                                      @nole
                                      noch mal das wichtigste:
                                      Trockenlauf01.png

                                      Da ist aber noch einiges weiteres offen!

                                      kein Support per PN! - Fragen im Forum stellen -
                                      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
                                      Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton im Header. Danke!
                                      der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                                      1 Reply Last reply
                                      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 Do not disturb
                                        HomoranH Do not disturb
                                        Homoran
                                        Global Moderator Administrators
                                        wrote on last edited by 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 -
                                        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
                                        Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton im Header. Danke!
                                        der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                                        N 1 Reply Last reply
                                        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
                                          wrote on last edited by
                                          #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 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          612

                                          Online

                                          32.7k

                                          Users

                                          82.5k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe