@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.
Spoiler
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&password=Kasjopayac3po&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&password=Kasjopayac3po&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&password=Kasjopayac3po&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&password=Password&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