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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Aquarium Wasserstand (Wasser Niveau Regulierung)

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.0k

Aquarium Wasserstand (Wasser Niveau Regulierung)

Geplant Angeheftet Gesperrt Verschoben Blockly
25 Beiträge 2 Kommentatoren 917 Aufrufe 1 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • AphofisA Aphofis

    @paul53
    so korrekt !?

    var Wasserstand_ist, magnetventil, Wasserstand_kalibriert;
    
    
    schedule("*/15 * * * * *", async () => {
      Wasserstand_ist = parseFloat(getState('0_userdata.0.Aqua_Float.Wasser_Sensor_kalibriert').val);
      console.info((['Wasserstand ist ',getState('0_userdata.0.Aqua_Float.Wasser_Sensor_kalibriert').val,' cm'].join('')));
      setState('0_userdata.0.Aqua_Float.Wasser_Sensor_kalibriert' /* Wasser_Sensor_kalibriert */, Wasserstand_ist, true);
      Wasserstand_kalibriert = Math.round((Wasserstand_ist - 27.3) * 10) / 10;
      console.info((['Wasserstand kalibriert ',Math.round(getState('0_userdata.0.Aqua_Float.Wasserstand_kallibriert').val * 10) / 10,' cm'].join('')));
      setState('0_userdata.0.Aqua_Float.Wasserstand_kallibriert' /* Wasserstand_kallibriert */, Wasserstand_kalibriert, true);
    });
    on({ id: [].concat(['0_userdata.0.Aqua_Float.Wasserstand_kallibriert']), change: 'ne' }, async (obj) => {
      let value = obj.state.val;
      let oldValue = obj.oldState.val;
      if (getState('sonoff.0.Aqua_Float.POWER').val) {
        if ((obj.state ? obj.state.val : '') <= -0.8) {
          magnetventil = true;
        } else if ((obj.state ? obj.state.val : '') >= 0) {
          magnetventil = false;
        }
      } else {
        magnetventil = false;
      }
      if (magnetventil != getState('sonoff.0.Aqua_Control.POWER1').val) {
        setState('sonoff.0.Aqua_Control.POWER1' /* Aqua_Control POWER1 */, magnetventil);
      }
    });
    magnetventil = getState('sonoff.0.Aqua_Control.POWER1').val;
    
    

    und das wäre das Blockly, was den Sensor kalibriert

    var Sensorwert;
    
    
    Sensorwert = Math.round(getState('sonoff.0.Aqua_Float.SENSOR.SR04.Distance').val * 10) / 10;
    schedule("*/5 * * * * *", async () => {
      setState('0_userdata.0.Aqua_Float.Wasser_Sensor_kalibriert' /* Wasser_Sensor_kalibriert */, (Sensorwert + 6), true);
      console.info((Sensorwert + 6));
    });
    ist das so ok !?
    
    paul53P Offline
    paul53P Offline
    paul53
    schrieb am zuletzt editiert von paul53
    #8

    @aphofis
    So reagiert das Magnetventil schneller auf den Schwimmer (falls gewünscht):

    Blockly_temp.JPG

    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
    Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

    AphofisA 1 Antwort Letzte Antwort
    1
    • paul53P paul53

      @aphofis
      So reagiert das Magnetventil schneller auf den Schwimmer (falls gewünscht):

      Blockly_temp.JPG

      AphofisA Offline
      AphofisA Offline
      Aphofis
      schrieb am zuletzt editiert von
      #9

      @paul53
      Habe ich angepasst. Kann ich leider erst testen wenn der Wasseranschluß Adapter geliefert wurde.

      AphofisA 1 Antwort Letzte Antwort
      0
      • AphofisA Aphofis

        @paul53
        Habe ich angepasst. Kann ich leider erst testen wenn der Wasseranschluß Adapter geliefert wurde.

        AphofisA Offline
        AphofisA Offline
        Aphofis
        schrieb am zuletzt editiert von Aphofis
        #10

        So jetzt habe ich ja einen normalen Schwimmer. Das mir mit dem Distanz Sensor doch zu ungenau.
        Wäre es so korrekt !? und wie baue ich jetzt die Zähler geschichte Tag und Jahr da mit ein !?

        var Magnetventil;
        
        
        on({ id: [].concat(['sonoff.0.Aqua_Float.POWER']), change: 'ne' }, async (obj) => {
          let value = obj.state.val;
          let oldValue = obj.oldState.val;
          if (getState('sonoff.0.Aqua_Float.POWER').val) {
            if ((obj.state ? obj.state.val : '') == true) {
              Magnetventil = true;
            } else if ((obj.state ? obj.state.val : '') == false) {
              Magnetventil = false;
            }
          }
          if (Magnetventil != getState('sonoff.0.Aqua_Control.POWER1').val) {
            setState('sonoff.0.Aqua_Control.POWER1' /* Aqua_Control POWER1 */, Magnetventil);
          }
        });
        Magnetventil = getState('sonoff.0.Aqua_Control.POWER1').val;
        on({ id: 'sonoff.0.Aqua_Float.POWER' /* Aqua_Float POWER */, change: 'lt' }, async (obj) => {
          let value = obj.state.val;
          let oldValue = obj.oldState.val;
          Magnetventil = false;
          setState('sonoff.0.Aqua_Control.POWER1' /* Aqua_Control POWER1 */, false);
        });
        

        Screenshot 2024-07-30 000730.png

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable id="]VTTxDR?`e|Cg,*m);t,">Magnetventil</variable>
          </variables>
          <block type="on_ext" id="]ILn#VptWgU|e$2);gyj" x="337" y="-862">
            <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="2X?.ZS/H@+t:?bM5|[!*">
                <field name="oid">sonoff.0.Aqua_Float.POWER</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="controls_if" id="nj.lEo`%,6?,@TX,lK%d">
                <value name="IF0">
                  <block type="get_value" id=",C;zjF!{nJG{H_`E{bXa">
                    <field name="ATTR">val</field>
                    <field name="OID">sonoff.0.Aqua_Float.POWER</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="controls_if" id="Y^PXGsg?K2SKw@i-etrH">
                    <mutation elseif="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="oW:sdoX-7/kI9wyMf0{i">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="on_source" id="C=|BD(-QDK,3_J+Cd_ur">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="`gIYA*PRo8,[o%`[{SzI">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="E/HoLt2E:d7J$j=`|#_}">
                        <field name="VAR" id="]VTTxDR?`e|Cg,*m);t,">Magnetventil</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="g)ymwSI1|~s#Am|u9c||">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <value name="IF1">
                      <block type="logic_compare" id="a=mnJ~,.19(Ei8uFJ9#P">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="on_source" id="AeF77Zfu}aVXxN3BsTc$">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="{$%Tw)2b*1fJ5pmX5/Xf">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO1">
                      <block type="variables_set" id="JBjI((D@Q*S]1UQ5__7h">
                        <field name="VAR" id="]VTTxDR?`e|Cg,*m);t,">Magnetventil</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="m#tve$Y7sY=1JlI5=h{p">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="k.6G@7S_B0UcS0Zbjgu%">
                    <value name="IF0">
                      <block type="logic_compare" id="|}(]ZI3(-SuvL9IkO%~u">
                        <field name="OP">NEQ</field>
                        <value name="A">
                          <block type="variables_get" id="s*oDCP[@wadm`;v0p3Yb">
                            <field name="VAR" id="]VTTxDR?`e|Cg,*m);t,">Magnetventil</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="get_value" id="0BAAUX]W]y4wiy5hzhG4">
                            <field name="ATTR">val</field>
                            <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="k_UC4MwIP$;4QjKSV=!J">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="variables_get" id=":H$2I@(pf/gaCg?!=j9+">
                            <field name="VAR" id="]VTTxDR?`e|Cg,*m);t,">Magnetventil</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </statement>
            <next>
              <block type="variables_set" id="c9$^t`+{9rY4m{K*e80n">
                <field name="VAR" id="]VTTxDR?`e|Cg,*m);t,">Magnetventil</field>
                <value name="VALUE">
                  <block type="get_value" id=";Cg)?-mx{46^fb@vsTFu">
                    <field name="ATTR">val</field>
                    <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                  </block>
                </value>
                <next>
                  <block type="on" id=".Kws=H5v3:9sC$2y}XY.">
                    <field name="OID">sonoff.0.Aqua_Float.POWER</field>
                    <field name="CONDITION">lt</field>
                    <field name="ACK_CONDITION"></field>
                    <statement name="STATEMENT">
                      <block type="variables_set" id="EB)[$hMTk[M)M-TM[QA=">
                        <field name="VAR" id="]VTTxDR?`e|Cg,*m);t,">Magnetventil</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="@/9n#f}F|OQ3vED4Wg=7">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="`#?D6cI2R48DM4)iEV2)">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id=",3jB^Ds`:?3}P4i)[iK}">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </xml>
        
        var Wasser_Jahr, Sensorwert;
        
        
        Wasser_Jahr = (Sensorwert * 5.1) / 1000;
        Sensorwert = getState('sonoff.0.Aqua_Float.SENSOR.COUNTER.C2').val;
        on({ id: [].concat(['sonoff.0.Aqua_Float.POWER']), change: 'ne' }, async (obj) => {
          let value = obj.state.val;
          let oldValue = obj.oldState.val;
          if (getState('sonoff.0.Aqua_Float.POWER').val == true) {
            setState('sonoff.0.Aqua_Control.POWER1' /* Aqua_Control POWER1 */, true);
            setState('0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter' /* Wasser_Counter */, (Sensorwert * 5.1), true);
            console.info((String(Sensorwert * 5.1) + ' ml'));
          }
          if (getState('sonoff.0.Aqua_Float.POWER').val == false) {
            setState('sonoff.0.Aqua_Control.POWER1' /* Aqua_Control POWER1 */, false);
            setState('0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag' /* Wasserzähler_Tag */, Math.round((getState('0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag').val + Sensorwert * 5.1) * 10) / 10, true);
            setState('0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr' /* Wasserzähler_Jahr */, Math.round((getState('0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr').val + (Sensorwert * 5.1) / 1000) * 1000) / 1000, true);
            setState('0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter' /* Wasser_Counter */, 0, true);
            console.info(Math.round((getState('0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr').val + (Sensorwert * 5.1) / 1000) * 1000) / 1000);
            console.info((String(Wasser_Jahr) + ' Liter'));
            sendTo("telegram.0", "call", {
                text: ([Sensorwert * 5.1,' ml',' Wasser wurden dosiert'].join('')),
                user: '',
                lang: "",
                repeats: "1"
            });
            exec('http://192.168.0.71/cm?cmnd=counter2 0');
          }
        });
        
        schedule('{"time":{"exactTime":true,"start":"00:00"},"period":{"years":1,"yearDate":1,"yearMonth":1}}', async () => {
          setState('0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr' /* Wasserzähler_Jahr */, 0, true);
        });
        schedule('{"time":{"exactTime":true,"start":"00:00"},"period":{"days":1},"valid":{"from":"26.07.2024","to":""}}', async () => {
          setState('0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag' /* Wasserzähler_Tag */, 0, true);
        });
        

        Screenshot 2024-07-30 000822.png

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</variable>
            <variable id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</variable>
          </variables>
          <block type="variables_set" id="Ly[A!2g58K@mKk8m:]|2" x="-1213" y="-812">
            <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
            <value name="VALUE">
              <block type="math_arithmetic" id="7Ao_C8uEf6,XAdU8}]}h">
                <field name="OP">DIVIDE</field>
                <value name="A">
                  <shadow type="math_number" id="y@9!m=3w*zq88s!]VKda">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="math_arithmetic" id="![Q{cw$rD?us}f2X^C-)">
                    <field name="OP">MULTIPLY</field>
                    <value name="A">
                      <shadow type="math_number" id="*jv}6cjSI{#yaUP@MyXk">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="dfTDJrA0(r!mPzqk_b^O">
                        <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id=")QfF.2k^PtGI2GW~Xh.E">
                        <field name="NUM">5.1</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="kd|@cVabO(5=^Emb%3P_">
                    <field name="NUM">1000</field>
                  </shadow>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="HUSPsI8yrvs1R9buB5UE">
                <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                <value name="VALUE">
                  <block type="get_value" id="|=$q%x;t`MAEW/vG=BLQ">
                    <field name="ATTR">val</field>
                    <field name="OID">sonoff.0.Aqua_Float.SENSOR.COUNTER.C2</field>
                  </block>
                </value>
                <next>
                  <block type="on_ext" id="0:-d[({.Z}?pVdpxL($`">
                    <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="0W#F=X0/oRtnrPk9h3{x">
                        <field name="oid">sonoff.0.Aqua_Float.POWER</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="-/ZpX8Na)@}o-6|}CSL!">
                        <value name="IF0">
                          <block type="logic_compare" id="-e{?t`m]:rD;6A=8$SJn">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="~.`biXAxtVIX::f,31wZ">
                                <field name="ATTR">val</field>
                                <field name="OID">sonoff.0.Aqua_Float.POWER</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="?6uuz[3#IE-ikDQ,8S:b">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="+J6RXi5dE%yH2jh%*6!s">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="gHf%u#Etctvw!kr/.gS=">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                            <next>
                              <block type="update" id="?h=3;[vg7tLw)/h@7:$A">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_arithmetic" id="e1#%MoOBW(WQNQtz+];;">
                                    <field name="OP">MULTIPLY</field>
                                    <value name="A">
                                      <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id=",s^*MoNszpa:oog%EMAW">
                                        <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow type="math_number" id="j[l*MeT/~[+quhxnrS7C">
                                        <field name="NUM">5.1</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="debug" id="^-PLnz!%La/%esP+p|q%">
                                    <field name="Severity">info</field>
                                    <value name="TEXT">
                                      <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                        <field name="TEXT">test</field>
                                      </shadow>
                                      <block type="text_join" id="oliPeI~VRSKRwW7]r|%]">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="math_arithmetic" id="Q,q,)Fqfx8Dcu]de0[XS">
                                            <field name="OP">MULTIPLY</field>
                                            <value name="A">
                                              <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="variables_get" id="z/,x;+#E?BVELckv)U}3">
                                                <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id=")SsRvEav^gC^x{KjjCyf">
                                                <field name="NUM">5.1</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="text" id="8Ojo1T/MND*{-XQvij#:">
                                            <field name="TEXT"> ml</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id=",aY{tNn{Zq6[:-ELj0As">
                            <value name="IF0">
                              <block type="logic_compare" id="A1JHG3$7vPc~S.zi3zOA">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="?CKwE$ej^`bqs*$[-]c:">
                                    <field name="ATTR">val</field>
                                    <field name="OID">sonoff.0.Aqua_Float.POWER</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="Y$!/TyZ,:iO6_8U(xz*o">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="8Gs!_Fp|Q_FY!2D:b!lM">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="uAeyzfF?Q[,YVnAkN:ev">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="update" id="fwHm}o7U6~1d|Z|{o_na">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_rndfixed" id=";]qdo[hKwhyu5U)H]|AP">
                                        <field name="n">1</field>
                                        <value name="x">
                                          <shadow type="math_number" id="%/fU!@WL!D1NR8vZIXrJ">
                                            <field name="NUM">3.1234</field>
                                          </shadow>
                                          <block type="math_arithmetic" id=";4%D/iw5+jbnB}~cw5^U">
                                            <field name="OP">ADD</field>
                                            <value name="A">
                                              <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="get_value" id="M_~UzJP71@mQ8;LaEqA;">
                                                <field name="ATTR">val</field>
                                                <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id="W)Ad2(Y4FzH8rN6?DDSG">
                                                <field name="NUM">5.1</field>
                                              </shadow>
                                              <block type="math_arithmetic" id="--Yqm1%UxoJEeNrk!c.P">
                                                <field name="OP">MULTIPLY</field>
                                                <value name="A">
                                                  <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="variables_get" id="su_iSda]mMUcg|Ylu@=o">
                                                    <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id=")^cYV1_GG2c6MZ]{|#7y">
                                                    <field name="NUM">5.1</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="update" id="v@JXdPp^SX$e}[;*TN;5">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_rndfixed" id="H]3.WGAtE,UJ;+O:yMqK">
                                            <field name="n">3</field>
                                            <value name="x">
                                              <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL">
                                                <field name="NUM">3.1234</field>
                                              </shadow>
                                              <block type="math_arithmetic" id="n+SR|VkO!e$%A-qY%U?~">
                                                <field name="OP">ADD</field>
                                                <value name="A">
                                                  <shadow type="math_number" id="*jv}6cjSI{#yaUP@MyXk">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="get_value" id="HFTLl.5s}DD!S3VkI2}w">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="f%DO%LG5^1o@Ix{U_@A~">
                                                    <field name="NUM">5.1</field>
                                                  </shadow>
                                                  <block type="math_arithmetic" id="aUjod9%H]Jr`c:7;L`1L">
                                                    <field name="OP">DIVIDE</field>
                                                    <value name="A">
                                                      <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="math_arithmetic" id="kNX*w+DLCh?h;QW6++Z]">
                                                        <field name="OP">MULTIPLY</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id="==0y1MmV=A38?y{8!7Qp">
                                                            <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id="]l8R1tU7Xg/|fi2)D~kS">
                                                            <field name="NUM">5.1</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <shadow type="math_number" id="W)Ad2(Y4FzH8rN6?DDSG">
                                                        <field name="NUM">1000</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="update" id="`NW9_QcSlKGP;b[9@.QH">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="|m|G@]xx7.d^nS-E2Q,B">
                                                <field name="NUM">0</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="debug" id="VbtK/x1iMQ[uIZ]BFI2R">
                                                <field name="Severity">info</field>
                                                <value name="TEXT">
                                                  <shadow type="text" id="eY+;zViF,NH})5!!C8Al">
                                                    <field name="TEXT">test</field>
                                                  </shadow>
                                                  <block type="math_rndfixed" id="1K#w;9hOMMM]85p5dS{^">
                                                    <field name="n">3</field>
                                                    <value name="x">
                                                      <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL">
                                                        <field name="NUM">3.1234</field>
                                                      </shadow>
                                                      <block type="math_arithmetic" id="orkGrIrLF6pxkL0G.@c7">
                                                        <field name="OP">ADD</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="*jv}6cjSI{#yaUP@MyXk">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="get_value" id="z^[3xVATuRPkQZy^+9uL">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id="f%DO%LG5^1o@Ix{U_@A~">
                                                            <field name="NUM">5.1</field>
                                                          </shadow>
                                                          <block type="math_arithmetic" id="g`5V!ld7Q)L](PfiDQIO">
                                                            <field name="OP">DIVIDE</field>
                                                            <value name="A">
                                                              <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                                <field name="NUM">1</field>
                                                              </shadow>
                                                              <block type="math_arithmetic" id="(iIdHa2r1]QW!3;l}VWB">
                                                                <field name="OP">MULTIPLY</field>
                                                                <value name="A">
                                                                  <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="6Y;STQc/8w8(*}?^gP^x">
                                                                    <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow type="math_number" id="ZIm/;!1xk;j/Q1T4P(d7">
                                                                    <field name="NUM">5.1</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <shadow type="math_number" id="B|YSSV_~-Z#/)QXaRcbJ">
                                                                <field name="NUM">1000</field>
                                                              </shadow>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="debug" id="ESkP;ss;~ZDB;gISHFI]">
                                                    <field name="Severity">info</field>
                                                    <value name="TEXT">
                                                      <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                        <field name="TEXT">test</field>
                                                      </shadow>
                                                      <block type="text_join" id="R[aL32f3![219OSKE$k!">
                                                        <mutation items="2"></mutation>
                                                        <value name="ADD0">
                                                          <block type="variables_get" id="Y%f8;@,D;lNrR?pmQ|(Z">
                                                            <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD1">
                                                          <block type="text" id="q=ZJuFoniJND[_z;_j~M">
                                                            <field name="TEXT"> Liter</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="telegram_call" id="HP%v-*cCsG%`jLmz$NzT">
                                                        <field name="INSTANCE">.0</field>
                                                        <field name="LANGUAGE"></field>
                                                        <field name="REPEATS">1</field>
                                                        <field name="LOG"></field>
                                                        <value name="MESSAGE">
                                                          <shadow type="text" id=":(YMTpY/k)a7+-W7~g|M">
                                                            <field name="TEXT">text</field>
                                                          </shadow>
                                                          <block type="text_join" id=";;6oqX}l/W(ws@3[8iFR">
                                                            <mutation items="3"></mutation>
                                                            <value name="ADD0">
                                                              <block type="math_arithmetic" id="Y37WPVV0`sb~=]u|%^:{">
                                                                <field name="OP">MULTIPLY</field>
                                                                <value name="A">
                                                                  <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="wimbm((,ufreXmGowP_b">
                                                                    <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow type="math_number" id="UH4]vU,[X+aWc.0|JEhM">
                                                                    <field name="NUM">5.1</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="ADD1">
                                                              <block type="text" id="e)3mz5qz)A1i;o:E{!47">
                                                                <field name="TEXT"> ml</field>
                                                              </block>
                                                            </value>
                                                            <value name="ADD2">
                                                              <block type="text" id="We*0)kla7,,mg^N5.sPb">
                                                                <field name="TEXT"> Wasser wurden dosiert</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="USERNAME">
                                                          <shadow type="text" id="X{lxgUXzI0kZ[MSI2uZV">
                                                            <field name="TEXT"></field>
                                                          </shadow>
                                                        </value>
                                                        <next>
                                                          <block type="exec" id="M$[Xr*Msg!BILkU,.}1P">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                            <field name="WITH_STATEMENT">FALSE</field>
                                                            <field name="LOG"></field>
                                                            <value name="COMMAND">
                                                              <shadow type="text" id="h}Wf^Jm-chI/p|/BP4RP">
                                                                <field name="TEXT">http://192.168.0.71/cm?cmnd=counter2 0</field>
                                                              </shadow>
                                                            </value>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
          <block type="schedule" id="eY2k):|9:7y;jFJ|-e{." x="-338" y="-813">
            <field name="SCHEDULE">{"time":{"exactTime":true,"start":"00:00"},"period":{"years":1,"yearDate":1,"yearMonth":1}}</field>
            <statement name="STATEMENT">
              <block type="update" id="|*@i5i^pfX8@UCo}nN4j">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="math_number" id="27z6jlXz=#}B7;,?{V7M">
                    <field name="NUM">0</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="schedule" id="!0s4!(IKf352-$Cjs+=H">
                <field name="SCHEDULE">{"time":{"exactTime":true,"start":"00:00"},"period":{"days":1},"valid":{"from":"26.07.2024","to":""}}</field>
                <statement name="STATEMENT">
                  <block type="update" id=",B.vece!}v4W4j`J0O1r">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_number" id="(P{ST5UTzs=*|2/~;Z+d">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </xml>
        
        paul53P 1 Antwort Letzte Antwort
        0
        • AphofisA Aphofis

          So jetzt habe ich ja einen normalen Schwimmer. Das mir mit dem Distanz Sensor doch zu ungenau.
          Wäre es so korrekt !? und wie baue ich jetzt die Zähler geschichte Tag und Jahr da mit ein !?

          var Magnetventil;
          
          
          on({ id: [].concat(['sonoff.0.Aqua_Float.POWER']), change: 'ne' }, async (obj) => {
            let value = obj.state.val;
            let oldValue = obj.oldState.val;
            if (getState('sonoff.0.Aqua_Float.POWER').val) {
              if ((obj.state ? obj.state.val : '') == true) {
                Magnetventil = true;
              } else if ((obj.state ? obj.state.val : '') == false) {
                Magnetventil = false;
              }
            }
            if (Magnetventil != getState('sonoff.0.Aqua_Control.POWER1').val) {
              setState('sonoff.0.Aqua_Control.POWER1' /* Aqua_Control POWER1 */, Magnetventil);
            }
          });
          Magnetventil = getState('sonoff.0.Aqua_Control.POWER1').val;
          on({ id: 'sonoff.0.Aqua_Float.POWER' /* Aqua_Float POWER */, change: 'lt' }, async (obj) => {
            let value = obj.state.val;
            let oldValue = obj.oldState.val;
            Magnetventil = false;
            setState('sonoff.0.Aqua_Control.POWER1' /* Aqua_Control POWER1 */, false);
          });
          

          Screenshot 2024-07-30 000730.png

          <xml xmlns="https://developers.google.com/blockly/xml">
            <variables>
              <variable id="]VTTxDR?`e|Cg,*m);t,">Magnetventil</variable>
            </variables>
            <block type="on_ext" id="]ILn#VptWgU|e$2);gyj" x="337" y="-862">
              <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="2X?.ZS/H@+t:?bM5|[!*">
                  <field name="oid">sonoff.0.Aqua_Float.POWER</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="nj.lEo`%,6?,@TX,lK%d">
                  <value name="IF0">
                    <block type="get_value" id=",C;zjF!{nJG{H_`E{bXa">
                      <field name="ATTR">val</field>
                      <field name="OID">sonoff.0.Aqua_Float.POWER</field>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="controls_if" id="Y^PXGsg?K2SKw@i-etrH">
                      <mutation elseif="1"></mutation>
                      <value name="IF0">
                        <block type="logic_compare" id="oW:sdoX-7/kI9wyMf0{i">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="on_source" id="C=|BD(-QDK,3_J+Cd_ur">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="`gIYA*PRo8,[o%`[{SzI">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="variables_set" id="E/HoLt2E:d7J$j=`|#_}">
                          <field name="VAR" id="]VTTxDR?`e|Cg,*m);t,">Magnetventil</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="g)ymwSI1|~s#Am|u9c||">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <value name="IF1">
                        <block type="logic_compare" id="a=mnJ~,.19(Ei8uFJ9#P">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="on_source" id="AeF77Zfu}aVXxN3BsTc$">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="{$%Tw)2b*1fJ5pmX5/Xf">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO1">
                        <block type="variables_set" id="JBjI((D@Q*S]1UQ5__7h">
                          <field name="VAR" id="]VTTxDR?`e|Cg,*m);t,">Magnetventil</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="m#tve$Y7sY=1JlI5=h{p">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </statement>
                  <next>
                    <block type="controls_if" id="k.6G@7S_B0UcS0Zbjgu%">
                      <value name="IF0">
                        <block type="logic_compare" id="|}(]ZI3(-SuvL9IkO%~u">
                          <field name="OP">NEQ</field>
                          <value name="A">
                            <block type="variables_get" id="s*oDCP[@wadm`;v0p3Yb">
                              <field name="VAR" id="]VTTxDR?`e|Cg,*m);t,">Magnetventil</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="get_value" id="0BAAUX]W]y4wiy5hzhG4">
                              <field name="ATTR">val</field>
                              <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="k_UC4MwIP$;4QjKSV=!J">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="variables_get" id=":H$2I@(pf/gaCg?!=j9+">
                              <field name="VAR" id="]VTTxDR?`e|Cg,*m);t,">Magnetventil</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </statement>
              <next>
                <block type="variables_set" id="c9$^t`+{9rY4m{K*e80n">
                  <field name="VAR" id="]VTTxDR?`e|Cg,*m);t,">Magnetventil</field>
                  <value name="VALUE">
                    <block type="get_value" id=";Cg)?-mx{46^fb@vsTFu">
                      <field name="ATTR">val</field>
                      <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                    </block>
                  </value>
                  <next>
                    <block type="on" id=".Kws=H5v3:9sC$2y}XY.">
                      <field name="OID">sonoff.0.Aqua_Float.POWER</field>
                      <field name="CONDITION">lt</field>
                      <field name="ACK_CONDITION"></field>
                      <statement name="STATEMENT">
                        <block type="variables_set" id="EB)[$hMTk[M)M-TM[QA=">
                          <field name="VAR" id="]VTTxDR?`e|Cg,*m);t,">Magnetventil</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="@/9n#f}F|OQ3vED4Wg=7">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="`#?D6cI2R48DM4)iEV2)">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id=",3jB^Ds`:?3}P4i)[iK}">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </xml>
          
          var Wasser_Jahr, Sensorwert;
          
          
          Wasser_Jahr = (Sensorwert * 5.1) / 1000;
          Sensorwert = getState('sonoff.0.Aqua_Float.SENSOR.COUNTER.C2').val;
          on({ id: [].concat(['sonoff.0.Aqua_Float.POWER']), change: 'ne' }, async (obj) => {
            let value = obj.state.val;
            let oldValue = obj.oldState.val;
            if (getState('sonoff.0.Aqua_Float.POWER').val == true) {
              setState('sonoff.0.Aqua_Control.POWER1' /* Aqua_Control POWER1 */, true);
              setState('0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter' /* Wasser_Counter */, (Sensorwert * 5.1), true);
              console.info((String(Sensorwert * 5.1) + ' ml'));
            }
            if (getState('sonoff.0.Aqua_Float.POWER').val == false) {
              setState('sonoff.0.Aqua_Control.POWER1' /* Aqua_Control POWER1 */, false);
              setState('0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag' /* Wasserzähler_Tag */, Math.round((getState('0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag').val + Sensorwert * 5.1) * 10) / 10, true);
              setState('0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr' /* Wasserzähler_Jahr */, Math.round((getState('0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr').val + (Sensorwert * 5.1) / 1000) * 1000) / 1000, true);
              setState('0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter' /* Wasser_Counter */, 0, true);
              console.info(Math.round((getState('0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr').val + (Sensorwert * 5.1) / 1000) * 1000) / 1000);
              console.info((String(Wasser_Jahr) + ' Liter'));
              sendTo("telegram.0", "call", {
                  text: ([Sensorwert * 5.1,' ml',' Wasser wurden dosiert'].join('')),
                  user: '',
                  lang: "",
                  repeats: "1"
              });
              exec('http://192.168.0.71/cm?cmnd=counter2 0');
            }
          });
          
          schedule('{"time":{"exactTime":true,"start":"00:00"},"period":{"years":1,"yearDate":1,"yearMonth":1}}', async () => {
            setState('0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr' /* Wasserzähler_Jahr */, 0, true);
          });
          schedule('{"time":{"exactTime":true,"start":"00:00"},"period":{"days":1},"valid":{"from":"26.07.2024","to":""}}', async () => {
            setState('0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag' /* Wasserzähler_Tag */, 0, true);
          });
          

          Screenshot 2024-07-30 000822.png

          <xml xmlns="https://developers.google.com/blockly/xml">
            <variables>
              <variable id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</variable>
              <variable id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</variable>
            </variables>
            <block type="variables_set" id="Ly[A!2g58K@mKk8m:]|2" x="-1213" y="-812">
              <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
              <value name="VALUE">
                <block type="math_arithmetic" id="7Ao_C8uEf6,XAdU8}]}h">
                  <field name="OP">DIVIDE</field>
                  <value name="A">
                    <shadow type="math_number" id="y@9!m=3w*zq88s!]VKda">
                      <field name="NUM">1</field>
                    </shadow>
                    <block type="math_arithmetic" id="![Q{cw$rD?us}f2X^C-)">
                      <field name="OP">MULTIPLY</field>
                      <value name="A">
                        <shadow type="math_number" id="*jv}6cjSI{#yaUP@MyXk">
                          <field name="NUM">1</field>
                        </shadow>
                        <block type="variables_get" id="dfTDJrA0(r!mPzqk_b^O">
                          <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                        </block>
                      </value>
                      <value name="B">
                        <shadow type="math_number" id=")QfF.2k^PtGI2GW~Xh.E">
                          <field name="NUM">5.1</field>
                        </shadow>
                      </value>
                    </block>
                  </value>
                  <value name="B">
                    <shadow type="math_number" id="kd|@cVabO(5=^Emb%3P_">
                      <field name="NUM">1000</field>
                    </shadow>
                  </value>
                </block>
              </value>
              <next>
                <block type="variables_set" id="HUSPsI8yrvs1R9buB5UE">
                  <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                  <value name="VALUE">
                    <block type="get_value" id="|=$q%x;t`MAEW/vG=BLQ">
                      <field name="ATTR">val</field>
                      <field name="OID">sonoff.0.Aqua_Float.SENSOR.COUNTER.C2</field>
                    </block>
                  </value>
                  <next>
                    <block type="on_ext" id="0:-d[({.Z}?pVdpxL($`">
                      <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="0W#F=X0/oRtnrPk9h3{x">
                          <field name="oid">sonoff.0.Aqua_Float.POWER</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="-/ZpX8Na)@}o-6|}CSL!">
                          <value name="IF0">
                            <block type="logic_compare" id="-e{?t`m]:rD;6A=8$SJn">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="~.`biXAxtVIX::f,31wZ">
                                  <field name="ATTR">val</field>
                                  <field name="OID">sonoff.0.Aqua_Float.POWER</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="?6uuz[3#IE-ikDQ,8S:b">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="+J6RXi5dE%yH2jh%*6!s">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="gHf%u#Etctvw!kr/.gS=">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="update" id="?h=3;[vg7tLw)/h@7:$A">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_arithmetic" id="e1#%MoOBW(WQNQtz+];;">
                                      <field name="OP">MULTIPLY</field>
                                      <value name="A">
                                        <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="variables_get" id=",s^*MoNszpa:oog%EMAW">
                                          <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <shadow type="math_number" id="j[l*MeT/~[+quhxnrS7C">
                                          <field name="NUM">5.1</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="debug" id="^-PLnz!%La/%esP+p|q%">
                                      <field name="Severity">info</field>
                                      <value name="TEXT">
                                        <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                          <field name="TEXT">test</field>
                                        </shadow>
                                        <block type="text_join" id="oliPeI~VRSKRwW7]r|%]">
                                          <mutation items="2"></mutation>
                                          <value name="ADD0">
                                            <block type="math_arithmetic" id="Q,q,)Fqfx8Dcu]de0[XS">
                                              <field name="OP">MULTIPLY</field>
                                              <value name="A">
                                                <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="variables_get" id="z/,x;+#E?BVELckv)U}3">
                                                  <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <shadow type="math_number" id=")SsRvEav^gC^x{KjjCyf">
                                                  <field name="NUM">5.1</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="ADD1">
                                            <block type="text" id="8Ojo1T/MND*{-XQvij#:">
                                              <field name="TEXT"> ml</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <next>
                            <block type="controls_if" id=",aY{tNn{Zq6[:-ELj0As">
                              <value name="IF0">
                                <block type="logic_compare" id="A1JHG3$7vPc~S.zi3zOA">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="?CKwE$ej^`bqs*$[-]c:">
                                      <field name="ATTR">val</field>
                                      <field name="OID">sonoff.0.Aqua_Float.POWER</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="Y$!/TyZ,:iO6_8U(xz*o">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="control" id="8Gs!_Fp|Q_FY!2D:b!lM">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="uAeyzfF?Q[,YVnAkN:ev">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="update" id="fwHm}o7U6~1d|Z|{o_na">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_rndfixed" id=";]qdo[hKwhyu5U)H]|AP">
                                          <field name="n">1</field>
                                          <value name="x">
                                            <shadow type="math_number" id="%/fU!@WL!D1NR8vZIXrJ">
                                              <field name="NUM">3.1234</field>
                                            </shadow>
                                            <block type="math_arithmetic" id=";4%D/iw5+jbnB}~cw5^U">
                                              <field name="OP">ADD</field>
                                              <value name="A">
                                                <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="get_value" id="M_~UzJP71@mQ8;LaEqA;">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <shadow type="math_number" id="W)Ad2(Y4FzH8rN6?DDSG">
                                                  <field name="NUM">5.1</field>
                                                </shadow>
                                                <block type="math_arithmetic" id="--Yqm1%UxoJEeNrk!c.P">
                                                  <field name="OP">MULTIPLY</field>
                                                  <value name="A">
                                                    <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="variables_get" id="su_iSda]mMUcg|Ylu@=o">
                                                      <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <shadow type="math_number" id=")^cYV1_GG2c6MZ]{|#7y">
                                                      <field name="NUM">5.1</field>
                                                    </shadow>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="update" id="v@JXdPp^SX$e}[;*TN;5">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_rndfixed" id="H]3.WGAtE,UJ;+O:yMqK">
                                              <field name="n">3</field>
                                              <value name="x">
                                                <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL">
                                                  <field name="NUM">3.1234</field>
                                                </shadow>
                                                <block type="math_arithmetic" id="n+SR|VkO!e$%A-qY%U?~">
                                                  <field name="OP">ADD</field>
                                                  <value name="A">
                                                    <shadow type="math_number" id="*jv}6cjSI{#yaUP@MyXk">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="get_value" id="HFTLl.5s}DD!S3VkI2}w">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <shadow type="math_number" id="f%DO%LG5^1o@Ix{U_@A~">
                                                      <field name="NUM">5.1</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="aUjod9%H]Jr`c:7;L`1L">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="math_arithmetic" id="kNX*w+DLCh?h;QW6++Z]">
                                                          <field name="OP">MULTIPLY</field>
                                                          <value name="A">
                                                            <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="variables_get" id="==0y1MmV=A38?y{8!7Qp">
                                                              <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id="]l8R1tU7Xg/|fi2)D~kS">
                                                              <field name="NUM">5.1</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="W)Ad2(Y4FzH8rN6?DDSG">
                                                          <field name="NUM">1000</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="update" id="`NW9_QcSlKGP;b[9@.QH">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="|m|G@]xx7.d^nS-E2Q,B">
                                                  <field name="NUM">0</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="debug" id="VbtK/x1iMQ[uIZ]BFI2R">
                                                  <field name="Severity">info</field>
                                                  <value name="TEXT">
                                                    <shadow type="text" id="eY+;zViF,NH})5!!C8Al">
                                                      <field name="TEXT">test</field>
                                                    </shadow>
                                                    <block type="math_rndfixed" id="1K#w;9hOMMM]85p5dS{^">
                                                      <field name="n">3</field>
                                                      <value name="x">
                                                        <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL">
                                                          <field name="NUM">3.1234</field>
                                                        </shadow>
                                                        <block type="math_arithmetic" id="orkGrIrLF6pxkL0G.@c7">
                                                          <field name="OP">ADD</field>
                                                          <value name="A">
                                                            <shadow type="math_number" id="*jv}6cjSI{#yaUP@MyXk">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="get_value" id="z^[3xVATuRPkQZy^+9uL">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id="f%DO%LG5^1o@Ix{U_@A~">
                                                              <field name="NUM">5.1</field>
                                                            </shadow>
                                                            <block type="math_arithmetic" id="g`5V!ld7Q)L](PfiDQIO">
                                                              <field name="OP">DIVIDE</field>
                                                              <value name="A">
                                                                <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="math_arithmetic" id="(iIdHa2r1]QW!3;l}VWB">
                                                                  <field name="OP">MULTIPLY</field>
                                                                  <value name="A">
                                                                    <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="6Y;STQc/8w8(*}?^gP^x">
                                                                      <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id="ZIm/;!1xk;j/Q1T4P(d7">
                                                                      <field name="NUM">5.1</field>
                                                                    </shadow>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="B|YSSV_~-Z#/)QXaRcbJ">
                                                                  <field name="NUM">1000</field>
                                                                </shadow>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="debug" id="ESkP;ss;~ZDB;gISHFI]">
                                                      <field name="Severity">info</field>
                                                      <value name="TEXT">
                                                        <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                          <field name="TEXT">test</field>
                                                        </shadow>
                                                        <block type="text_join" id="R[aL32f3![219OSKE$k!">
                                                          <mutation items="2"></mutation>
                                                          <value name="ADD0">
                                                            <block type="variables_get" id="Y%f8;@,D;lNrR?pmQ|(Z">
                                                              <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD1">
                                                            <block type="text" id="q=ZJuFoniJND[_z;_j~M">
                                                              <field name="TEXT"> Liter</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="telegram_call" id="HP%v-*cCsG%`jLmz$NzT">
                                                          <field name="INSTANCE">.0</field>
                                                          <field name="LANGUAGE"></field>
                                                          <field name="REPEATS">1</field>
                                                          <field name="LOG"></field>
                                                          <value name="MESSAGE">
                                                            <shadow type="text" id=":(YMTpY/k)a7+-W7~g|M">
                                                              <field name="TEXT">text</field>
                                                            </shadow>
                                                            <block type="text_join" id=";;6oqX}l/W(ws@3[8iFR">
                                                              <mutation items="3"></mutation>
                                                              <value name="ADD0">
                                                                <block type="math_arithmetic" id="Y37WPVV0`sb~=]u|%^:{">
                                                                  <field name="OP">MULTIPLY</field>
                                                                  <value name="A">
                                                                    <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="wimbm((,ufreXmGowP_b">
                                                                      <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Sensorwert</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id="UH4]vU,[X+aWc.0|JEhM">
                                                                      <field name="NUM">5.1</field>
                                                                    </shadow>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="ADD1">
                                                                <block type="text" id="e)3mz5qz)A1i;o:E{!47">
                                                                  <field name="TEXT"> ml</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD2">
                                                                <block type="text" id="We*0)kla7,,mg^N5.sPb">
                                                                  <field name="TEXT"> Wasser wurden dosiert</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="USERNAME">
                                                            <shadow type="text" id="X{lxgUXzI0kZ[MSI2uZV">
                                                              <field name="TEXT"></field>
                                                            </shadow>
                                                          </value>
                                                          <next>
                                                            <block type="exec" id="M$[Xr*Msg!BILkU,.}1P">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                              <field name="WITH_STATEMENT">FALSE</field>
                                                              <field name="LOG"></field>
                                                              <value name="COMMAND">
                                                                <shadow type="text" id="h}Wf^Jm-chI/p|/BP4RP">
                                                                  <field name="TEXT">http://192.168.0.71/cm?cmnd=counter2 0</field>
                                                                </shadow>
                                                              </value>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </next>
            </block>
            <block type="schedule" id="eY2k):|9:7y;jFJ|-e{." x="-338" y="-813">
              <field name="SCHEDULE">{"time":{"exactTime":true,"start":"00:00"},"period":{"years":1,"yearDate":1,"yearMonth":1}}</field>
              <statement name="STATEMENT">
                <block type="update" id="|*@i5i^pfX8@UCo}nN4j">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="math_number" id="27z6jlXz=#}B7;,?{V7M">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                </block>
              </statement>
              <next>
                <block type="schedule" id="!0s4!(IKf352-$Cjs+=H">
                  <field name="SCHEDULE">{"time":{"exactTime":true,"start":"00:00"},"period":{"days":1},"valid":{"from":"26.07.2024","to":""}}</field>
                  <statement name="STATEMENT">
                    <block type="update" id=",B.vece!}v4W4j`J0O1r">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="math_number" id="(P{ST5UTzs=*|2/~;Z+d">
                          <field name="NUM">0</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </xml>
          
          paul53P Offline
          paul53P Offline
          paul53
          schrieb am zuletzt editiert von paul53
          #11

          @aphofis
          Mit dem Javascript-Code kann ich nichts anfangen, außer du möchtest künftig in Javascript weiter programmieren.
          Ich benötige den XML-Export von Blockly.

          @aphofis sagte in Aquarium Wasserstand (Wasser Niveau Regulierung):

          Wäre es so korrekt !?

          Nein.
          Wozu 3 Trigger auf den gleichen Datenpunkt "sonoff.0.Aqua_Float.POWER"? Man verwendet pro Datenpunkt nur einen Trigger. Was ist "sonoff.0.Aqua_Float.POWER"?
          Welche Funktion hat der exec-Block unten? Für eine URL wäre wohl der httpGet-Block eher geeignet.

          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

          AphofisA 1 Antwort Letzte Antwort
          0
          • paul53P paul53

            @aphofis
            Mit dem Javascript-Code kann ich nichts anfangen, außer du möchtest künftig in Javascript weiter programmieren.
            Ich benötige den XML-Export von Blockly.

            @aphofis sagte in Aquarium Wasserstand (Wasser Niveau Regulierung):

            Wäre es so korrekt !?

            Nein.
            Wozu 3 Trigger auf den gleichen Datenpunkt "sonoff.0.Aqua_Float.POWER"? Man verwendet pro Datenpunkt nur einen Trigger. Was ist "sonoff.0.Aqua_Float.POWER"?
            Welche Funktion hat der exec-Block unten? Für eine URL wäre wohl der httpGet-Block eher geeignet.

            AphofisA Offline
            AphofisA Offline
            Aphofis
            schrieb am zuletzt editiert von
            #12

            @paul53 Hab denXMl Export angehängt.
            "sonoff.0.Aqua_Float.POWER" ist der Schwimmer
            "sonoff.0.Aqua_Control.POWER1" ist das Magnetventil
            "sonoff.0.Aqua_Float.SENSOR.COUNTER.C2" ist der Wasser Durchfluß Messer
            Der exec Block soll nach dem Wasser dosiert wurde im Tasmota Gerät den Counter vom Wasser Durchfluß Sensor auf null stellen Damit beim nächsten pumpen der Wert 0 hat.

            paul53P 1 Antwort Letzte Antwort
            0
            • AphofisA Aphofis

              @paul53 Hab denXMl Export angehängt.
              "sonoff.0.Aqua_Float.POWER" ist der Schwimmer
              "sonoff.0.Aqua_Control.POWER1" ist das Magnetventil
              "sonoff.0.Aqua_Float.SENSOR.COUNTER.C2" ist der Wasser Durchfluß Messer
              Der exec Block soll nach dem Wasser dosiert wurde im Tasmota Gerät den Counter vom Wasser Durchfluß Sensor auf null stellen Damit beim nächsten pumpen der Wert 0 hat.

              paul53P Offline
              paul53P Offline
              paul53
              schrieb am zuletzt editiert von paul53
              #13

              @aphofis sagte: Hab denXMl Export angehängt.

              Habe beide Skripte in ein Skript zusammengeführt und angepasst.

              Blockly_temp.JPG

              <xml xmlns="https://developers.google.com/blockly/xml">
               <variables>
                 <variable id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</variable>
                 <variable id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</variable>
                 <variable id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</variable>
                 <variable type="timeout" id="timeout">timeout</variable>
               </variables>
               <block type="variables_set" id="HUSPsI8yrvs1R9buB5UE" x="-1212" y="-763">
                 <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                 <value name="VALUE">
                   <block type="math_arithmetic" id="e1#%MoOBW(WQNQtz+];;">
                     <field name="OP">MULTIPLY</field>
                     <value name="A">
                       <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                         <field name="NUM">1</field>
                       </shadow>
                       <block type="get_value" id="|=$q%x;t`MAEW/vG=BLQ">
                         <field name="ATTR">val</field>
                         <field name="OID">sonoff.0.Aqua_Float.SENSOR.COUNTER.C2</field>
                       </block>
                     </value>
                     <value name="B">
                       <shadow type="math_number" id="j[l*MeT/~[+quhxnrS7C">
                         <field name="NUM">5.1</field>
                       </shadow>
                     </value>
                   </block>
                 </value>
                 <next>
                   <block type="variables_set" id="HchfBD.f$i=}z$B3%%ro">
                     <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                     <value name="VALUE">
                       <block type="get_value" id="M_~UzJP71@mQ8;LaEqA;">
                         <field name="ATTR">val</field>
                         <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                       </block>
                     </value>
                     <next>
                       <block type="variables_set" id="eg3d1X/Cm`7YA1`r@6/5">
                         <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                         <value name="VALUE">
                           <block type="get_value" id="HFTLl.5s}DD!S3VkI2}w">
                             <field name="ATTR">val</field>
                             <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                           </block>
                         </value>
                         <next>
                           <block type="on_ext" id="0:-d[({.Z}?pVdpxL($`">
                             <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="0W#F=X0/oRtnrPk9h3{x">
                                 <field name="oid">sonoff.0.Aqua_Float.POWER</field>
                               </shadow>
                               <block type="text" id="*P`{6.y$Qz:6)XRyP/e.">
                                 <field name="TEXT">sonoff.0.Aqua_Float.SENSOR.COUNTER.C2</field>
                               </block>
                             </value>
                             <statement name="STATEMENT">
                               <block type="variables_set" id=".o$v5mYbaxJ%Dy^rAJ~@">
                                 <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                 <value name="VALUE">
                                   <block type="math_arithmetic" id="Q,q,)Fqfx8Dcu]de0[XS">
                                     <field name="OP">MULTIPLY</field>
                                     <value name="A">
                                       <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                         <field name="NUM">1</field>
                                       </shadow>
                                       <block type="on_source" id="3{.pWaaavxoM|Ix^BlA}">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <shadow type="math_number" id=")SsRvEav^gC^x{KjjCyf">
                                         <field name="NUM">5.1</field>
                                       </shadow>
                                     </value>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="update" id="?h=3;[vg7tLw)/h@7:$A">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="variables_get" id=",s^*MoNszpa:oog%EMAW">
                                         <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="debug" id="^-PLnz!%La/%esP+p|q%">
                                         <field name="Severity">info</field>
                                         <value name="TEXT">
                                           <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                             <field name="TEXT">test</field>
                                           </shadow>
                                           <block type="text_join" id="oliPeI~VRSKRwW7]r|%]" inline="true">
                                             <mutation items="2"></mutation>
                                             <value name="ADD0">
                                               <block type="variables_get" id="-A9r0_TWSe~DfBweAXDt">
                                                 <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                               </block>
                                             </value>
                                             <value name="ADD1">
                                               <block type="text" id="8Ojo1T/MND*{-XQvij#:">
                                                 <field name="TEXT"> ml</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                             <next>
                               <block type="on" id=".Kws=H5v3:9sC$2y}XY.">
                                 <field name="OID">sonoff.0.Aqua_Float.POWER</field>
                                 <field name="CONDITION">ne</field>
                                 <field name="ACK_CONDITION"></field>
                                 <statement name="STATEMENT">
                                   <block type="control" id="`#?D6cI2R48DM4)iEV2)">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="on_source" id="Z:Ey]JGh2[+Z2p6CktfV">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="controls_if" id="fwTIogd8xTfe{#gzL9Cn">
                                         <value name="IF0">
                                           <block type="logic_negate" id="U/Ou4#ODbm6%waUiXwK3">
                                             <value name="BOOL">
                                               <block type="on_source" id="LKR8T,H^%|Gh2gr{;F,#">
                                                 <field name="ATTR">state.val</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <statement name="DO0">
                                           <block type="timeouts_settimeout" id="RtR6.MNo`wh`ud[PbJ]:">
                                             <field name="NAME">timeout</field>
                                             <field name="DELAY">500</field>
                                             <field name="UNIT">ms</field>
                                             <statement name="STATEMENT">
                                               <block type="math_change" id="IX/.|6z/Aro1]dY5SAYb">
                                                 <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                 <value name="DELTA">
                                                   <shadow type="math_number" id="=M*S)jZ,M4p(dx.CTNCh">
                                                     <field name="NUM">1</field>
                                                   </shadow>
                                                   <block type="variables_get" id="su_iSda]mMUcg|Ylu@=o">
                                                     <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="update" id="fwHm}o7U6~1d|Z|{o_na">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                     <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                                     <field name="WITH_DELAY">FALSE</field>
                                                     <value name="VALUE">
                                                       <block type="math_rndfixed" id=";]qdo[hKwhyu5U)H]|AP">
                                                         <field name="n">1</field>
                                                         <value name="x">
                                                           <shadow type="math_number" id="%/fU!@WL!D1NR8vZIXrJ">
                                                             <field name="NUM">3.1234</field>
                                                           </shadow>
                                                           <block type="variables_get" id=".$Y/`yQi2Ep48g$zUH!(">
                                                             <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="math_change" id="|lE6{O$UQZ68v5$V-mhf">
                                                         <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                         <value name="DELTA">
                                                           <shadow type="math_number" id="r(O489L+4qKOus0|bJZ]">
                                                             <field name="NUM">1</field>
                                                           </shadow>
                                                           <block type="math_arithmetic" id="aUjod9%H]Jr`c:7;L`1L">
                                                             <field name="OP">DIVIDE</field>
                                                             <value name="A">
                                                               <shadow type="math_number" id="G]!BBiks_53Irs;)eRZ/">
                                                                 <field name="NUM">1</field>
                                                               </shadow>
                                                               <block type="variables_get" id="==0y1MmV=A38?y{8!7Qp">
                                                                 <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <shadow type="math_number" id="W)Ad2(Y4FzH8rN6?DDSG">
                                                                 <field name="NUM">1000</field>
                                                               </shadow>
                                                             </value>
                                                           </block>
                                                         </value>
                                                         <next>
                                                           <block type="update" id="v@JXdPp^SX$e}[;*TN;5">
                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                             <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                                             <field name="WITH_DELAY">FALSE</field>
                                                             <value name="VALUE">
                                                               <block type="math_rndfixed" id="H]3.WGAtE,UJ;+O:yMqK">
                                                                 <field name="n">3</field>
                                                                 <value name="x">
                                                                   <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL">
                                                                     <field name="NUM">3.1234</field>
                                                                   </shadow>
                                                                   <block type="variables_get" id="/n6Y=9C~2W@KV$RXN-DW">
                                                                     <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <next>
                                                               <block type="update" id="`NW9_QcSlKGP;b[9@.QH">
                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                 <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                                                 <field name="WITH_DELAY">FALSE</field>
                                                                 <value name="VALUE">
                                                                   <block type="math_number" id="|m|G@]xx7.d^nS-E2Q,B">
                                                                     <field name="NUM">0</field>
                                                                   </block>
                                                                 </value>
                                                                 <next>
                                                                   <block type="debug" id="ESkP;ss;~ZDB;gISHFI]">
                                                                     <field name="Severity">info</field>
                                                                     <value name="TEXT">
                                                                       <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                                         <field name="TEXT">test</field>
                                                                       </shadow>
                                                                       <block type="text_join" id="R[aL32f3![219OSKE$k!" inline="true">
                                                                         <mutation items="2"></mutation>
                                                                         <value name="ADD0">
                                                                           <block type="variables_get" id="Y%f8;@,D;lNrR?pmQ|(Z">
                                                                             <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                           </block>
                                                                         </value>
                                                                         <value name="ADD1">
                                                                           <block type="text" id="q=ZJuFoniJND[_z;_j~M">
                                                                             <field name="TEXT"> Liter</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                     <next>
                                                                       <block type="telegram_call" id="HP%v-*cCsG%`jLmz$NzT" inline="true">
                                                                         <field name="INSTANCE">.0</field>
                                                                         <field name="LANGUAGE"></field>
                                                                         <field name="REPEATS">1</field>
                                                                         <field name="LOG"></field>
                                                                         <value name="MESSAGE">
                                                                           <shadow type="text" id=":(YMTpY/k)a7+-W7~g|M">
                                                                             <field name="TEXT">text</field>
                                                                           </shadow>
                                                                           <block type="text_join" id=";;6oqX}l/W(ws@3[8iFR" inline="true">
                                                                             <mutation items="3"></mutation>
                                                                             <value name="ADD0">
                                                                               <block type="variables_get" id="wimbm((,ufreXmGowP_b">
                                                                                 <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                               </block>
                                                                             </value>
                                                                             <value name="ADD1">
                                                                               <block type="text" id="e)3mz5qz)A1i;o:E{!47">
                                                                                 <field name="TEXT"> ml</field>
                                                                               </block>
                                                                             </value>
                                                                             <value name="ADD2">
                                                                               <block type="text" id="We*0)kla7,,mg^N5.sPb">
                                                                                 <field name="TEXT"> Wasser wurden dosiert</field>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                         <value name="USERNAME">
                                                                           <shadow type="text" id="X{lxgUXzI0kZ[MSI2uZV">
                                                                             <field name="TEXT"></field>
                                                                           </shadow>
                                                                         </value>
                                                                         <next>
                                                                           <block type="http_get" id="e9^C0,Xruq+R^Q=|k3dc">
                                                                             <field name="TIMEOUT">2000</field>
                                                                             <field name="UNIT">ms</field>
                                                                             <field name="TYPE">text</field>
                                                                             <value name="URL">
                                                                               <shadow type="text" id=",_J4F8mdkf!o;QG{KC2z">
                                                                                 <field name="TEXT">http://192.168.0.71/cm?cmnd=counter2 0</field>
                                                                               </shadow>
                                                                             </value>
                                                                           </block>
                                                                         </next>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </statement>
                                           </block>
                                         </statement>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
               <block type="schedule" id="eY2k):|9:7y;jFJ|-e{." x="-637" y="-488">
                 <field name="SCHEDULE">0 0 1 1 *</field>
                 <statement name="STATEMENT">
                   <block type="variables_set" id="cEkH53kNZuyOARmP+Q|,">
                     <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                     <value name="VALUE">
                       <block type="math_number" id="9;ptE-Ve[-8t]`aa|Tgl">
                         <field name="NUM">0</field>
                       </block>
                     </value>
                     <next>
                       <block type="update" id="|*@i5i^pfX8@UCo}nN4j">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                         <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                         <field name="WITH_DELAY">FALSE</field>
                         <value name="VALUE">
                           <block type="math_number" id="27z6jlXz=#}B7;,?{V7M">
                             <field name="NUM">0</field>
                           </block>
                         </value>
                       </block>
                     </next>
                   </block>
                 </statement>
                 <next>
                   <block type="schedule" id="!0s4!(IKf352-$Cjs+=H">
                     <field name="SCHEDULE">0 0 * * *</field>
                     <statement name="STATEMENT">
                       <block type="variables_set" id="u2/ozk5F`Si~3`_cLs4`">
                         <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                         <value name="VALUE">
                           <block type="math_number" id="kQwxXS=Yw7,Q5s]YKP}*">
                             <field name="NUM">0</field>
                           </block>
                         </value>
                         <next>
                           <block type="update" id=",B.vece!}v4W4j`J0O1r">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="math_number" id="(P{ST5UTzs=*|2/~;Z+d">
                                 <field name="NUM">0</field>
                               </block>
                             </value>
                           </block>
                         </next>
                       </block>
                     </statement>
                   </block>
                 </next>
               </block>
              </xml>
              

              EDIT: Habe noch eine Verzögerung eingebaut, damit das Magnetventil geschlossen ist, wenn die Wassermenge ausgewertet wird.

              Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
              Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

              AphofisA 1 Antwort Letzte Antwort
              1
              • paul53P paul53

                @aphofis sagte: Hab denXMl Export angehängt.

                Habe beide Skripte in ein Skript zusammengeführt und angepasst.

                Blockly_temp.JPG

                <xml xmlns="https://developers.google.com/blockly/xml">
                 <variables>
                   <variable id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</variable>
                   <variable id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</variable>
                   <variable id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</variable>
                   <variable type="timeout" id="timeout">timeout</variable>
                 </variables>
                 <block type="variables_set" id="HUSPsI8yrvs1R9buB5UE" x="-1212" y="-763">
                   <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                   <value name="VALUE">
                     <block type="math_arithmetic" id="e1#%MoOBW(WQNQtz+];;">
                       <field name="OP">MULTIPLY</field>
                       <value name="A">
                         <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                           <field name="NUM">1</field>
                         </shadow>
                         <block type="get_value" id="|=$q%x;t`MAEW/vG=BLQ">
                           <field name="ATTR">val</field>
                           <field name="OID">sonoff.0.Aqua_Float.SENSOR.COUNTER.C2</field>
                         </block>
                       </value>
                       <value name="B">
                         <shadow type="math_number" id="j[l*MeT/~[+quhxnrS7C">
                           <field name="NUM">5.1</field>
                         </shadow>
                       </value>
                     </block>
                   </value>
                   <next>
                     <block type="variables_set" id="HchfBD.f$i=}z$B3%%ro">
                       <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                       <value name="VALUE">
                         <block type="get_value" id="M_~UzJP71@mQ8;LaEqA;">
                           <field name="ATTR">val</field>
                           <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                         </block>
                       </value>
                       <next>
                         <block type="variables_set" id="eg3d1X/Cm`7YA1`r@6/5">
                           <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                           <value name="VALUE">
                             <block type="get_value" id="HFTLl.5s}DD!S3VkI2}w">
                               <field name="ATTR">val</field>
                               <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                             </block>
                           </value>
                           <next>
                             <block type="on_ext" id="0:-d[({.Z}?pVdpxL($`">
                               <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="0W#F=X0/oRtnrPk9h3{x">
                                   <field name="oid">sonoff.0.Aqua_Float.POWER</field>
                                 </shadow>
                                 <block type="text" id="*P`{6.y$Qz:6)XRyP/e.">
                                   <field name="TEXT">sonoff.0.Aqua_Float.SENSOR.COUNTER.C2</field>
                                 </block>
                               </value>
                               <statement name="STATEMENT">
                                 <block type="variables_set" id=".o$v5mYbaxJ%Dy^rAJ~@">
                                   <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                   <value name="VALUE">
                                     <block type="math_arithmetic" id="Q,q,)Fqfx8Dcu]de0[XS">
                                       <field name="OP">MULTIPLY</field>
                                       <value name="A">
                                         <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                           <field name="NUM">1</field>
                                         </shadow>
                                         <block type="on_source" id="3{.pWaaavxoM|Ix^BlA}">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <shadow type="math_number" id=")SsRvEav^gC^x{KjjCyf">
                                           <field name="NUM">5.1</field>
                                         </shadow>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="update" id="?h=3;[vg7tLw)/h@7:$A">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="variables_get" id=",s^*MoNszpa:oog%EMAW">
                                           <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="debug" id="^-PLnz!%La/%esP+p|q%">
                                           <field name="Severity">info</field>
                                           <value name="TEXT">
                                             <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                               <field name="TEXT">test</field>
                                             </shadow>
                                             <block type="text_join" id="oliPeI~VRSKRwW7]r|%]" inline="true">
                                               <mutation items="2"></mutation>
                                               <value name="ADD0">
                                                 <block type="variables_get" id="-A9r0_TWSe~DfBweAXDt">
                                                   <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                 </block>
                                               </value>
                                               <value name="ADD1">
                                                 <block type="text" id="8Ojo1T/MND*{-XQvij#:">
                                                   <field name="TEXT"> ml</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                               <next>
                                 <block type="on" id=".Kws=H5v3:9sC$2y}XY.">
                                   <field name="OID">sonoff.0.Aqua_Float.POWER</field>
                                   <field name="CONDITION">ne</field>
                                   <field name="ACK_CONDITION"></field>
                                   <statement name="STATEMENT">
                                     <block type="control" id="`#?D6cI2R48DM4)iEV2)">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="on_source" id="Z:Ey]JGh2[+Z2p6CktfV">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="controls_if" id="fwTIogd8xTfe{#gzL9Cn">
                                           <value name="IF0">
                                             <block type="logic_negate" id="U/Ou4#ODbm6%waUiXwK3">
                                               <value name="BOOL">
                                                 <block type="on_source" id="LKR8T,H^%|Gh2gr{;F,#">
                                                   <field name="ATTR">state.val</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <statement name="DO0">
                                             <block type="timeouts_settimeout" id="RtR6.MNo`wh`ud[PbJ]:">
                                               <field name="NAME">timeout</field>
                                               <field name="DELAY">500</field>
                                               <field name="UNIT">ms</field>
                                               <statement name="STATEMENT">
                                                 <block type="math_change" id="IX/.|6z/Aro1]dY5SAYb">
                                                   <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                   <value name="DELTA">
                                                     <shadow type="math_number" id="=M*S)jZ,M4p(dx.CTNCh">
                                                       <field name="NUM">1</field>
                                                     </shadow>
                                                     <block type="variables_get" id="su_iSda]mMUcg|Ylu@=o">
                                                       <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="update" id="fwHm}o7U6~1d|Z|{o_na">
                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                       <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="math_rndfixed" id=";]qdo[hKwhyu5U)H]|AP">
                                                           <field name="n">1</field>
                                                           <value name="x">
                                                             <shadow type="math_number" id="%/fU!@WL!D1NR8vZIXrJ">
                                                               <field name="NUM">3.1234</field>
                                                             </shadow>
                                                             <block type="variables_get" id=".$Y/`yQi2Ep48g$zUH!(">
                                                               <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="math_change" id="|lE6{O$UQZ68v5$V-mhf">
                                                           <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                           <value name="DELTA">
                                                             <shadow type="math_number" id="r(O489L+4qKOus0|bJZ]">
                                                               <field name="NUM">1</field>
                                                             </shadow>
                                                             <block type="math_arithmetic" id="aUjod9%H]Jr`c:7;L`1L">
                                                               <field name="OP">DIVIDE</field>
                                                               <value name="A">
                                                                 <shadow type="math_number" id="G]!BBiks_53Irs;)eRZ/">
                                                                   <field name="NUM">1</field>
                                                                 </shadow>
                                                                 <block type="variables_get" id="==0y1MmV=A38?y{8!7Qp">
                                                                   <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                 </block>
                                                               </value>
                                                               <value name="B">
                                                                 <shadow type="math_number" id="W)Ad2(Y4FzH8rN6?DDSG">
                                                                   <field name="NUM">1000</field>
                                                                 </shadow>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="update" id="v@JXdPp^SX$e}[;*TN;5">
                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                               <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                                               <field name="WITH_DELAY">FALSE</field>
                                                               <value name="VALUE">
                                                                 <block type="math_rndfixed" id="H]3.WGAtE,UJ;+O:yMqK">
                                                                   <field name="n">3</field>
                                                                   <value name="x">
                                                                     <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL">
                                                                       <field name="NUM">3.1234</field>
                                                                     </shadow>
                                                                     <block type="variables_get" id="/n6Y=9C~2W@KV$RXN-DW">
                                                                       <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="update" id="`NW9_QcSlKGP;b[9@.QH">
                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                   <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="math_number" id="|m|G@]xx7.d^nS-E2Q,B">
                                                                       <field name="NUM">0</field>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="debug" id="ESkP;ss;~ZDB;gISHFI]">
                                                                       <field name="Severity">info</field>
                                                                       <value name="TEXT">
                                                                         <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                                           <field name="TEXT">test</field>
                                                                         </shadow>
                                                                         <block type="text_join" id="R[aL32f3![219OSKE$k!" inline="true">
                                                                           <mutation items="2"></mutation>
                                                                           <value name="ADD0">
                                                                             <block type="variables_get" id="Y%f8;@,D;lNrR?pmQ|(Z">
                                                                               <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                             </block>
                                                                           </value>
                                                                           <value name="ADD1">
                                                                             <block type="text" id="q=ZJuFoniJND[_z;_j~M">
                                                                               <field name="TEXT"> Liter</field>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                       <next>
                                                                         <block type="telegram_call" id="HP%v-*cCsG%`jLmz$NzT" inline="true">
                                                                           <field name="INSTANCE">.0</field>
                                                                           <field name="LANGUAGE"></field>
                                                                           <field name="REPEATS">1</field>
                                                                           <field name="LOG"></field>
                                                                           <value name="MESSAGE">
                                                                             <shadow type="text" id=":(YMTpY/k)a7+-W7~g|M">
                                                                               <field name="TEXT">text</field>
                                                                             </shadow>
                                                                             <block type="text_join" id=";;6oqX}l/W(ws@3[8iFR" inline="true">
                                                                               <mutation items="3"></mutation>
                                                                               <value name="ADD0">
                                                                                 <block type="variables_get" id="wimbm((,ufreXmGowP_b">
                                                                                   <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                                 </block>
                                                                               </value>
                                                                               <value name="ADD1">
                                                                                 <block type="text" id="e)3mz5qz)A1i;o:E{!47">
                                                                                   <field name="TEXT"> ml</field>
                                                                                 </block>
                                                                               </value>
                                                                               <value name="ADD2">
                                                                                 <block type="text" id="We*0)kla7,,mg^N5.sPb">
                                                                                   <field name="TEXT"> Wasser wurden dosiert</field>
                                                                                 </block>
                                                                               </value>
                                                                             </block>
                                                                           </value>
                                                                           <value name="USERNAME">
                                                                             <shadow type="text" id="X{lxgUXzI0kZ[MSI2uZV">
                                                                               <field name="TEXT"></field>
                                                                             </shadow>
                                                                           </value>
                                                                           <next>
                                                                             <block type="http_get" id="e9^C0,Xruq+R^Q=|k3dc">
                                                                               <field name="TIMEOUT">2000</field>
                                                                               <field name="UNIT">ms</field>
                                                                               <field name="TYPE">text</field>
                                                                               <value name="URL">
                                                                                 <shadow type="text" id=",_J4F8mdkf!o;QG{KC2z">
                                                                                   <field name="TEXT">http://192.168.0.71/cm?cmnd=counter2 0</field>
                                                                                 </shadow>
                                                                               </value>
                                                                             </block>
                                                                           </next>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </statement>
                                             </block>
                                           </statement>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
                 <block type="schedule" id="eY2k):|9:7y;jFJ|-e{." x="-637" y="-488">
                   <field name="SCHEDULE">0 0 1 1 *</field>
                   <statement name="STATEMENT">
                     <block type="variables_set" id="cEkH53kNZuyOARmP+Q|,">
                       <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                       <value name="VALUE">
                         <block type="math_number" id="9;ptE-Ve[-8t]`aa|Tgl">
                           <field name="NUM">0</field>
                         </block>
                       </value>
                       <next>
                         <block type="update" id="|*@i5i^pfX8@UCo}nN4j">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="math_number" id="27z6jlXz=#}B7;,?{V7M">
                               <field name="NUM">0</field>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <next>
                     <block type="schedule" id="!0s4!(IKf352-$Cjs+=H">
                       <field name="SCHEDULE">0 0 * * *</field>
                       <statement name="STATEMENT">
                         <block type="variables_set" id="u2/ozk5F`Si~3`_cLs4`">
                           <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                           <value name="VALUE">
                             <block type="math_number" id="kQwxXS=Yw7,Q5s]YKP}*">
                               <field name="NUM">0</field>
                             </block>
                           </value>
                           <next>
                             <block type="update" id=",B.vece!}v4W4j`J0O1r">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                               <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                               <field name="WITH_DELAY">FALSE</field>
                               <value name="VALUE">
                                 <block type="math_number" id="(P{ST5UTzs=*|2/~;Z+d">
                                   <field name="NUM">0</field>
                                 </block>
                               </value>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
                </xml>
                

                EDIT: Habe noch eine Verzögerung eingebaut, damit das Magnetventil geschlossen ist, wenn die Wassermenge ausgewertet wird.

                AphofisA Offline
                AphofisA Offline
                Aphofis
                schrieb am zuletzt editiert von Aphofis
                #14

                @paul53
                Das ja bombastisch!!!
                Ich frage mich bei jeder Steuerung wie man sowas kann.
                Ich hatte die bestehenden Werte aus den Datenpunkten gelöscht und dann das neue Blockly gestartet. Es wird zwar gezählt aber es steht nur in Wasser Jahr der alte Wert.
                Der war 7,004 Liter den hatte ich auch auf Null gesetzt. Doch nach dem Wasser dosiert wurde steht Wasser Tag auf "0" und Wasser Jahr wurde der alte wert 7,004 angenommen. Woher kommt das !? Ach ja und im Telegram Bot kommt nix an.
                Eingetragenen Bot Token hab ich kontrolliert der stimmt. Die Aquarium Steuerung, meldet per Telegram auch wenn Futter dosiert wird und Pumpe ein und ausgeschaltet wird also verbindung zu Telegram ist vorhanden.

                paul53P 1 Antwort Letzte Antwort
                0
                • AphofisA Aphofis

                  @paul53
                  Das ja bombastisch!!!
                  Ich frage mich bei jeder Steuerung wie man sowas kann.
                  Ich hatte die bestehenden Werte aus den Datenpunkten gelöscht und dann das neue Blockly gestartet. Es wird zwar gezählt aber es steht nur in Wasser Jahr der alte Wert.
                  Der war 7,004 Liter den hatte ich auch auf Null gesetzt. Doch nach dem Wasser dosiert wurde steht Wasser Tag auf "0" und Wasser Jahr wurde der alte wert 7,004 angenommen. Woher kommt das !? Ach ja und im Telegram Bot kommt nix an.
                  Eingetragenen Bot Token hab ich kontrolliert der stimmt. Die Aquarium Steuerung, meldet per Telegram auch wenn Futter dosiert wird und Pumpe ein und ausgeschaltet wird also verbindung zu Telegram ist vorhanden.

                  paul53P Offline
                  paul53P Offline
                  paul53
                  schrieb am zuletzt editiert von paul53
                  #15

                  @aphofis sagte: Der war 7,004 Liter den hatte ich auch auf Null gesetzt.

                  Vor dem Skriptstart?

                  @aphofis sagte in Aquarium Wasserstand (Wasser Niveau Regulierung):

                  im Telegram Bot kommt nix an.

                  Kam die Logausgabe "7.004 Liter"?
                  Mit Telegram kenne ich mich nicht aus.

                  Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                  Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                  AphofisA 1 Antwort Letzte Antwort
                  0
                  • paul53P paul53

                    @aphofis sagte: Der war 7,004 Liter den hatte ich auch auf Null gesetzt.

                    Vor dem Skriptstart?

                    @aphofis sagte in Aquarium Wasserstand (Wasser Niveau Regulierung):

                    im Telegram Bot kommt nix an.

                    Kam die Logausgabe "7.004 Liter"?
                    Mit Telegram kenne ich mich nicht aus.

                    AphofisA Offline
                    AphofisA Offline
                    Aphofis
                    schrieb am zuletzt editiert von
                    #16

                    @paul53
                    Ja Logausgabe kam mit 7,004 Liter aber woher hat die Steuerung den Wert. Hatte den ja vor Script Start gelöscht.
                    Ich Pumpe mal etwas Wasser aus dem Becken ab. Mal sehen vielleicht geht es ja wenn das von selsbt auslöst und nicht wenn ich den Schwimmer von hand betätige.

                    AphofisA 1 Antwort Letzte Antwort
                    0
                    • AphofisA Aphofis

                      @paul53
                      Ja Logausgabe kam mit 7,004 Liter aber woher hat die Steuerung den Wert. Hatte den ja vor Script Start gelöscht.
                      Ich Pumpe mal etwas Wasser aus dem Becken ab. Mal sehen vielleicht geht es ja wenn das von selsbt auslöst und nicht wenn ich den Schwimmer von hand betätige.

                      AphofisA Offline
                      AphofisA Offline
                      Aphofis
                      schrieb am zuletzt editiert von Aphofis
                      #17

                      @aphofis sagte in Aquarium Wasserstand (Wasser Niveau Regulierung):

                      @paul53
                      Ja Logausgabe kam mit 7,004 Liter aber woher hat die Steuerung den Wert. Hatte den ja vor Script Start gelöscht.
                      Ich Pumpe mal etwas Wasser aus dem Becken ab. Mal sehen vielleicht geht es ja wenn das von selsbt auslöst und nicht wenn ich den Schwimmer von hand betätige.

                      Also Wasser Tag & Wasser Jahr bleibt auf null.
                      Log Ausgabe sagt 0 liter sprich nur Jahr macht eine Ausgabe die tages angabe in ml fehlt.
                      Telegram sagt auch nichts
                      Counter wird sauber auf 0" gesetzt

                      paul53P 1 Antwort Letzte Antwort
                      0
                      • AphofisA Aphofis

                        @aphofis sagte in Aquarium Wasserstand (Wasser Niveau Regulierung):

                        @paul53
                        Ja Logausgabe kam mit 7,004 Liter aber woher hat die Steuerung den Wert. Hatte den ja vor Script Start gelöscht.
                        Ich Pumpe mal etwas Wasser aus dem Becken ab. Mal sehen vielleicht geht es ja wenn das von selsbt auslöst und nicht wenn ich den Schwimmer von hand betätige.

                        Also Wasser Tag & Wasser Jahr bleibt auf null.
                        Log Ausgabe sagt 0 liter sprich nur Jahr macht eine Ausgabe die tages angabe in ml fehlt.
                        Telegram sagt auch nichts
                        Counter wird sauber auf 0" gesetzt

                        paul53P Offline
                        paul53P Offline
                        paul53
                        schrieb am zuletzt editiert von paul53
                        #18

                        @aphofis sagte: Counter wird sauber auf 0" gesetzt

                        Bevor er auf 0 gesetzt wird: Zeigt er die dosierte Wassermenge an?
                        Er sollte nicht per Skript auf 0 gesetzt werden, denn das muss auch passieren, wenn der Sensorwert auf 0 gesetzt wird (httpGet).

                        Der Sensorwert ändert sich und das Log mit Wassermenge in ml kommt?

                        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                        AphofisA 1 Antwort Letzte Antwort
                        0
                        • paul53P paul53

                          @aphofis sagte: Counter wird sauber auf 0" gesetzt

                          Bevor er auf 0 gesetzt wird: Zeigt er die dosierte Wassermenge an?
                          Er sollte nicht per Skript auf 0 gesetzt werden, denn das muss auch passieren, wenn der Sensorwert auf 0 gesetzt wird (httpGet).

                          Der Sensorwert ändert sich und das Log mit Wassermenge in ml kommt?

                          AphofisA Offline
                          AphofisA Offline
                          Aphofis
                          schrieb am zuletzt editiert von
                          #19

                          @paul53
                          Hatte mal den javascript adapter neu gestartet nun werden ml Tag und Liter Jahr angezeigt und Telegram bekomme ich schon hin

                          AphofisA 1 Antwort Letzte Antwort
                          0
                          • AphofisA Aphofis

                            @paul53
                            Hatte mal den javascript adapter neu gestartet nun werden ml Tag und Liter Jahr angezeigt und Telegram bekomme ich schon hin

                            AphofisA Offline
                            AphofisA Offline
                            Aphofis
                            schrieb am zuletzt editiert von
                            #20

                            @paul53

                            Hab ja die Steuerung jetzt schon ein paar Tage am laufen. Irgenwie reagiert die Steuerung nicht darauf wenn der Schwimmer true ist. wenn ich den Schwimmer von Hand einmal hoch ziehe also false setze und dann auf true los lasse dann erst reagiert die Steuerung.
                            Ist da irgendwas falsch !?
                            Momentan sieht es so aus.
                            Screenshot 2024-08-13 054533.png

                            <xml xmlns="https://developers.google.com/blockly/xml">
                              <variables>
                                <variable id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</variable>
                                <variable id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</variable>
                                <variable id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</variable>
                                <variable type="timeout" id="timeout">timeout</variable>
                              </variables>
                              <block type="variables_set" id="HUSPsI8yrvs1R9buB5UE" x="-1212" y="-763">
                                <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                <value name="VALUE">
                                  <block type="math_arithmetic" id="e1#%MoOBW(WQNQtz+];;">
                                    <field name="OP">MULTIPLY</field>
                                    <value name="A">
                                      <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="get_value" id="|=$q%x;t`MAEW/vG=BLQ">
                                        <field name="ATTR">val</field>
                                        <field name="OID">sonoff.0.Aqua_Float.SENSOR.COUNTER.C2</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow type="math_number" id="j[l*MeT/~[+quhxnrS7C">
                                        <field name="NUM">5.1</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="variables_set" id="HchfBD.f$i=}z$B3%%ro">
                                    <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                    <value name="VALUE">
                                      <block type="get_value" id="M_~UzJP71@mQ8;LaEqA;">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="variables_set" id="eg3d1X/Cm`7YA1`r@6/5">
                                        <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                        <value name="VALUE">
                                          <block type="get_value" id="HFTLl.5s}DD!S3VkI2}w">
                                            <field name="ATTR">val</field>
                                            <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="on_ext" id="0:-d[({.Z}?pVdpxL($`">
                                            <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="0W#F=X0/oRtnrPk9h3{x">
                                                <field name="oid">sonoff.0.Aqua_Float.POWER</field>
                                              </shadow>
                                              <block type="text" id="*P`{6.y$Qz:6)XRyP/e.">
                                                <field name="TEXT">sonoff.0.Aqua_Float.SENSOR.COUNTER.C2</field>
                                              </block>
                                            </value>
                                            <statement name="STATEMENT">
                                              <block type="variables_set" id=".o$v5mYbaxJ%Dy^rAJ~@">
                                                <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                <value name="VALUE">
                                                  <block type="math_rndfixed" id="~C}Q;4pD[j1fqWGOQbxr">
                                                    <field name="n">2</field>
                                                    <value name="x">
                                                      <shadow type="math_number" id="sYM=iIrazCVz3G9{m*Wp">
                                                        <field name="NUM">3.1234</field>
                                                      </shadow>
                                                      <block type="math_arithmetic" id="Q,q,)Fqfx8Dcu]de0[XS">
                                                        <field name="OP">MULTIPLY</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="on_source" id="3{.pWaaavxoM|Ix^BlA}">
                                                            <field name="ATTR">state.val</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id=")SsRvEav^gC^x{KjjCyf">
                                                            <field name="NUM">5.1</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="update" id="?h=3;[vg7tLw)/h@7:$A">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="variables_get" id=",s^*MoNszpa:oog%EMAW">
                                                        <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="debug" id="^-PLnz!%La/%esP+p|q%">
                                                        <field name="Severity">info</field>
                                                        <value name="TEXT">
                                                          <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                            <field name="TEXT">test</field>
                                                          </shadow>
                                                          <block type="text_join" id="oliPeI~VRSKRwW7]r|%]" inline="true">
                                                            <mutation items="2"></mutation>
                                                            <value name="ADD0">
                                                              <block type="variables_get" id="-A9r0_TWSe~DfBweAXDt">
                                                                <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                              </block>
                                                            </value>
                                                            <value name="ADD1">
                                                              <block type="text" id="8Ojo1T/MND*{-XQvij#:">
                                                                <field name="TEXT"> ml</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="on" id=".Kws=H5v3:9sC$2y}XY.">
                                                <field name="OID">sonoff.0.Aqua_Float.POWER</field>
                                                <field name="CONDITION">ne</field>
                                                <field name="ACK_CONDITION"></field>
                                                <statement name="STATEMENT">
                                                  <block type="control" id="`#?D6cI2R48DM4)iEV2)">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="on_source" id="Z:Ey]JGh2[+Z2p6CktfV">
                                                        <field name="ATTR">state.val</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="controls_if" id="fwTIogd8xTfe{#gzL9Cn">
                                                        <value name="IF0">
                                                          <block type="logic_negate" id="U/Ou4#ODbm6%waUiXwK3">
                                                            <value name="BOOL">
                                                              <block type="on_source" id="LKR8T,H^%|Gh2gr{;F,#">
                                                                <field name="ATTR">state.val</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="timeouts_settimeout" id="RtR6.MNo`wh`ud[PbJ]:">
                                                            <field name="NAME">timeout</field>
                                                            <field name="DELAY">15</field>
                                                            <field name="UNIT">sec</field>
                                                            <statement name="STATEMENT">
                                                              <block type="math_change" id="IX/.|6z/Aro1]dY5SAYb">
                                                                <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                                <value name="DELTA">
                                                                  <shadow type="math_number" id="=M*S)jZ,M4p(dx.CTNCh">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="su_iSda]mMUcg|Ylu@=o">
                                                                    <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="update" id="fwHm}o7U6~1d|Z|{o_na">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                    <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="math_rndfixed" id=";]qdo[hKwhyu5U)H]|AP">
                                                                        <field name="n">1</field>
                                                                        <value name="x">
                                                                          <shadow type="math_number" id="%/fU!@WL!D1NR8vZIXrJ">
                                                                            <field name="NUM">3.1234</field>
                                                                          </shadow>
                                                                          <block type="variables_get" id=".$Y/`yQi2Ep48g$zUH!(">
                                                                            <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="math_change" id="|lE6{O$UQZ68v5$V-mhf">
                                                                        <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                        <value name="DELTA">
                                                                          <shadow type="math_number" id="r(O489L+4qKOus0|bJZ]">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="math_arithmetic" id="aUjod9%H]Jr`c:7;L`1L">
                                                                            <field name="OP">DIVIDE</field>
                                                                            <value name="A">
                                                                              <shadow type="math_number" id="G]!BBiks_53Irs;)eRZ/">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="==0y1MmV=A38?y{8!7Qp">
                                                                                <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <shadow type="math_number" id="W)Ad2(Y4FzH8rN6?DDSG">
                                                                                <field name="NUM">1000</field>
                                                                              </shadow>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="telegram" id="%Ac!=W);Rce9~t/iuvmU" collapsed="true">
                                                                            <field name="INSTANCE">.0</field>
                                                                            <field name="LOG"></field>
                                                                            <field name="SILENT">FALSE</field>
                                                                            <field name="PARSEMODE">default</field>
                                                                            <field name="ESCAPING">FALSE</field>
                                                                            <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                                                            <value name="MESSAGE">
                                                                              <shadow type="text" id="/qlY{U].1kjbanyv~*S8">
                                                                                <field name="TEXT">text</field>
                                                                              </shadow>
                                                                              <block type="text_join" id=";;6oqX}l/W(ws@3[8iFR" inline="false">
                                                                                <mutation items="6"></mutation>
                                                                                <value name="ADD0">
                                                                                  <block type="math_rndfixed" id="I;(*n|Y1J;sj}Vs~,1w`">
                                                                                    <field name="n">2</field>
                                                                                    <value name="x">
                                                                                      <shadow type="math_number" id="IZ`3Rk8S?(K[:=/b[Fvi">
                                                                                        <field name="NUM">3.1234</field>
                                                                                      </shadow>
                                                                                      <block type="variables_get" id="wimbm((,ufreXmGowP_b">
                                                                                        <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD1">
                                                                                  <block type="text" id="e)3mz5qz)A1i;o:E{!47">
                                                                                    <field name="TEXT"> ml</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD2">
                                                                                  <block type="text" id="We*0)kla7,,mg^N5.sPb">
                                                                                    <field name="TEXT"> Wasser wurden dosiert</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD3">
                                                                                  <block type="text_newline" id="~nUOik7/[6b_mj-#r6(;">
                                                                                    <field name="Type">\n</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD4">
                                                                                  <block type="math_rndfixed" id="4-Nd9(iT2OOMTVJH6gx6">
                                                                                    <field name="n">1</field>
                                                                                    <value name="x">
                                                                                      <shadow type="math_number" id="%/fU!@WL!D1NR8vZIXrJ">
                                                                                        <field name="NUM">3.1234</field>
                                                                                      </shadow>
                                                                                      <block type="variables_get" id="n+Wsz3PbGc-kKOFZzy/6">
                                                                                        <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD5">
                                                                                  <block type="text" id="f_S0X,P8Fohvyjt[~}Wt">
                                                                                    <field name="TEXT"> Liter wurden dieses Jahr dosiert</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="update" id="v@JXdPp^SX$e}[;*TN;5">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="math_rndfixed" id="H]3.WGAtE,UJ;+O:yMqK">
                                                                                    <field name="n">3</field>
                                                                                    <value name="x">
                                                                                      <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL">
                                                                                        <field name="NUM">3.1234</field>
                                                                                      </shadow>
                                                                                      <block type="variables_get" id="/n6Y=9C~2W@KV$RXN-DW">
                                                                                        <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="update" id="`NW9_QcSlKGP;b[9@.QH">
                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                    <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="math_number" id="|m|G@]xx7.d^nS-E2Q,B">
                                                                                        <field name="NUM">0</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <next>
                                                                                      <block type="debug" id="ESkP;ss;~ZDB;gISHFI]">
                                                                                        <field name="Severity">info</field>
                                                                                        <value name="TEXT">
                                                                                          <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                                                            <field name="TEXT">test</field>
                                                                                          </shadow>
                                                                                          <block type="text_join" id="R[aL32f3![219OSKE$k!" inline="true">
                                                                                            <mutation items="2"></mutation>
                                                                                            <value name="ADD0">
                                                                                              <block type="variables_get" id="Y%f8;@,D;lNrR?pmQ|(Z">
                                                                                                <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="ADD1">
                                                                                              <block type="text" id="q=ZJuFoniJND[_z;_j~M">
                                                                                                <field name="TEXT"> Liter</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                        <next>
                                                                                          <block type="http_get" id="e9^C0,Xruq+R^Q=|k3dc">
                                                                                            <field name="TIMEOUT">10</field>
                                                                                            <field name="UNIT">sec</field>
                                                                                            <field name="TYPE">text</field>
                                                                                            <value name="URL">
                                                                                              <shadow type="text" id=",_J4F8mdkf!o;QG{KC2z">
                                                                                                <field name="TEXT">http://192.168.0.71/cm?cmnd=counter2 0</field>
                                                                                              </shadow>
                                                                                            </value>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                              <block type="schedule" id="eY2k):|9:7y;jFJ|-e{." x="-437" y="-687">
                                <field name="SCHEDULE">0 0 1 1 *</field>
                                <statement name="STATEMENT">
                                  <block type="variables_set" id="cEkH53kNZuyOARmP+Q|,">
                                    <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="9;ptE-Ve[-8t]`aa|Tgl">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="update" id="|*@i5i^pfX8@UCo}nN4j">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="27z6jlXz=#}B7;,?{V7M">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <next>
                                  <block type="schedule" id="!0s4!(IKf352-$Cjs+=H">
                                    <field name="SCHEDULE">0 0 * * *</field>
                                    <statement name="STATEMENT">
                                      <block type="variables_set" id="u2/ozk5F`Si~3`_cLs4`">
                                        <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="kQwxXS=Yw7,Q5s]YKP}*">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="update" id=",B.vece!}v4W4j`J0O1r">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="(P{ST5UTzs=*|2/~;Z+d">
                                                <field name="NUM">0</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </xml>
                            
                            paul53P 1 Antwort Letzte Antwort
                            0
                            • AphofisA Aphofis

                              @paul53

                              Hab ja die Steuerung jetzt schon ein paar Tage am laufen. Irgenwie reagiert die Steuerung nicht darauf wenn der Schwimmer true ist. wenn ich den Schwimmer von Hand einmal hoch ziehe also false setze und dann auf true los lasse dann erst reagiert die Steuerung.
                              Ist da irgendwas falsch !?
                              Momentan sieht es so aus.
                              Screenshot 2024-08-13 054533.png

                              <xml xmlns="https://developers.google.com/blockly/xml">
                                <variables>
                                  <variable id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</variable>
                                  <variable id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</variable>
                                  <variable id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</variable>
                                  <variable type="timeout" id="timeout">timeout</variable>
                                </variables>
                                <block type="variables_set" id="HUSPsI8yrvs1R9buB5UE" x="-1212" y="-763">
                                  <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                  <value name="VALUE">
                                    <block type="math_arithmetic" id="e1#%MoOBW(WQNQtz+];;">
                                      <field name="OP">MULTIPLY</field>
                                      <value name="A">
                                        <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="get_value" id="|=$q%x;t`MAEW/vG=BLQ">
                                          <field name="ATTR">val</field>
                                          <field name="OID">sonoff.0.Aqua_Float.SENSOR.COUNTER.C2</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <shadow type="math_number" id="j[l*MeT/~[+quhxnrS7C">
                                          <field name="NUM">5.1</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="HchfBD.f$i=}z$B3%%ro">
                                      <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                      <value name="VALUE">
                                        <block type="get_value" id="M_~UzJP71@mQ8;LaEqA;">
                                          <field name="ATTR">val</field>
                                          <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="variables_set" id="eg3d1X/Cm`7YA1`r@6/5">
                                          <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                          <value name="VALUE">
                                            <block type="get_value" id="HFTLl.5s}DD!S3VkI2}w">
                                              <field name="ATTR">val</field>
                                              <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="on_ext" id="0:-d[({.Z}?pVdpxL($`">
                                              <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="0W#F=X0/oRtnrPk9h3{x">
                                                  <field name="oid">sonoff.0.Aqua_Float.POWER</field>
                                                </shadow>
                                                <block type="text" id="*P`{6.y$Qz:6)XRyP/e.">
                                                  <field name="TEXT">sonoff.0.Aqua_Float.SENSOR.COUNTER.C2</field>
                                                </block>
                                              </value>
                                              <statement name="STATEMENT">
                                                <block type="variables_set" id=".o$v5mYbaxJ%Dy^rAJ~@">
                                                  <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                  <value name="VALUE">
                                                    <block type="math_rndfixed" id="~C}Q;4pD[j1fqWGOQbxr">
                                                      <field name="n">2</field>
                                                      <value name="x">
                                                        <shadow type="math_number" id="sYM=iIrazCVz3G9{m*Wp">
                                                          <field name="NUM">3.1234</field>
                                                        </shadow>
                                                        <block type="math_arithmetic" id="Q,q,)Fqfx8Dcu]de0[XS">
                                                          <field name="OP">MULTIPLY</field>
                                                          <value name="A">
                                                            <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="on_source" id="3{.pWaaavxoM|Ix^BlA}">
                                                              <field name="ATTR">state.val</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id=")SsRvEav^gC^x{KjjCyf">
                                                              <field name="NUM">5.1</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="update" id="?h=3;[vg7tLw)/h@7:$A">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="variables_get" id=",s^*MoNszpa:oog%EMAW">
                                                          <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="debug" id="^-PLnz!%La/%esP+p|q%">
                                                          <field name="Severity">info</field>
                                                          <value name="TEXT">
                                                            <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                              <field name="TEXT">test</field>
                                                            </shadow>
                                                            <block type="text_join" id="oliPeI~VRSKRwW7]r|%]" inline="true">
                                                              <mutation items="2"></mutation>
                                                              <value name="ADD0">
                                                                <block type="variables_get" id="-A9r0_TWSe~DfBweAXDt">
                                                                  <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD1">
                                                                <block type="text" id="8Ojo1T/MND*{-XQvij#:">
                                                                  <field name="TEXT"> ml</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                              <next>
                                                <block type="on" id=".Kws=H5v3:9sC$2y}XY.">
                                                  <field name="OID">sonoff.0.Aqua_Float.POWER</field>
                                                  <field name="CONDITION">ne</field>
                                                  <field name="ACK_CONDITION"></field>
                                                  <statement name="STATEMENT">
                                                    <block type="control" id="`#?D6cI2R48DM4)iEV2)">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="on_source" id="Z:Ey]JGh2[+Z2p6CktfV">
                                                          <field name="ATTR">state.val</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="controls_if" id="fwTIogd8xTfe{#gzL9Cn">
                                                          <value name="IF0">
                                                            <block type="logic_negate" id="U/Ou4#ODbm6%waUiXwK3">
                                                              <value name="BOOL">
                                                                <block type="on_source" id="LKR8T,H^%|Gh2gr{;F,#">
                                                                  <field name="ATTR">state.val</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <statement name="DO0">
                                                            <block type="timeouts_settimeout" id="RtR6.MNo`wh`ud[PbJ]:">
                                                              <field name="NAME">timeout</field>
                                                              <field name="DELAY">15</field>
                                                              <field name="UNIT">sec</field>
                                                              <statement name="STATEMENT">
                                                                <block type="math_change" id="IX/.|6z/Aro1]dY5SAYb">
                                                                  <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                                  <value name="DELTA">
                                                                    <shadow type="math_number" id="=M*S)jZ,M4p(dx.CTNCh">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="su_iSda]mMUcg|Ylu@=o">
                                                                      <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="update" id="fwHm}o7U6~1d|Z|{o_na">
                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                      <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="math_rndfixed" id=";]qdo[hKwhyu5U)H]|AP">
                                                                          <field name="n">1</field>
                                                                          <value name="x">
                                                                            <shadow type="math_number" id="%/fU!@WL!D1NR8vZIXrJ">
                                                                              <field name="NUM">3.1234</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id=".$Y/`yQi2Ep48g$zUH!(">
                                                                              <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="math_change" id="|lE6{O$UQZ68v5$V-mhf">
                                                                          <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                          <value name="DELTA">
                                                                            <shadow type="math_number" id="r(O489L+4qKOus0|bJZ]">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="math_arithmetic" id="aUjod9%H]Jr`c:7;L`1L">
                                                                              <field name="OP">DIVIDE</field>
                                                                              <value name="A">
                                                                                <shadow type="math_number" id="G]!BBiks_53Irs;)eRZ/">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="variables_get" id="==0y1MmV=A38?y{8!7Qp">
                                                                                  <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <shadow type="math_number" id="W)Ad2(Y4FzH8rN6?DDSG">
                                                                                  <field name="NUM">1000</field>
                                                                                </shadow>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="telegram" id="%Ac!=W);Rce9~t/iuvmU" collapsed="true">
                                                                              <field name="INSTANCE">.0</field>
                                                                              <field name="LOG"></field>
                                                                              <field name="SILENT">FALSE</field>
                                                                              <field name="PARSEMODE">default</field>
                                                                              <field name="ESCAPING">FALSE</field>
                                                                              <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                                                              <value name="MESSAGE">
                                                                                <shadow type="text" id="/qlY{U].1kjbanyv~*S8">
                                                                                  <field name="TEXT">text</field>
                                                                                </shadow>
                                                                                <block type="text_join" id=";;6oqX}l/W(ws@3[8iFR" inline="false">
                                                                                  <mutation items="6"></mutation>
                                                                                  <value name="ADD0">
                                                                                    <block type="math_rndfixed" id="I;(*n|Y1J;sj}Vs~,1w`">
                                                                                      <field name="n">2</field>
                                                                                      <value name="x">
                                                                                        <shadow type="math_number" id="IZ`3Rk8S?(K[:=/b[Fvi">
                                                                                          <field name="NUM">3.1234</field>
                                                                                        </shadow>
                                                                                        <block type="variables_get" id="wimbm((,ufreXmGowP_b">
                                                                                          <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                                        </block>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD1">
                                                                                    <block type="text" id="e)3mz5qz)A1i;o:E{!47">
                                                                                      <field name="TEXT"> ml</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD2">
                                                                                    <block type="text" id="We*0)kla7,,mg^N5.sPb">
                                                                                      <field name="TEXT"> Wasser wurden dosiert</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD3">
                                                                                    <block type="text_newline" id="~nUOik7/[6b_mj-#r6(;">
                                                                                      <field name="Type">\n</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD4">
                                                                                    <block type="math_rndfixed" id="4-Nd9(iT2OOMTVJH6gx6">
                                                                                      <field name="n">1</field>
                                                                                      <value name="x">
                                                                                        <shadow type="math_number" id="%/fU!@WL!D1NR8vZIXrJ">
                                                                                          <field name="NUM">3.1234</field>
                                                                                        </shadow>
                                                                                        <block type="variables_get" id="n+Wsz3PbGc-kKOFZzy/6">
                                                                                          <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                                        </block>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD5">
                                                                                    <block type="text" id="f_S0X,P8Fohvyjt[~}Wt">
                                                                                      <field name="TEXT"> Liter wurden dieses Jahr dosiert</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="update" id="v@JXdPp^SX$e}[;*TN;5">
                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                  <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="math_rndfixed" id="H]3.WGAtE,UJ;+O:yMqK">
                                                                                      <field name="n">3</field>
                                                                                      <value name="x">
                                                                                        <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL">
                                                                                          <field name="NUM">3.1234</field>
                                                                                        </shadow>
                                                                                        <block type="variables_get" id="/n6Y=9C~2W@KV$RXN-DW">
                                                                                          <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                                        </block>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="update" id="`NW9_QcSlKGP;b[9@.QH">
                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                      <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                      <value name="VALUE">
                                                                                        <block type="math_number" id="|m|G@]xx7.d^nS-E2Q,B">
                                                                                          <field name="NUM">0</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <next>
                                                                                        <block type="debug" id="ESkP;ss;~ZDB;gISHFI]">
                                                                                          <field name="Severity">info</field>
                                                                                          <value name="TEXT">
                                                                                            <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                                                              <field name="TEXT">test</field>
                                                                                            </shadow>
                                                                                            <block type="text_join" id="R[aL32f3![219OSKE$k!" inline="true">
                                                                                              <mutation items="2"></mutation>
                                                                                              <value name="ADD0">
                                                                                                <block type="variables_get" id="Y%f8;@,D;lNrR?pmQ|(Z">
                                                                                                  <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <value name="ADD1">
                                                                                                <block type="text" id="q=ZJuFoniJND[_z;_j~M">
                                                                                                  <field name="TEXT"> Liter</field>
                                                                                                </block>
                                                                                              </value>
                                                                                            </block>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="http_get" id="e9^C0,Xruq+R^Q=|k3dc">
                                                                                              <field name="TIMEOUT">10</field>
                                                                                              <field name="UNIT">sec</field>
                                                                                              <field name="TYPE">text</field>
                                                                                              <value name="URL">
                                                                                                <shadow type="text" id=",_J4F8mdkf!o;QG{KC2z">
                                                                                                  <field name="TEXT">http://192.168.0.71/cm?cmnd=counter2 0</field>
                                                                                                </shadow>
                                                                                              </value>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </statement>
                                                            </block>
                                                          </statement>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                                <block type="schedule" id="eY2k):|9:7y;jFJ|-e{." x="-437" y="-687">
                                  <field name="SCHEDULE">0 0 1 1 *</field>
                                  <statement name="STATEMENT">
                                    <block type="variables_set" id="cEkH53kNZuyOARmP+Q|,">
                                      <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="9;ptE-Ve[-8t]`aa|Tgl">
                                          <field name="NUM">0</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="update" id="|*@i5i^pfX8@UCo}nN4j">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="27z6jlXz=#}B7;,?{V7M">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="schedule" id="!0s4!(IKf352-$Cjs+=H">
                                      <field name="SCHEDULE">0 0 * * *</field>
                                      <statement name="STATEMENT">
                                        <block type="variables_set" id="u2/ozk5F`Si~3`_cLs4`">
                                          <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="kQwxXS=Yw7,Q5s]YKP}*">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="update" id=",B.vece!}v4W4j`J0O1r">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="(P{ST5UTzs=*|2/~;Z+d">
                                                  <field name="NUM">0</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </xml>
                              
                              paul53P Offline
                              paul53P Offline
                              paul53
                              schrieb am zuletzt editiert von paul53
                              #21

                              @aphofis sagte: Momentan sieht es so aus.

                              Das Magnetventil muss direkt auf den Schwimmer reagieren. Der Teil im Programm darunter wird 15 s nach Schließen des Magnetventils ausgeführt.

                              Blockly_temp.JPG

                              Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                              Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                              AphofisA 1 Antwort Letzte Antwort
                              0
                              • paul53P paul53

                                @aphofis sagte: Momentan sieht es so aus.

                                Das Magnetventil muss direkt auf den Schwimmer reagieren. Der Teil im Programm darunter wird 15 s nach Schließen des Magnetventils ausgeführt.

                                Blockly_temp.JPG

                                AphofisA Offline
                                AphofisA Offline
                                Aphofis
                                schrieb am zuletzt editiert von Aphofis
                                #22

                                @paul53
                                verstehe ich nicht, die Einstellung ist doch so
                                wo wird eigentlich der timeout beendet !?

                                paul53P 1 Antwort Letzte Antwort
                                0
                                • AphofisA Aphofis

                                  @paul53
                                  verstehe ich nicht, die Einstellung ist doch so
                                  wo wird eigentlich der timeout beendet !?

                                  paul53P Offline
                                  paul53P Offline
                                  paul53
                                  schrieb am zuletzt editiert von
                                  #23

                                  @aphofis sagte: wo wird eigentlich der timeout beendet !?

                                  Der beendet sich nach 15 s selbst und führt dann das verzögerte Programm aus.
                                  Weshalb hast du die Verzögerung auf 15 s gesetzt? Ein Magnetventil schließt normalerweise schneller.

                                  Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                  Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                  AphofisA 1 Antwort Letzte Antwort
                                  0
                                  • paul53P paul53

                                    @aphofis sagte: wo wird eigentlich der timeout beendet !?

                                    Der beendet sich nach 15 s selbst und führt dann das verzögerte Programm aus.
                                    Weshalb hast du die Verzögerung auf 15 s gesetzt? Ein Magnetventil schließt normalerweise schneller.

                                    AphofisA Offline
                                    AphofisA Offline
                                    Aphofis
                                    schrieb am zuletzt editiert von
                                    #24

                                    @paul53 keine Ahnug was das falsch gelaufen ist. hab ich zurück auf 500ms gestellt

                                    1 Antwort Letzte Antwort
                                    0
                                    • AphofisA Offline
                                      AphofisA Offline
                                      Aphofis
                                      schrieb am zuletzt editiert von Aphofis
                                      #25

                                      @paul53
                                      Das Wasser wird immer noch nicht richtig gezählt und der Wert wird nihct resettet
                                      Der wert aktuell wird durchgehend gezählt aber auch nicht zurück gesetzt.
                                      Ich finde den Fehler nicht.
                                      Wenn wasser dosiert wird kommen ja um die vier zählungen in einer sekunde zu stande. die Steuerung muss also vielleicht 2 sek warten und die werte speichern ausrechnen tasmota counter resetten und dann erst weiter zählen.

                                      javascript.0	12:10:58.058	info	script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211247 ml Aktuell
                                      javascript.0	12:11:13.123	info	script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211255 ml Aktuell
                                      javascript.0	12:11:28.045	info	script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211263 ml Aktuell
                                      javascript.0	12:11:43.093	info	script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211272 ml Aktuell
                                      javascript.0	12:11:58.070	info	script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211281 ml Aktuell
                                      javascript.0	12:12:13.093	info	script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211293 ml Aktuell
                                      javascript.0	12:12:28.180	info	script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211303 ml Aktuell
                                      javascript.0	12:12:43.061	info	script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211309 ml Aktuell
                                      javascript.0	12:12:58.030	info	script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211322 ml Aktuell
                                      javascript.0	12:13:13.084	info	script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211327 ml Aktuell
                                      javascript.0	12:13:28.146	info	script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211337 ml Aktuell
                                      javascript.0	12:13:43.139	info	script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211353 ml Aktuell
                                      javascript.0	12:13:57.998	info	script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211360 ml Aktuell
                                      javascript.0	12:14:13.082	info	script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211368 ml Aktuell
                                      Ausgewählte Blöcke exportieren
                                      
                                      <xml xmlns="https://developers.google.com/blockly/xml">
                                        <variables>
                                          <variable id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</variable>
                                          <variable id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</variable>
                                          <variable id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</variable>
                                          <variable id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</variable>
                                          <variable type="timeout" id="timeout">timeout</variable>
                                        </variables>
                                        <block type="variables_set" id="HUSPsI8yrvs1R9buB5UE" x="-1212" y="-763">
                                          <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                          <value name="VALUE">
                                            <block type="math_arithmetic" id="e1#%MoOBW(WQNQtz+];;">
                                              <field name="OP">MULTIPLY</field>
                                              <value name="A">
                                                <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="get_value" id="|=$q%x;t`MAEW/vG=BLQ">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">sonoff.0.Aqua_Float.SENSOR.COUNTER.C1</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <shadow type="math_number" id="j[l*MeT/~[+quhxnrS7C">
                                                  <field name="NUM">5.182</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="HchfBD.f$i=}z$B3%%ro">
                                              <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                              <value name="VALUE">
                                                <block type="get_value" id="M_~UzJP71@mQ8;LaEqA;">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="eg3d1X/Cm`7YA1`r@6/5">
                                                  <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                  <value name="VALUE">
                                                    <block type="get_value" id="HFTLl.5s}DD!S3VkI2}w">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="variables_set" id="CA,Qr(B*Ax}^Rcx{WiM0">
                                                      <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field>
                                                      <value name="VALUE">
                                                        <block type="get_value" id="j]bLYMumfN_Ej:OBArxI">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Gesamt</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="on_ext" id="0:-d[({.Z}?pVdpxL($`">
                                                          <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="0W#F=X0/oRtnrPk9h3{x">
                                                              <field name="oid">sonoff.0.Aqua_Float.POWER</field>
                                                            </shadow>
                                                            <block type="text" id="*P`{6.y$Qz:6)XRyP/e.">
                                                              <field name="TEXT">sonoff.0.Aqua_Float.SENSOR.COUNTER.C1</field>
                                                            </block>
                                                          </value>
                                                          <statement name="STATEMENT">
                                                            <block type="variables_set" id=".o$v5mYbaxJ%Dy^rAJ~@">
                                                              <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                              <value name="VALUE">
                                                                <block type="on_source" id="3{.pWaaavxoM|Ix^BlA}">
                                                                  <field name="ATTR">state.val</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="update" id="?h=3;[vg7tLw)/h@7:$A">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="variables_get" id=",s^*MoNszpa:oog%EMAW">
                                                                      <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="debug" id="^-PLnz!%La/%esP+p|q%">
                                                                      <field name="Severity">info</field>
                                                                      <value name="TEXT">
                                                                        <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                                          <field name="TEXT">test</field>
                                                                        </shadow>
                                                                        <block type="text_join" id="oliPeI~VRSKRwW7]r|%]" inline="true">
                                                                          <mutation items="2"></mutation>
                                                                          <value name="ADD0">
                                                                            <block type="variables_get" id="-A9r0_TWSe~DfBweAXDt">
                                                                              <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD1">
                                                                            <block type="text" id="8Ojo1T/MND*{-XQvij#:">
                                                                              <field name="TEXT"> ml Aktuell</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                          <next>
                                                            <block type="on" id=".Kws=H5v3:9sC$2y}XY.">
                                                              <field name="OID">sonoff.0.Aqua_Float.POWER</field>
                                                              <field name="CONDITION">ne</field>
                                                              <field name="ACK_CONDITION"></field>
                                                              <statement name="STATEMENT">
                                                                <block type="control" id="`#?D6cI2R48DM4)iEV2)">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="on_source" id="Z:Ey]JGh2[+Z2p6CktfV">
                                                                      <field name="ATTR">state.val</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="controls_if" id="fwTIogd8xTfe{#gzL9Cn">
                                                                      <value name="IF0">
                                                                        <block type="logic_negate" id="U/Ou4#ODbm6%waUiXwK3">
                                                                          <value name="BOOL">
                                                                            <block type="on_source" id="LKR8T,H^%|Gh2gr{;F,#">
                                                                              <field name="ATTR">state.val</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <statement name="DO0">
                                                                        <block type="timeouts_settimeout" id="RtR6.MNo`wh`ud[PbJ]:">
                                                                          <field name="NAME">timeout</field>
                                                                          <field name="DELAY">200</field>
                                                                          <field name="UNIT">ms</field>
                                                                          <statement name="STATEMENT">
                                                                            <block type="math_change" id="IX/.|6z/Aro1]dY5SAYb">
                                                                              <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                                              <value name="DELTA">
                                                                                <shadow type="math_number" id="=M*S)jZ,M4p(dx.CTNCh">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="variables_get" id="su_iSda]mMUcg|Ylu@=o">
                                                                                  <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="math_change" id="|lE6{O$UQZ68v5$V-mhf">
                                                                                  <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                                  <value name="DELTA">
                                                                                    <shadow type="math_number" id="r(O489L+4qKOus0|bJZ]">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                    <block type="math_arithmetic" id="aUjod9%H]Jr`c:7;L`1L">
                                                                                      <field name="OP">DIVIDE</field>
                                                                                      <value name="A">
                                                                                        <shadow type="math_number" id="G]!BBiks_53Irs;)eRZ/">
                                                                                          <field name="NUM">1</field>
                                                                                        </shadow>
                                                                                        <block type="variables_get" id="==0y1MmV=A38?y{8!7Qp">
                                                                                          <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <value name="B">
                                                                                        <shadow type="math_number" id="W)Ad2(Y4FzH8rN6?DDSG">
                                                                                          <field name="NUM">1000</field>
                                                                                        </shadow>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="math_change" id="|Oi./blga6U/DN#4L}cB">
                                                                                      <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field>
                                                                                      <value name="DELTA">
                                                                                        <shadow type="math_number" id="r(O489L+4qKOus0|bJZ]">
                                                                                          <field name="NUM">1</field>
                                                                                        </shadow>
                                                                                        <block type="math_arithmetic" id="]M+aVNab-ngeovV)j^g@">
                                                                                          <field name="OP">DIVIDE</field>
                                                                                          <value name="A">
                                                                                            <shadow type="math_number" id="G]!BBiks_53Irs;)eRZ/">
                                                                                              <field name="NUM">1</field>
                                                                                            </shadow>
                                                                                            <block type="variables_get" id="P(Ibc,eZ|YYJM/Sz+:;Z">
                                                                                              <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                                            </block>
                                                                                          </value>
                                                                                          <value name="B">
                                                                                            <shadow type="math_number" id="}@$j#%R5)f]P3nf@i||6">
                                                                                              <field name="NUM">1000</field>
                                                                                            </shadow>
                                                                                          </value>
                                                                                        </block>
                                                                                      </value>
                                                                                      <next>
                                                                                        <block type="update" id="fwHm}o7U6~1d|Z|{o_na">
                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                          <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                          <value name="VALUE">
                                                                                            <block type="math_rndfixed" id=";]qdo[hKwhyu5U)H]|AP">
                                                                                              <field name="n">1</field>
                                                                                              <value name="x">
                                                                                                <shadow type="math_number" id="%/fU!@WL!D1NR8vZIXrJ">
                                                                                                  <field name="NUM">3.1234</field>
                                                                                                </shadow>
                                                                                                <block type="variables_get" id=".$Y/`yQi2Ep48g$zUH!(">
                                                                                                  <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                                                                </block>
                                                                                              </value>
                                                                                            </block>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="update" id="v@JXdPp^SX$e}[;*TN;5">
                                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                              <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                                              <value name="VALUE">
                                                                                                <block type="math_rndfixed" id="H]3.WGAtE,UJ;+O:yMqK">
                                                                                                  <field name="n">2</field>
                                                                                                  <value name="x">
                                                                                                    <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL">
                                                                                                      <field name="NUM">3.1234</field>
                                                                                                    </shadow>
                                                                                                    <block type="variables_get" id="/n6Y=9C~2W@KV$RXN-DW">
                                                                                                      <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                              <next>
                                                                                                <block type="update" id="3)$zk|xkb)ME;O,`Pb4h">
                                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                  <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Gesamt</field>
                                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                                  <value name="VALUE">
                                                                                                    <block type="math_rndfixed" id="8|$7qbgnf2HyoIJku[)2">
                                                                                                      <field name="n">2</field>
                                                                                                      <value name="x">
                                                                                                        <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL">
                                                                                                          <field name="NUM">3.1234</field>
                                                                                                        </shadow>
                                                                                                        <block type="variables_get" id="AN!(vppC8|3s`)1tLCm^">
                                                                                                          <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <next>
                                                                                                    <block type="update" id="`NW9_QcSlKGP;b[9@.QH">
                                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                      <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                                      <value name="VALUE">
                                                                                                        <block type="math_number" id="|m|G@]xx7.d^nS-E2Q,B">
                                                                                                          <field name="NUM">0</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <next>
                                                                                                        <block type="debug" id="ESkP;ss;~ZDB;gISHFI]">
                                                                                                          <field name="Severity">info</field>
                                                                                                          <value name="TEXT">
                                                                                                            <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                                                                              <field name="TEXT">test</field>
                                                                                                            </shadow>
                                                                                                            <block type="text_join" id="R[aL32f3![219OSKE$k!" inline="true">
                                                                                                              <mutation items="2"></mutation>
                                                                                                              <value name="ADD0">
                                                                                                                <block type="variables_get" id="Y%f8;@,D;lNrR?pmQ|(Z">
                                                                                                                  <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <value name="ADD1">
                                                                                                                <block type="text" id="q=ZJuFoniJND[_z;_j~M">
                                                                                                                  <field name="TEXT"> Liter</field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <next>
                                                                                                            <block type="debug" id="?XjRd=PU1#Fj(f#xl+mC">
                                                                                                              <field name="Severity">info</field>
                                                                                                              <value name="TEXT">
                                                                                                                <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                                                                                  <field name="TEXT">test</field>
                                                                                                                </shadow>
                                                                                                                <block type="text_join" id="qZJM||k00I36j8XRC(_D" inline="true">
                                                                                                                  <mutation items="2"></mutation>
                                                                                                                  <value name="ADD0">
                                                                                                                    <block type="variables_get" id="!AST/{)(*stRx}e6R#i=">
                                                                                                                      <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD1">
                                                                                                                    <block type="text" id="[G8=298XTdIwTD?Vf-]v">
                                                                                                                      <field name="TEXT"> ml Heute</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <next>
                                                                                                                <block type="debug" id=")R2t?-dNSqu)sk@uUf7P">
                                                                                                                  <field name="Severity">info</field>
                                                                                                                  <value name="TEXT">
                                                                                                                    <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                                                                                      <field name="TEXT">test</field>
                                                                                                                    </shadow>
                                                                                                                    <block type="text_join" id="tFjhop@BpJ{DM2V9fgF~" inline="true">
                                                                                                                      <mutation items="2"></mutation>
                                                                                                                      <value name="ADD0">
                                                                                                                        <block type="variables_get" id="-/WYH+yRlL2^$93UY@NC">
                                                                                                                          <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <value name="ADD1">
                                                                                                                        <block type="text" id="e3jEG}s0@g6ww)3e(Z*G">
                                                                                                                          <field name="TEXT"> Liter Gesamt</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <next>
                                                                                                                    <block type="debug" id="#z1|ehxGsPSwxWtTu9|B">
                                                                                                                      <field name="Severity">info</field>
                                                                                                                      <value name="TEXT">
                                                                                                                        <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                                                                                          <field name="TEXT">test</field>
                                                                                                                        </shadow>
                                                                                                                        <block type="text_join" id="p.8rZ(UWm@M4h]MJKwz*" inline="true">
                                                                                                                          <mutation items="2"></mutation>
                                                                                                                          <value name="ADD0">
                                                                                                                            <block type="get_value" id="X9/9B+*-H{rJgrce]hjh">
                                                                                                                              <field name="ATTR">val</field>
                                                                                                                              <field name="OID">sonoff.0.Aqua_Float.SENSOR.COUNTER.C1</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                          <value name="ADD1">
                                                                                                                            <block type="text" id="[!*5OpdK%*CIY=7U;a`I">
                                                                                                                              <field name="TEXT"> Pulse Count</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <next>
                                                                                                                        <block type="request" id="pWM7@T;V-m3CCu`$#~o!">
                                                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                                                                          <field name="WITH_STATEMENT">FALSE</field>
                                                                                                                          <field name="LOG">debug</field>
                                                                                                                          <value name="URL">
                                                                                                                            <shadow type="text" id="2+7Jn:,Rp_p6,1h1#*g=">
                                                                                                                              <field name="TEXT">http://192.168.0.71/cm?user=admin&amp;password=Kasjopayac3po&amp;cmnd=counter2%200</field>
                                                                                                                            </shadow>
                                                                                                                            <block type="text" id="rpv,(m{smGL,#8,7_QUP">
                                                                                                                              <field name="TEXT">http://192.168.0.71/cm?user=admin&amp;password=Kasjopayac3po&amp;cmnd=counter2%200</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                        </block>
                                                                                                                      </next>
                                                                                                                    </block>
                                                                                                                  </next>
                                                                                                                </block>
                                                                                                              </next>
                                                                                                            </block>
                                                                                                          </next>
                                                                                                        </block>
                                                                                                      </next>
                                                                                                    </block>
                                                                                                  </next>
                                                                                                </block>
                                                                                              </next>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </statement>
                                                                        </block>
                                                                      </statement>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </statement>
                                                              <next>
                                                                <block type="schedule" id="eY2k):|9:7y;jFJ|-e{.">
                                                                  <field name="SCHEDULE">0 0 1 1 *</field>
                                                                  <statement name="STATEMENT">
                                                                    <block type="variables_set" id="cEkH53kNZuyOARmP+Q|,">
                                                                      <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                      <value name="VALUE">
                                                                        <block type="math_number" id="9;ptE-Ve[-8t]`aa|Tgl">
                                                                          <field name="NUM">0</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="update" id="|*@i5i^pfX8@UCo}nN4j">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="math_number" id="27z6jlXz=#}B7;,?{V7M">
                                                                              <field name="NUM">0</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                  <next>
                                                                    <block type="schedule" id="!0s4!(IKf352-$Cjs+=H">
                                                                      <field name="SCHEDULE">0 0 * * *</field>
                                                                      <statement name="STATEMENT">
                                                                        <block type="variables_set" id="u2/ozk5F`Si~3`_cLs4`">
                                                                          <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                                          <value name="VALUE">
                                                                            <block type="math_number" id="kQwxXS=Yw7,Q5s]YKP}*">
                                                                              <field name="NUM">0</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="update" id=",B.vece!}v4W4j`J0O1r">
                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                              <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                              <value name="VALUE">
                                                                                <block type="math_number" id="(P{ST5UTzs=*|2/~;Z+d">
                                                                                  <field name="NUM">0</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </statement>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </xml>
                                      
                                      <xml xmlns="https://developers.google.com/blockly/xml">
                                        <variables>
                                          <variable id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</variable>
                                          <variable id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</variable>
                                          <variable id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</variable>
                                          <variable id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</variable>
                                          <variable type="timeout" id="timeout">timeout</variable>
                                        </variables>
                                        <block type="variables_set" id="HUSPsI8yrvs1R9buB5UE" x="-1212" y="-763">
                                          <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                          <value name="VALUE">
                                            <block type="math_arithmetic" id="e1#%MoOBW(WQNQtz+];;">
                                              <field name="OP">MULTIPLY</field>
                                              <value name="A">
                                                <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="get_value" id="|=$q%x;t`MAEW/vG=BLQ">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">sonoff.0.Aqua_Float.SENSOR.COUNTER.C1</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <shadow type="math_number" id="j[l*MeT/~[+quhxnrS7C">
                                                  <field name="NUM">5.182</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="HchfBD.f$i=}z$B3%%ro">
                                              <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                              <value name="VALUE">
                                                <block type="get_value" id="M_~UzJP71@mQ8;LaEqA;">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="eg3d1X/Cm`7YA1`r@6/5">
                                                  <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                  <value name="VALUE">
                                                    <block type="get_value" id="HFTLl.5s}DD!S3VkI2}w">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="variables_set" id="CA,Qr(B*Ax}^Rcx{WiM0">
                                                      <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field>
                                                      <value name="VALUE">
                                                        <block type="get_value" id="j]bLYMumfN_Ej:OBArxI">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Gesamt</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="on_ext" id="0:-d[({.Z}?pVdpxL($`">
                                                          <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="0W#F=X0/oRtnrPk9h3{x">
                                                              <field name="oid">sonoff.0.Aqua_Float.POWER</field>
                                                            </shadow>
                                                            <block type="text" id="*P`{6.y$Qz:6)XRyP/e.">
                                                              <field name="TEXT">sonoff.0.Aqua_Float.SENSOR.COUNTER.C1</field>
                                                            </block>
                                                          </value>
                                                          <statement name="STATEMENT">
                                                            <block type="variables_set" id=".o$v5mYbaxJ%Dy^rAJ~@">
                                                              <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                              <value name="VALUE">
                                                                <block type="on_source" id="3{.pWaaavxoM|Ix^BlA}">
                                                                  <field name="ATTR">state.val</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="update" id="?h=3;[vg7tLw)/h@7:$A">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="variables_get" id=",s^*MoNszpa:oog%EMAW">
                                                                      <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="debug" id="^-PLnz!%La/%esP+p|q%">
                                                                      <field name="Severity">info</field>
                                                                      <value name="TEXT">
                                                                        <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                                          <field name="TEXT">test</field>
                                                                        </shadow>
                                                                        <block type="text_join" id="oliPeI~VRSKRwW7]r|%]" inline="true">
                                                                          <mutation items="2"></mutation>
                                                                          <value name="ADD0">
                                                                            <block type="variables_get" id="-A9r0_TWSe~DfBweAXDt">
                                                                              <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD1">
                                                                            <block type="text" id="8Ojo1T/MND*{-XQvij#:">
                                                                              <field name="TEXT"> ml Aktuell</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                          <next>
                                                            <block type="on" id=".Kws=H5v3:9sC$2y}XY.">
                                                              <field name="OID">sonoff.0.Aqua_Float.POWER</field>
                                                              <field name="CONDITION">ne</field>
                                                              <field name="ACK_CONDITION"></field>
                                                              <statement name="STATEMENT">
                                                                <block type="control" id="`#?D6cI2R48DM4)iEV2)">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">sonoff.0.Aqua_Control.POWER1</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="on_source" id="Z:Ey]JGh2[+Z2p6CktfV">
                                                                      <field name="ATTR">state.val</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="controls_if" id="fwTIogd8xTfe{#gzL9Cn">
                                                                      <value name="IF0">
                                                                        <block type="logic_negate" id="U/Ou4#ODbm6%waUiXwK3">
                                                                          <value name="BOOL">
                                                                            <block type="on_source" id="LKR8T,H^%|Gh2gr{;F,#">
                                                                              <field name="ATTR">state.val</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <statement name="DO0">
                                                                        <block type="timeouts_settimeout" id="RtR6.MNo`wh`ud[PbJ]:">
                                                                          <field name="NAME">timeout</field>
                                                                          <field name="DELAY">200</field>
                                                                          <field name="UNIT">ms</field>
                                                                          <statement name="STATEMENT">
                                                                            <block type="math_change" id="IX/.|6z/Aro1]dY5SAYb">
                                                                              <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                                              <value name="DELTA">
                                                                                <shadow type="math_number" id="=M*S)jZ,M4p(dx.CTNCh">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="variables_get" id="su_iSda]mMUcg|Ylu@=o">
                                                                                  <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="math_change" id="|lE6{O$UQZ68v5$V-mhf">
                                                                                  <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                                  <value name="DELTA">
                                                                                    <shadow type="math_number" id="r(O489L+4qKOus0|bJZ]">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                    <block type="math_arithmetic" id="aUjod9%H]Jr`c:7;L`1L">
                                                                                      <field name="OP">DIVIDE</field>
                                                                                      <value name="A">
                                                                                        <shadow type="math_number" id="G]!BBiks_53Irs;)eRZ/">
                                                                                          <field name="NUM">1</field>
                                                                                        </shadow>
                                                                                        <block type="variables_get" id="==0y1MmV=A38?y{8!7Qp">
                                                                                          <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <value name="B">
                                                                                        <shadow type="math_number" id="W)Ad2(Y4FzH8rN6?DDSG">
                                                                                          <field name="NUM">1000</field>
                                                                                        </shadow>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="math_change" id="|Oi./blga6U/DN#4L}cB">
                                                                                      <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field>
                                                                                      <value name="DELTA">
                                                                                        <shadow type="math_number" id="r(O489L+4qKOus0|bJZ]">
                                                                                          <field name="NUM">1</field>
                                                                                        </shadow>
                                                                                        <block type="math_arithmetic" id="]M+aVNab-ngeovV)j^g@">
                                                                                          <field name="OP">DIVIDE</field>
                                                                                          <value name="A">
                                                                                            <shadow type="math_number" id="G]!BBiks_53Irs;)eRZ/">
                                                                                              <field name="NUM">1</field>
                                                                                            </shadow>
                                                                                            <block type="variables_get" id="P(Ibc,eZ|YYJM/Sz+:;Z">
                                                                                              <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field>
                                                                                            </block>
                                                                                          </value>
                                                                                          <value name="B">
                                                                                            <shadow type="math_number" id="}@$j#%R5)f]P3nf@i||6">
                                                                                              <field name="NUM">1000</field>
                                                                                            </shadow>
                                                                                          </value>
                                                                                        </block>
                                                                                      </value>
                                                                                      <next>
                                                                                        <block type="update" id="fwHm}o7U6~1d|Z|{o_na">
                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                          <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                          <value name="VALUE">
                                                                                            <block type="math_rndfixed" id=";]qdo[hKwhyu5U)H]|AP">
                                                                                              <field name="n">1</field>
                                                                                              <value name="x">
                                                                                                <shadow type="math_number" id="%/fU!@WL!D1NR8vZIXrJ">
                                                                                                  <field name="NUM">3.1234</field>
                                                                                                </shadow>
                                                                                                <block type="variables_get" id=".$Y/`yQi2Ep48g$zUH!(">
                                                                                                  <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                                                                </block>
                                                                                              </value>
                                                                                            </block>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="update" id="v@JXdPp^SX$e}[;*TN;5">
                                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                              <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                                              <value name="VALUE">
                                                                                                <block type="math_rndfixed" id="H]3.WGAtE,UJ;+O:yMqK">
                                                                                                  <field name="n">2</field>
                                                                                                  <value name="x">
                                                                                                    <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL">
                                                                                                      <field name="NUM">3.1234</field>
                                                                                                    </shadow>
                                                                                                    <block type="variables_get" id="/n6Y=9C~2W@KV$RXN-DW">
                                                                                                      <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                              <next>
                                                                                                <block type="update" id="3)$zk|xkb)ME;O,`Pb4h">
                                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                  <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Gesamt</field>
                                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                                  <value name="VALUE">
                                                                                                    <block type="math_rndfixed" id="8|$7qbgnf2HyoIJku[)2">
                                                                                                      <field name="n">2</field>
                                                                                                      <value name="x">
                                                                                                        <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL">
                                                                                                          <field name="NUM">3.1234</field>
                                                                                                        </shadow>
                                                                                                        <block type="variables_get" id="AN!(vppC8|3s`)1tLCm^">
                                                                                                          <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <next>
                                                                                                    <block type="update" id="`NW9_QcSlKGP;b[9@.QH">
                                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                      <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field>
                                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                                      <value name="VALUE">
                                                                                                        <block type="math_number" id="|m|G@]xx7.d^nS-E2Q,B">
                                                                                                          <field name="NUM">0</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <next>
                                                                                                        <block type="debug" id="ESkP;ss;~ZDB;gISHFI]">
                                                                                                          <field name="Severity">info</field>
                                                                                                          <value name="TEXT">
                                                                                                            <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                                                                              <field name="TEXT">test</field>
                                                                                                            </shadow>
                                                                                                            <block type="text_join" id="R[aL32f3![219OSKE$k!" inline="true">
                                                                                                              <mutation items="2"></mutation>
                                                                                                              <value name="ADD0">
                                                                                                                <block type="variables_get" id="Y%f8;@,D;lNrR?pmQ|(Z">
                                                                                                                  <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <value name="ADD1">
                                                                                                                <block type="text" id="q=ZJuFoniJND[_z;_j~M">
                                                                                                                  <field name="TEXT"> Liter</field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <next>
                                                                                                            <block type="debug" id="?XjRd=PU1#Fj(f#xl+mC">
                                                                                                              <field name="Severity">info</field>
                                                                                                              <value name="TEXT">
                                                                                                                <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                                                                                  <field name="TEXT">test</field>
                                                                                                                </shadow>
                                                                                                                <block type="text_join" id="qZJM||k00I36j8XRC(_D" inline="true">
                                                                                                                  <mutation items="2"></mutation>
                                                                                                                  <value name="ADD0">
                                                                                                                    <block type="variables_get" id="!AST/{)(*stRx}e6R#i=">
                                                                                                                      <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD1">
                                                                                                                    <block type="text" id="[G8=298XTdIwTD?Vf-]v">
                                                                                                                      <field name="TEXT"> ml Heute</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <next>
                                                                                                                <block type="debug" id=")R2t?-dNSqu)sk@uUf7P">
                                                                                                                  <field name="Severity">info</field>
                                                                                                                  <value name="TEXT">
                                                                                                                    <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                                                                                      <field name="TEXT">test</field>
                                                                                                                    </shadow>
                                                                                                                    <block type="text_join" id="tFjhop@BpJ{DM2V9fgF~" inline="true">
                                                                                                                      <mutation items="2"></mutation>
                                                                                                                      <value name="ADD0">
                                                                                                                        <block type="variables_get" id="-/WYH+yRlL2^$93UY@NC">
                                                                                                                          <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <value name="ADD1">
                                                                                                                        <block type="text" id="e3jEG}s0@g6ww)3e(Z*G">
                                                                                                                          <field name="TEXT"> Liter Gesamt</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <next>
                                                                                                                    <block type="debug" id="#z1|ehxGsPSwxWtTu9|B">
                                                                                                                      <field name="Severity">info</field>
                                                                                                                      <value name="TEXT">
                                                                                                                        <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z">
                                                                                                                          <field name="TEXT">test</field>
                                                                                                                        </shadow>
                                                                                                                        <block type="text_join" id="p.8rZ(UWm@M4h]MJKwz*" inline="true">
                                                                                                                          <mutation items="2"></mutation>
                                                                                                                          <value name="ADD0">
                                                                                                                            <block type="get_value" id="X9/9B+*-H{rJgrce]hjh">
                                                                                                                              <field name="ATTR">val</field>
                                                                                                                              <field name="OID">sonoff.0.Aqua_Float.SENSOR.COUNTER.C1</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                          <value name="ADD1">
                                                                                                                            <block type="text" id="[!*5OpdK%*CIY=7U;a`I">
                                                                                                                              <field name="TEXT"> Pulse Count</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <next>
                                                                                                                        <block type="request" id="pWM7@T;V-m3CCu`$#~o!">
                                                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                                                                          <field name="WITH_STATEMENT">FALSE</field>
                                                                                                                          <field name="LOG">debug</field>
                                                                                                                          <value name="URL">
                                                                                                                            <shadow type="text" id="2+7Jn:,Rp_p6,1h1#*g=">
                                                                                                                              <field name="TEXT">http://192.168.0.71/cm?user=admin&amp;password=Kasjopayac3po&amp;cmnd=counter2%200</field>
                                                                                                                            </shadow>
                                                                                                                            <block type="text" id="rpv,(m{smGL,#8,7_QUP">
                                                                                                                              <field name="TEXT">http://192.168.0.71/cm?user=admin&amp;password=Password&amp;cmnd=counter2%200</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                        </block>
                                                                                                                      </next>
                                                                                                                    </block>
                                                                                                                  </next>
                                                                                                                </block>
                                                                                                              </next>
                                                                                                            </block>
                                                                                                          </next>
                                                                                                        </block>
                                                                                                      </next>
                                                                                                    </block>
                                                                                                  </next>
                                                                                                </block>
                                                                                              </next>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </statement>
                                                                        </block>
                                                                      </statement>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </statement>
                                                              <next>
                                                                <block type="schedule" id="eY2k):|9:7y;jFJ|-e{.">
                                                                  <field name="SCHEDULE">0 0 1 1 *</field>
                                                                  <statement name="STATEMENT">
                                                                    <block type="variables_set" id="cEkH53kNZuyOARmP+Q|,">
                                                                      <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field>
                                                                      <value name="VALUE">
                                                                        <block type="math_number" id="9;ptE-Ve[-8t]`aa|Tgl">
                                                                          <field name="NUM">0</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="update" id="|*@i5i^pfX8@UCo}nN4j">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="math_number" id="27z6jlXz=#}B7;,?{V7M">
                                                                              <field name="NUM">0</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                  <next>
                                                                    <block type="schedule" id="!0s4!(IKf352-$Cjs+=H">
                                                                      <field name="SCHEDULE">0 0 * * *</field>
                                                                      <statement name="STATEMENT">
                                                                        <block type="variables_set" id="u2/ozk5F`Si~3`_cLs4`">
                                                                          <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field>
                                                                          <value name="VALUE">
                                                                            <block type="math_number" id="kQwxXS=Yw7,Q5s]YKP}*">
                                                                              <field name="NUM">0</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="update" id=",B.vece!}v4W4j`J0O1r">
                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                              <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field>
                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                              <value name="VALUE">
                                                                                <block type="math_number" id="(P{ST5UTzs=*|2/~;Z+d">
                                                                                  <field name="NUM">0</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </statement>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </xml>
                                      
                                      

                                      Screenshot 2024-10-31 121126.png

                                      1 Antwort Letzte Antwort
                                      0
                                      Antworten
                                      • In einem neuen Thema antworten
                                      Anmelden zum Antworten
                                      • Älteste zuerst
                                      • Neuste zuerst
                                      • Meiste Stimmen


                                      Support us

                                      ioBroker
                                      Community Adapters
                                      Donate

                                      312

                                      Online

                                      32.6k

                                      Benutzer

                                      82.0k

                                      Themen

                                      1.3m

                                      Beiträge
                                      Community
                                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                      ioBroker Community 2014-2025
                                      logo
                                      • Anmelden

                                      • Du hast noch kein Konto? Registrieren

                                      • Anmelden oder registrieren, um zu suchen
                                      • Erster Beitrag
                                        Letzter Beitrag
                                      0
                                      • Home
                                      • Aktuell
                                      • Tags
                                      • Ungelesen 0
                                      • Kategorien
                                      • Unreplied
                                      • Beliebt
                                      • GitHub
                                      • Docu
                                      • Hilfe