NEWS
[gelöst] Osmose Wasser Aktuell & Max Verbrauch
-
Vielleicht kann mir ja einer von euch helfen!?
Ich habe eine Osmose steuerung und würde gerne die werte zusammen rechnen.
Dazu habe ich zwei Datenpunkte erstellt als Zahl und Standard ist value.
Namens Osmose_Max und Omsose_Aktuell.
Wenn nun das Magnetventil auf true steht soll start und entzeit als TimerStart und TimerStop gezählt werden. Der errechnete Wert wie lange das Magnetventil an war ist TimerDiff. Dann habe ich die Pumpzeit ermittelt für 100, 200, 300, 400 und 500 ml und daraus den optimal wert ermittelt. dh das Magnetventil braucht 0,0336 ms für 1 ml das ist der multiplikator. Als Datenpunkt dazu habe ich auch einen value nach Zahl erstellt mit dem zahlen standard Wert 0,0336 als ml_multiplikator.
Der wert der aus TimerDiff entsteht soll dann mal den ml_multiplikator gerechnet werden damit aus millisekunden dann milliliter wird. Mit dem Namen Endwert.
Ich bekomme es einfach nicht hin, das in dem Datenpunkt Osmose_Aktuell der aktuelle ml verbauch eingetragen wird oft kommt ein Minus vor der Zahl und manchmal ein völlig schräger Wert und Osmose_Max soll immer den letzten wert zu Osmose_Max also gesamt verbrauch dazu rechnen.
Es wäre spitze wenn mir jemand helfen kann.
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="atxwY]u3|@g3T@#uf6/*">TimerStart</variable> <variable type="" id="xX;|s4.@!GUdq8`mF63f">TimerStop</variable> <variable type="" id="-l-u]HE5%6S4Ao]B+7M*">TimerDiff</variable> <variable type="" id="fsQnCZ:27oWh])ckL_Iz">Endwert</variable> <variable type="" id="w7!=x;*q/~WEudsq3W78">Osmose_Liste</variable> </variables> <block type="on_ext" id="(diu1kRF{lh+,2+2ZwB+" x="-287" y="163"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="=`la_:tfxhdJg.npD#FS"> <field name="oid">rpi2.0.gpio.21.state</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="P}S:z#4[v7]mT2]+tqu!"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="k;Q`gb7qPdott|wt|%,0"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="s6!dTWTuO]kVx/`*q%=q"> <field name="ATTR">val</field> <field name="OID">rpi2.0.gpio.21.state</field> </block> </value> <value name="B"> <block type="logic_boolean" id="ucZ;^qSH8L`_ak{.~[QA"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="CzuBZ#LR8ZqriqQxG]::"> <field name="VAR" id="atxwY]u3|@g3T@#uf6/*" variabletype="">TimerStart</field> <value name="VALUE"> <block type="time_get" id="0,I}frzjv768|4Qc)H[V"> <mutation format="false" language="false"></mutation> <field name="OPTION">ms</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="OgvI+X_`;]g_}}mNe6.n"> <field name="VAR" id="xX;|s4.@!GUdq8`mF63f" variabletype="">TimerStop</field> <value name="VALUE"> <block type="time_get" id="-Ki(C,}D_r~I+=0=`smz"> <mutation format="false" language="false"></mutation> <field name="OPTION">ms</field> </block> </value> <next> <block type="variables_set" id="[6hQ8uyGZg%.^uZI-i[/"> <field name="VAR" id="-l-u]HE5%6S4Ao]B+7M*" variabletype="">TimerDiff</field> <value name="VALUE"> <block type="math_arithmetic" id=";w;_d?8BsmNVMo)_CVw`"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id=".k;|Ek-9`~^al$cZ$GHC"> <field name="NUM">1</field> </shadow> <block type="convert_tonumber" id="|#H0/0x:w{Fk#gz!@PI+"> <value name="VALUE"> <block type="variables_get" id="K|H[J9k-FWd$m]pDn1*N"> <field name="VAR" id="xX;|s4.@!GUdq8`mF63f" variabletype="">TimerStop</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="3C*8[b@IA/$Z)9Ox([IB"> <field name="NUM">1</field> </shadow> <block type="convert_tonumber" id="uw|F|C1-+:E:U{MR=6C("> <value name="VALUE"> <block type="variables_get" id="4cD2Hr6UA6mNBoDq~]./"> <field name="VAR" id="atxwY]u3|@g3T@#uf6/*" variabletype="">TimerStart</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="4QjDBKl2QQ9J$4BQ~ljF"> <field name="VAR" id="fsQnCZ:27oWh])ckL_Iz" variabletype="">Endwert</field> <value name="VALUE"> <block type="math_arithmetic" id="cRm.?FweI0*srkq)%y!?"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="s/cdwoIIhLe$F5{*Y!es"> <field name="NUM">1</field> </shadow> <block type="math_rndfixed" id="_p*UaAj~PJ1;Ig+x;sCA"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="0D^5Z/dpy%Z-G{|MM9qf"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="e)s1KO^lp75Pc6cQsSo`"> <field name="VAR" id="-l-u]HE5%6S4Ao]B+7M*" variabletype="">TimerDiff</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="_x@N)@R/NYm_,KtswvZl"> <field name="NUM">1</field> </shadow> <block type="math_rndfixed" id="D]7a%jIO6CAup^=db`qW"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="aRE^IP(p:ZEHUMSZPb^;"> <field name="NUM">3.1234</field> </shadow> <block type="get_value" id="-A(F5~Qr68#:z-/Q@(d#"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.ml_multiplikator</field> </block> </value> </block> </value> </block> </value> <next> <block type="math_change" id="p11Z~`X!FqxG[}87Y4p@"> <field name="VAR" id="w7!=x;*q/~WEudsq3W78" variabletype="">Osmose_Liste</field> <value name="DELTA"> <shadow type="math_number" id="qHNJL(zcw./%Lr;=(K2G"> <field name="NUM">3.1234</field> </shadow> <block type="math_rndfixed" id="t|fH*nlkx{3@I]cG.:,]"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="0D^5Z/dpy%Z-G{|MM9qf"> <field name="NUM">3.1234</field> </shadow> <block type="convert_tonumber" id="%-si$+hp$=#-]qiJswdF"> <value name="VALUE"> <block type="variables_get" id="#)TfXzJ=hPDt+K*c=GbX"> <field name="VAR" id="fsQnCZ:27oWh])ckL_Iz" variabletype="">Endwert</field> </block> </value> </block> </value> </block> </value> <next> <block type="controls_forEach" id="{L,NyFW!|~1)tR_VZa{^"> <field name="VAR" id="fsQnCZ:27oWh])ckL_Iz" variabletype="">Endwert</field> <value name="LIST"> <block type="variables_get" id="C}E=FdBmUVy{ML`xmv!`"> <field name="VAR" id="w7!=x;*q/~WEudsq3W78" variabletype="">Osmose_Liste</field> </block> </value> <statement name="DO"> <block type="math_change" id="evcV|!.9G2}2v:v/HBre"> <field name="VAR" id="w7!=x;*q/~WEudsq3W78" variabletype="">Osmose_Liste</field> <value name="DELTA"> <shadow type="math_number" id="wAcAE*[+Bhv0(YhVw33-"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="6eOg7%VBb7I.g@e0{VdH"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="`|@J}k2I?Yw]@I,h^GT/"> <field name="NUM">1</field> </shadow> <block type="math_rndfixed" id="!:6~*7X-kc_GB1mNNnQ+"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="0D^5Z/dpy%Z-G{|MM9qf"> <field name="NUM">3.1234</field> </shadow> <block type="convert_tonumber" id="jBfCGHI1^zEDHQo#JPNQ"> <value name="VALUE"> <block type="get_value" id="cKuS{I_|BY5?(R.pL_9C"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> </block> </value> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="a0lElw.4fq=]QDr}/OFB"> <field name="NUM">1</field> </shadow> <block type="convert_tonumber" id="^IERwC@(]Te@0IqdQ@D,"> <value name="VALUE"> <block type="get_value" id="ocRH`%G5jAXn5ahR{9$N"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> </block> </value> </block> </value> </block> </value> </block> </statement> <next> <block type="update" id="-YyLdvzy$T/3{xgC=dY_"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="s/9I0#5P9Chw1Ugb!fd{"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="0D^5Z/dpy%Z-G{|MM9qf"> <field name="NUM">3.1234</field> </shadow> <block type="convert_tonumber" id="b?jc?yfK@u)Zt}D[3Hyr"> <value name="VALUE"> <block type="variables_get" id="UkP:6LrIa9Ui9XMV-~9F"> <field name="VAR" id="fsQnCZ:27oWh])ckL_Iz" variabletype="">Endwert</field> </block> </value> </block> </value> </block> </value> <next> <block type="update" id="p%O2pTes/xhU96Gxgf{$"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="l9=6jAmPCmqrx))%~}m3"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="`|@J}k2I?Yw]@I,h^GT/"> <field name="NUM">1</field> </shadow> <block type="math_rndfixed" id="1V]*Qtuz@UXS^QfD?~t`"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="0D^5Z/dpy%Z-G{|MM9qf"> <field name="NUM">3.1234</field> </shadow> <block type="convert_tonumber" id="_5udq!%k#rlFOY]-6!bD"> <value name="VALUE"> <block type="get_value" id="pkou#PVOP6^%yv06fWm`"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> </block> </value> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="a0lElw.4fq=]QDr}/OFB"> <field name="NUM">1</field> </shadow> <block type="math_rndfixed" id="md:IzIf6?FCkdHDXU-U5"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="#P/G^!N7^)Vn6vUt3t4+"> <field name="NUM">3.1234</field> </shadow> <block type="convert_tonumber" id="|MYG`,C/o)gnR~e{|Lb8"> <value name="VALUE"> <block type="get_value" id="aVhw4Tu3F+XDh,?6;+E%"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> </block> </value> </block> </value> </block> </value> </block> </value> <next> <block type="debug" id="tHySo.s-5/b!kLxWhee%"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="c1S(JzzpkY`#SX|br{!6"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="LzZoA6}6m4{up#bM|iOj"> <mutation items="2"></mutation> <value name="ADD0"> <block type="convert_tonumber" id="wQJ487rW,4|Zi+I,~x|l"> <value name="VALUE"> <block type="get_value" id="b6eVMX|N#!aiK88V+NeP"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> </block> </value> </block> </value> <value name="ADD1"> <block type="text" id="6V50:V+zf(n%9|nph|bE"> <field name="TEXT">ml</field> </block> </value> </block> </value> <next> <block type="debug" id="#)KBd~Li72^t2GV}thvT"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="c1S(JzzpkY`#SX|br{!6"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="`=Lc:j_!R*?_215q05Yg"> <mutation items="2"></mutation> <value name="ADD0"> <block type="math_arithmetic" id="mRe1|IJMjivb:f}jinuW"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="`|@J}k2I?Yw]@I,h^GT/"> <field name="NUM">1</field> </shadow> <block type="convert_tonumber" id="NJ;,B[q-i!jT$D=@USD["> <value name="VALUE"> <block type="get_value" id="K[2]+EF6A.}mW4t+L8?X"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="a0lElw.4fq=]QDr}/OFB"> <field name="NUM">1</field> </shadow> <block type="convert_tonumber" id="O9n`54^PZy/n_sDgvE_/"> <value name="VALUE"> <block type="get_value" id="e;L.(?vC-t(8tY8@ceE5"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> </block> </value> </block> </value> </block> </value> <value name="ADD1"> <block type="text" id="BdXhxhL[,s_z^-_[CC~s"> <field name="TEXT"> ml gesamt dosiert</field> </block> </value> </block> </value> <next> <block type="telegram" id=":HC^LgK$wNltl:l:]HH["> <field name="INSTANCE">.0</field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="gf)txU^W{Sg6//I/g;)/"> <field name="TEXT">text</field> </shadow> <block type="text_join" id=")_YG8O!PF*[luCzS/k8B"> <mutation items="10"></mutation> <value name="ADD0"> <block type="text" id="%gAUMxK%-?aHrgB%p|Nu"> <field name="TEXT">Es wurden </field> </block> </value> <value name="ADD1"> <block type="math_rndfixed" id="0U.u[tbyDg(HMu*[ue^("> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="0D^5Z/dpy%Z-G{|MM9qf"> <field name="NUM">3.1234</field> </shadow> <block type="convert_tonumber" id="YGbQGmi4O90ad2n^Aiwk"> <value name="VALUE"> <block type="get_value" id="eS1%q+W83YzhVK;X,7|Q"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> </block> </value> </block> </value> </block> </value> <value name="ADD2"> <block type="text" id="M-$H7j3=VikT0fI|~B#J"> <field name="TEXT"> ml</field> </block> </value> <value name="ADD3"> <block type="text_newline" id="VlL2C~fuNiGt[?J=u-cA"> <field name="Type">\n</field> </block> </value> <value name="ADD4"> <block type="text" id="!TUQ,blGF:VY%iMJFG$Q"> <field name="TEXT">Osmosewasser dosiert</field> </block> </value> <value name="ADD5"> <block type="text_newline" id="Ee|,Vi$AP!jD4M?$RX+,"> <field name="Type">\n</field> </block> </value> <value name="ADD6"> <block type="text" id="uq)9F@44V|(YAJ}vYV!J"> <field name="TEXT">Gesamt dosierung</field> </block> </value> <value name="ADD7"> <block type="text_newline" id="*3fNI]~K[?@|qTMvj--^"> <field name="Type">\n</field> </block> </value> <value name="ADD8"> <block type="math_rndfixed" id="Kf?3:842Y1^Ppy%6%|@2"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="#P/G^!N7^)Vn6vUt3t4+"> <field name="NUM">3.1234</field> </shadow> <block type="convert_tonumber" id="7M+Y[}zu@nNj-uuO@rr("> <value name="VALUE"> <block type="get_value" id="jtw!:PZnhTEGBWACIvkx"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> </block> </value> </block> </value> </block> </value> <value name="ADD9"> <block type="text" id="C|-*pjx`W%q!$]8?0/7S"> <field name="TEXT"> ml</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </xml>@Aphofis sagte:
das Magnetventil braucht 0,0336 ms für 1 ml das ist der multiplikator. Als Datenpunkt dazu habe ich auch einen value nach Zahl erstellt mit dem zahlen standard Wert 0,0336 als ml_multiplikator.
Ist es nicht umgekehrt, wenn 0,0336 der Multiplikator ist ? In 1 ms werden 0,0336 ml gespeist ?
-
@Aphofis sagte:
das Magnetventil braucht 0,0336 ms für 1 ml das ist der multiplikator. Als Datenpunkt dazu habe ich auch einen value nach Zahl erstellt mit dem zahlen standard Wert 0,0336 als ml_multiplikator.
Ist es nicht umgekehrt, wenn 0,0336 der Multiplikator ist ? In 1 ms werden 0,0336 ml gespeist ?
@paul53
Also ich hatte das Magnet Ventil gemessen.
300 ml war der genaueste Wert den ich im messbecher hinbekommen hatte.
Das Magnetventil braucht für 300 ml 8920 millisekunden.
Wenn ich das umrechne kommt doch 8920 / 300 = 29,7 ms entsprechen 1 ml oder denke ich da falsch!?
Ist auch momentan viel los auf arbeit um mal einen ruhigen Kopf zu bekommen.
Ich hatte dann einfach 1 ml / 29,7 ms = 0,0336 also der multiplikator oder irre ich!?
Ich bekomme ja nicht mal eine klare Logik in die Steuerung da der Kopf voll ist. -
@Aphofis sagte:
im Datenpunkt Osmose_Max soll immer der letzte wert dazu addiert werden.
Die Funktion von Osmose_Liste verstehe ich nicht. Ich würde es so machen (Telegram habe ich weggelassen):

-
@Aphofis sagte:
im Datenpunkt Osmose_Max soll immer der letzte wert dazu addiert werden.
Die Funktion von Osmose_Liste verstehe ich nicht. Ich würde es so machen (Telegram habe ich weggelassen):

@paul53
Ich habe das jetzt mal so erstellt und mal sehen was passiert! Hoffe es ist alles korrekt
hab alles so erstellt, nur steht jetzt bei Osmose_Max und Osmose_Aktuell in den Datenpunkten null ml
man sieht nach Magnetventil aktivität blinken die Werte einmal grün also werden aktualisiert aber es werden keine Werte reingeschrieben.
Hab ich irgendwas falsch eingetragen !?<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="+1G(UxR,[r+.|zkiB/vV">ml_pro_Tag</variable> <variable type="" id="y7I~$w.+g}nXuK:1.omr">ml_Kumulativ</variable> <variable type="" id="%Q[v7`AnbO!=*F@k+]FI">ed</variable> <variable type="" id="mrAREF@hiC:V((WhP.7V">Wert</variable> <variable type="" id="n/T:1VLIR3j_gACWfT~x">ml_Aktuell</variable> <variable type="" id="lTn2D@tH$;bU9gSr^CA0">letzte_Änderung</variable> <variable type="" id="4v{s:b74.xrhXZmIY@m(">vorherige_letzte_Änderung</variable> </variables> <block type="variables_set" id="N%U]2fvmY.T1~mn!c,G]" x="-437" y="13"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="get_value" id="|gzZ4N9[kbOWHjb5|CPP"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> </block> </value> <next> <block type="variables_set" id="n#oY=)!H8gvI?pSEL;wA"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> <value name="VALUE"> <block type="get_value" id="g-G(j+_se.=o62nhm-No"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> </block> </value> <next> <block type="comment" id="MW*K7**0s.%A7$T~[cR*"> <field name="COMMENT">Magnetventil</field> <next> <block type="on_ext" id=",5Z^kv5Ei55FuDKKR_=c"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="G7u/.1jVBJ?1hB%RenH*"> <field name="oid">rpi2.0.gpio.21.state</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="XFF1]`-5XdL!,Qoc{@L5"> <value name="IF0"> <block type="logic_negate" id="5bIb])6]Wtr;(^}sGJ5K"> <value name="BOOL"> <block type="variables_get" id="tFKspW1}6|#1VEwe79yw"> <field name="VAR" id="mrAREF@hiC:V((WhP.7V" variabletype="">Wert</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id=":Vd):pd^B9QZ]XNc3aOA"> <field name="VAR" id="%Q[v7`AnbO!=*F@k+]FI" variabletype="">ed</field> <value name="VALUE"> <block type="math_arithmetic" id="s+zTVliL:e6(jJPkhJ@@"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="qQ$7JUmbM{;=R%luG_Q8"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="+HDHV4B=-cpF8BHu.eE#"> <field name="VAR" id="lTn2D@tH$;bU9gSr^CA0" variabletype="">letzte_Änderung</field> </block> </value> <value name="B"> <shadow type="math_number" id="-V^?qv:urT2cn#/1kZ|E"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="96[qw5z(Vlik#9En,Aaf"> <field name="VAR" id="4v{s:b74.xrhXZmIY@m(" variabletype="">vorherige_letzte_Änderung</field> </block> </value> </block> </value> <next> <block type="variables_set" id="rc?~HI4k]2igR+_G[J{#"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> <value name="VALUE"> <block type="math_arithmetic" id="#=|;+3/-(V@,W+[aC,Ci"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id=".Ef78l`2?*Xi+,rBR;Y8"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Lg?2]x,X:U*{W57;mLoi"> <field name="VAR" id="%Q[v7`AnbO!=*F@k+]FI" variabletype="">ed</field> </block> </value> <value name="B"> <shadow type="math_number" id="-WTJ.BR}5KrvO6%r(M1E"> <field name="NUM">1</field> </shadow> <block type="get_value" id="JSRW~#-tJH,YA*q.~#iH"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.ml_multiplikator</field> </block> </value> </block> </value> <next> <block type="update" id="2_)s0|IwH15~OG!V)hGu"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="QOg[TL)c4~;@v%(1,(}C"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="`L5`WKGLNV0lIxB1^+!m"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id=":feclXQ7J@2[8A_@m;i:"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> </block> </value> <next> <block type="math_change" id="4F.^s1ZbM[_R3#(?rf$9"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> <value name="DELTA"> <shadow type="math_number" id="[ik6t-=z:$G6|#b7EY.X"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="mek7^C,#lA3y-HM3Rv~A"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="math_change" id="CjmwI!I1_(#2dod{u{w9"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="DELTA"> <shadow type="math_number" id="dHLE-|XF8h=O;cG_D99@"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="FIZ~3GA5M@.z(^W2^f@W"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="update" id="7(VNr^Od;Kr+3wF46SP,"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id=":4@Kz{iHVNYE8Ql]4=^S"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="`L5`WKGLNV0lIxB1^+!m"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="9~8dw)#|3wS:P4l[nqa|"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> </block> </value> </block> </value> <next> <block type="update" id="MLff]#4]Xcy`2vbBF_V@"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="$C.,|7gLMbT(B}6caBlE"> <field name="OP">ROUND</field> <value name="NUM"> <shadow type="math_number" id="OGn9LR!j2]a{pig/QDH|"> <field name="NUM">3.1</field> </shadow> <block type="variables_get" id="?g_UmII|Ok!a-3(A6.$,"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="schedule" id="IQ$G+qdI65g).r-$XaUI"> <field name="SCHEDULE">0 0 * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="l5BFy67S26MgZ8z6[cR;"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="math_number" id="t}Rs;:azDugb|0ZV6s(l"> <field name="NUM">0</field> </block> </value> <next> <block type="update" id="0X;F{kGTG4Nq{~SrT*Bk"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="v[W0thSbN8lq(znw+03="> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml> <xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="+1G(UxR,[r+.|zkiB/vV">ml_pro_Tag</variable> <variable type="" id="y7I~$w.+g}nXuK:1.omr">ml_Kumulativ</variable> <variable type="" id="%Q[v7`AnbO!=*F@k+]FI">ed</variable> <variable type="" id="mrAREF@hiC:V((WhP.7V">Wert</variable> <variable type="" id="n/T:1VLIR3j_gACWfT~x">ml_Aktuell</variable> <variable type="" id="lTn2D@tH$;bU9gSr^CA0">letzte_Änderung</variable> <variable type="" id="4v{s:b74.xrhXZmIY@m(">vorherige_letzte_Änderung</variable> </variables> <block type="variables_set" id="N%U]2fvmY.T1~mn!c,G]" x="-437" y="13"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="get_value" id="|gzZ4N9[kbOWHjb5|CPP"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> </block> </value> <next> <block type="variables_set" id="n#oY=)!H8gvI?pSEL;wA"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> <value name="VALUE"> <block type="get_value" id="g-G(j+_se.=o62nhm-No"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> </block> </value> <next> <block type="comment" id="MW*K7**0s.%A7$T~[cR*"> <field name="COMMENT">Magnetventil</field> <next> <block type="on_ext" id=",5Z^kv5Ei55FuDKKR_=c"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="G7u/.1jVBJ?1hB%RenH*"> <field name="oid">rpi2.0.gpio.21.state</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="XFF1]`-5XdL!,Qoc{@L5"> <value name="IF0"> <block type="logic_negate" id="5bIb])6]Wtr;(^}sGJ5K"> <value name="BOOL"> <block type="variables_get" id="tFKspW1}6|#1VEwe79yw"> <field name="VAR" id="mrAREF@hiC:V((WhP.7V" variabletype="">Wert</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id=":Vd):pd^B9QZ]XNc3aOA"> <field name="VAR" id="%Q[v7`AnbO!=*F@k+]FI" variabletype="">ed</field> <value name="VALUE"> <block type="math_arithmetic" id="s+zTVliL:e6(jJPkhJ@@"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="qQ$7JUmbM{;=R%luG_Q8"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="+HDHV4B=-cpF8BHu.eE#"> <field name="VAR" id="lTn2D@tH$;bU9gSr^CA0" variabletype="">letzte_Änderung</field> </block> </value> <value name="B"> <shadow type="math_number" id="-V^?qv:urT2cn#/1kZ|E"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="96[qw5z(Vlik#9En,Aaf"> <field name="VAR" id="4v{s:b74.xrhXZmIY@m(" variabletype="">vorherige_letzte_Änderung</field> </block> </value> </block> </value> <next> <block type="variables_set" id="rc?~HI4k]2igR+_G[J{#"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> <value name="VALUE"> <block type="math_arithmetic" id="#=|;+3/-(V@,W+[aC,Ci"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id=".Ef78l`2?*Xi+,rBR;Y8"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Lg?2]x,X:U*{W57;mLoi"> <field name="VAR" id="%Q[v7`AnbO!=*F@k+]FI" variabletype="">ed</field> </block> </value> <value name="B"> <shadow type="math_number" id="-WTJ.BR}5KrvO6%r(M1E"> <field name="NUM">1</field> </shadow> <block type="get_value" id="JSRW~#-tJH,YA*q.~#iH"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.ml_multiplikator</field> </block> </value> </block> </value> <next> <block type="update" id="2_)s0|IwH15~OG!V)hGu"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="QOg[TL)c4~;@v%(1,(}C"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="`L5`WKGLNV0lIxB1^+!m"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id=":feclXQ7J@2[8A_@m;i:"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> </block> </value> <next> <block type="math_change" id="4F.^s1ZbM[_R3#(?rf$9"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> <value name="DELTA"> <shadow type="math_number" id="[ik6t-=z:$G6|#b7EY.X"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="mek7^C,#lA3y-HM3Rv~A"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="math_change" id="CjmwI!I1_(#2dod{u{w9"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="DELTA"> <shadow type="math_number" id="dHLE-|XF8h=O;cG_D99@"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="FIZ~3GA5M@.z(^W2^f@W"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="update" id="7(VNr^Od;Kr+3wF46SP,"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id=":4@Kz{iHVNYE8Ql]4=^S"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="`L5`WKGLNV0lIxB1^+!m"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="9~8dw)#|3wS:P4l[nqa|"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> </block> </value> </block> </value> <next> <block type="update" id="MLff]#4]Xcy`2vbBF_V@"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="$C.,|7gLMbT(B}6caBlE"> <field name="OP">ROUND</field> <value name="NUM"> <shadow type="math_number" id="OGn9LR!j2]a{pig/QDH|"> <field name="NUM">3.1</field> </shadow> <block type="variables_get" id="?g_UmII|Ok!a-3(A6.$,"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="schedule" id="IQ$G+qdI65g).r-$XaUI"> <field name="SCHEDULE">0 0 * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="l5BFy67S26MgZ8z6[cR;"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="math_number" id="t}Rs;:azDugb|0ZV6s(l"> <field name="NUM">0</field> </block> </value> <next> <block type="update" id="0X;F{kGTG4Nq{~SrT*Bk"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="v[W0thSbN8lq(znw+03="> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml> -
@paul53
Ich habe das jetzt mal so erstellt und mal sehen was passiert! Hoffe es ist alles korrekt
hab alles so erstellt, nur steht jetzt bei Osmose_Max und Osmose_Aktuell in den Datenpunkten null ml
man sieht nach Magnetventil aktivität blinken die Werte einmal grün also werden aktualisiert aber es werden keine Werte reingeschrieben.
Hab ich irgendwas falsch eingetragen !?<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="+1G(UxR,[r+.|zkiB/vV">ml_pro_Tag</variable> <variable type="" id="y7I~$w.+g}nXuK:1.omr">ml_Kumulativ</variable> <variable type="" id="%Q[v7`AnbO!=*F@k+]FI">ed</variable> <variable type="" id="mrAREF@hiC:V((WhP.7V">Wert</variable> <variable type="" id="n/T:1VLIR3j_gACWfT~x">ml_Aktuell</variable> <variable type="" id="lTn2D@tH$;bU9gSr^CA0">letzte_Änderung</variable> <variable type="" id="4v{s:b74.xrhXZmIY@m(">vorherige_letzte_Änderung</variable> </variables> <block type="variables_set" id="N%U]2fvmY.T1~mn!c,G]" x="-437" y="13"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="get_value" id="|gzZ4N9[kbOWHjb5|CPP"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> </block> </value> <next> <block type="variables_set" id="n#oY=)!H8gvI?pSEL;wA"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> <value name="VALUE"> <block type="get_value" id="g-G(j+_se.=o62nhm-No"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> </block> </value> <next> <block type="comment" id="MW*K7**0s.%A7$T~[cR*"> <field name="COMMENT">Magnetventil</field> <next> <block type="on_ext" id=",5Z^kv5Ei55FuDKKR_=c"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="G7u/.1jVBJ?1hB%RenH*"> <field name="oid">rpi2.0.gpio.21.state</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="XFF1]`-5XdL!,Qoc{@L5"> <value name="IF0"> <block type="logic_negate" id="5bIb])6]Wtr;(^}sGJ5K"> <value name="BOOL"> <block type="variables_get" id="tFKspW1}6|#1VEwe79yw"> <field name="VAR" id="mrAREF@hiC:V((WhP.7V" variabletype="">Wert</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id=":Vd):pd^B9QZ]XNc3aOA"> <field name="VAR" id="%Q[v7`AnbO!=*F@k+]FI" variabletype="">ed</field> <value name="VALUE"> <block type="math_arithmetic" id="s+zTVliL:e6(jJPkhJ@@"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="qQ$7JUmbM{;=R%luG_Q8"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="+HDHV4B=-cpF8BHu.eE#"> <field name="VAR" id="lTn2D@tH$;bU9gSr^CA0" variabletype="">letzte_Änderung</field> </block> </value> <value name="B"> <shadow type="math_number" id="-V^?qv:urT2cn#/1kZ|E"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="96[qw5z(Vlik#9En,Aaf"> <field name="VAR" id="4v{s:b74.xrhXZmIY@m(" variabletype="">vorherige_letzte_Änderung</field> </block> </value> </block> </value> <next> <block type="variables_set" id="rc?~HI4k]2igR+_G[J{#"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> <value name="VALUE"> <block type="math_arithmetic" id="#=|;+3/-(V@,W+[aC,Ci"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id=".Ef78l`2?*Xi+,rBR;Y8"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Lg?2]x,X:U*{W57;mLoi"> <field name="VAR" id="%Q[v7`AnbO!=*F@k+]FI" variabletype="">ed</field> </block> </value> <value name="B"> <shadow type="math_number" id="-WTJ.BR}5KrvO6%r(M1E"> <field name="NUM">1</field> </shadow> <block type="get_value" id="JSRW~#-tJH,YA*q.~#iH"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.ml_multiplikator</field> </block> </value> </block> </value> <next> <block type="update" id="2_)s0|IwH15~OG!V)hGu"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="QOg[TL)c4~;@v%(1,(}C"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="`L5`WKGLNV0lIxB1^+!m"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id=":feclXQ7J@2[8A_@m;i:"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> </block> </value> <next> <block type="math_change" id="4F.^s1ZbM[_R3#(?rf$9"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> <value name="DELTA"> <shadow type="math_number" id="[ik6t-=z:$G6|#b7EY.X"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="mek7^C,#lA3y-HM3Rv~A"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="math_change" id="CjmwI!I1_(#2dod{u{w9"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="DELTA"> <shadow type="math_number" id="dHLE-|XF8h=O;cG_D99@"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="FIZ~3GA5M@.z(^W2^f@W"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="update" id="7(VNr^Od;Kr+3wF46SP,"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id=":4@Kz{iHVNYE8Ql]4=^S"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="`L5`WKGLNV0lIxB1^+!m"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="9~8dw)#|3wS:P4l[nqa|"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> </block> </value> </block> </value> <next> <block type="update" id="MLff]#4]Xcy`2vbBF_V@"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="$C.,|7gLMbT(B}6caBlE"> <field name="OP">ROUND</field> <value name="NUM"> <shadow type="math_number" id="OGn9LR!j2]a{pig/QDH|"> <field name="NUM">3.1</field> </shadow> <block type="variables_get" id="?g_UmII|Ok!a-3(A6.$,"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="schedule" id="IQ$G+qdI65g).r-$XaUI"> <field name="SCHEDULE">0 0 * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="l5BFy67S26MgZ8z6[cR;"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="math_number" id="t}Rs;:azDugb|0ZV6s(l"> <field name="NUM">0</field> </block> </value> <next> <block type="update" id="0X;F{kGTG4Nq{~SrT*Bk"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="v[W0thSbN8lq(znw+03="> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml> <xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="+1G(UxR,[r+.|zkiB/vV">ml_pro_Tag</variable> <variable type="" id="y7I~$w.+g}nXuK:1.omr">ml_Kumulativ</variable> <variable type="" id="%Q[v7`AnbO!=*F@k+]FI">ed</variable> <variable type="" id="mrAREF@hiC:V((WhP.7V">Wert</variable> <variable type="" id="n/T:1VLIR3j_gACWfT~x">ml_Aktuell</variable> <variable type="" id="lTn2D@tH$;bU9gSr^CA0">letzte_Änderung</variable> <variable type="" id="4v{s:b74.xrhXZmIY@m(">vorherige_letzte_Änderung</variable> </variables> <block type="variables_set" id="N%U]2fvmY.T1~mn!c,G]" x="-437" y="13"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="get_value" id="|gzZ4N9[kbOWHjb5|CPP"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> </block> </value> <next> <block type="variables_set" id="n#oY=)!H8gvI?pSEL;wA"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> <value name="VALUE"> <block type="get_value" id="g-G(j+_se.=o62nhm-No"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> </block> </value> <next> <block type="comment" id="MW*K7**0s.%A7$T~[cR*"> <field name="COMMENT">Magnetventil</field> <next> <block type="on_ext" id=",5Z^kv5Ei55FuDKKR_=c"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="G7u/.1jVBJ?1hB%RenH*"> <field name="oid">rpi2.0.gpio.21.state</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="XFF1]`-5XdL!,Qoc{@L5"> <value name="IF0"> <block type="logic_negate" id="5bIb])6]Wtr;(^}sGJ5K"> <value name="BOOL"> <block type="variables_get" id="tFKspW1}6|#1VEwe79yw"> <field name="VAR" id="mrAREF@hiC:V((WhP.7V" variabletype="">Wert</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id=":Vd):pd^B9QZ]XNc3aOA"> <field name="VAR" id="%Q[v7`AnbO!=*F@k+]FI" variabletype="">ed</field> <value name="VALUE"> <block type="math_arithmetic" id="s+zTVliL:e6(jJPkhJ@@"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="qQ$7JUmbM{;=R%luG_Q8"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="+HDHV4B=-cpF8BHu.eE#"> <field name="VAR" id="lTn2D@tH$;bU9gSr^CA0" variabletype="">letzte_Änderung</field> </block> </value> <value name="B"> <shadow type="math_number" id="-V^?qv:urT2cn#/1kZ|E"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="96[qw5z(Vlik#9En,Aaf"> <field name="VAR" id="4v{s:b74.xrhXZmIY@m(" variabletype="">vorherige_letzte_Änderung</field> </block> </value> </block> </value> <next> <block type="variables_set" id="rc?~HI4k]2igR+_G[J{#"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> <value name="VALUE"> <block type="math_arithmetic" id="#=|;+3/-(V@,W+[aC,Ci"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id=".Ef78l`2?*Xi+,rBR;Y8"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Lg?2]x,X:U*{W57;mLoi"> <field name="VAR" id="%Q[v7`AnbO!=*F@k+]FI" variabletype="">ed</field> </block> </value> <value name="B"> <shadow type="math_number" id="-WTJ.BR}5KrvO6%r(M1E"> <field name="NUM">1</field> </shadow> <block type="get_value" id="JSRW~#-tJH,YA*q.~#iH"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.ml_multiplikator</field> </block> </value> </block> </value> <next> <block type="update" id="2_)s0|IwH15~OG!V)hGu"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="QOg[TL)c4~;@v%(1,(}C"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="`L5`WKGLNV0lIxB1^+!m"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id=":feclXQ7J@2[8A_@m;i:"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> </block> </value> <next> <block type="math_change" id="4F.^s1ZbM[_R3#(?rf$9"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> <value name="DELTA"> <shadow type="math_number" id="[ik6t-=z:$G6|#b7EY.X"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="mek7^C,#lA3y-HM3Rv~A"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="math_change" id="CjmwI!I1_(#2dod{u{w9"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="DELTA"> <shadow type="math_number" id="dHLE-|XF8h=O;cG_D99@"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="FIZ~3GA5M@.z(^W2^f@W"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="update" id="7(VNr^Od;Kr+3wF46SP,"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id=":4@Kz{iHVNYE8Ql]4=^S"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="`L5`WKGLNV0lIxB1^+!m"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="9~8dw)#|3wS:P4l[nqa|"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> </block> </value> </block> </value> <next> <block type="update" id="MLff]#4]Xcy`2vbBF_V@"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="$C.,|7gLMbT(B}6caBlE"> <field name="OP">ROUND</field> <value name="NUM"> <shadow type="math_number" id="OGn9LR!j2]a{pig/QDH|"> <field name="NUM">3.1</field> </shadow> <block type="variables_get" id="?g_UmII|Ok!a-3(A6.$,"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="schedule" id="IQ$G+qdI65g).r-$XaUI"> <field name="SCHEDULE">0 0 * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="l5BFy67S26MgZ8z6[cR;"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="math_number" id="t}Rs;:azDugb|0ZV6s(l"> <field name="NUM">0</field> </block> </value> <next> <block type="update" id="0X;F{kGTG4Nq{~SrT*Bk"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="v[W0thSbN8lq(znw+03="> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>@Aphofis sagte:
Hab ich irgendwas falsch eingetragen !?
Du benötigst für ml_pro_Tag einen zusätzlichen Datenpunkt, denn jetzt werden in den Datenpunkt "Osmose_Aktuell" zwei verschiedene Werte geschrieben.
Wert, letzte Änderung und vorherige letzte Änderung sind keine eigenen Variablen, sondern Eigenschaften des Triggerdatenpunktes (Blöcke "Trigger").

-
@Aphofis sagte:
Hab ich irgendwas falsch eingetragen !?
Du benötigst für ml_pro_Tag einen zusätzlichen Datenpunkt, denn jetzt werden in den Datenpunkt "Osmose_Aktuell" zwei verschiedene Werte geschrieben.
Wert, letzte Änderung und vorherige letzte Änderung sind keine eigenen Variablen, sondern Eigenschaften des Triggerdatenpunktes (Blöcke "Trigger").

@paul53
Ich habe den Datenpunkt ml_pro_Tag als Zahlenwert mit Maßeinheit ml erstellt.
in der Vergabe im Script habe ich ml_pro_Tag auf den Wert vom Datenpunkt gesetzt.
Doch wird nix geändert auch die beiden Osmose_Max und Osmose_Aktuell Datenpunkte bleiben rot.
Es ändert sich kein Wert.
-
@paul53
Ich habe den Datenpunkt ml_pro_Tag als Zahlenwert mit Maßeinheit ml erstellt.
in der Vergabe im Script habe ich ml_pro_Tag auf den Wert vom Datenpunkt gesetzt.
Doch wird nix geändert auch die beiden Osmose_Max und Osmose_Aktuell Datenpunkte bleiben rot.
Es ändert sich kein Wert.
-
@paul53
Ich habe das jetzt mal so erstellt und mal sehen was passiert! Hoffe es ist alles korrekt
hab alles so erstellt, nur steht jetzt bei Osmose_Max und Osmose_Aktuell in den Datenpunkten null ml
man sieht nach Magnetventil aktivität blinken die Werte einmal grün also werden aktualisiert aber es werden keine Werte reingeschrieben.
Hab ich irgendwas falsch eingetragen !?<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="+1G(UxR,[r+.|zkiB/vV">ml_pro_Tag</variable> <variable type="" id="y7I~$w.+g}nXuK:1.omr">ml_Kumulativ</variable> <variable type="" id="%Q[v7`AnbO!=*F@k+]FI">ed</variable> <variable type="" id="mrAREF@hiC:V((WhP.7V">Wert</variable> <variable type="" id="n/T:1VLIR3j_gACWfT~x">ml_Aktuell</variable> <variable type="" id="lTn2D@tH$;bU9gSr^CA0">letzte_Änderung</variable> <variable type="" id="4v{s:b74.xrhXZmIY@m(">vorherige_letzte_Änderung</variable> </variables> <block type="variables_set" id="N%U]2fvmY.T1~mn!c,G]" x="-437" y="13"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="get_value" id="|gzZ4N9[kbOWHjb5|CPP"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> </block> </value> <next> <block type="variables_set" id="n#oY=)!H8gvI?pSEL;wA"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> <value name="VALUE"> <block type="get_value" id="g-G(j+_se.=o62nhm-No"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> </block> </value> <next> <block type="comment" id="MW*K7**0s.%A7$T~[cR*"> <field name="COMMENT">Magnetventil</field> <next> <block type="on_ext" id=",5Z^kv5Ei55FuDKKR_=c"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="G7u/.1jVBJ?1hB%RenH*"> <field name="oid">rpi2.0.gpio.21.state</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="XFF1]`-5XdL!,Qoc{@L5"> <value name="IF0"> <block type="logic_negate" id="5bIb])6]Wtr;(^}sGJ5K"> <value name="BOOL"> <block type="variables_get" id="tFKspW1}6|#1VEwe79yw"> <field name="VAR" id="mrAREF@hiC:V((WhP.7V" variabletype="">Wert</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id=":Vd):pd^B9QZ]XNc3aOA"> <field name="VAR" id="%Q[v7`AnbO!=*F@k+]FI" variabletype="">ed</field> <value name="VALUE"> <block type="math_arithmetic" id="s+zTVliL:e6(jJPkhJ@@"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="qQ$7JUmbM{;=R%luG_Q8"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="+HDHV4B=-cpF8BHu.eE#"> <field name="VAR" id="lTn2D@tH$;bU9gSr^CA0" variabletype="">letzte_Änderung</field> </block> </value> <value name="B"> <shadow type="math_number" id="-V^?qv:urT2cn#/1kZ|E"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="96[qw5z(Vlik#9En,Aaf"> <field name="VAR" id="4v{s:b74.xrhXZmIY@m(" variabletype="">vorherige_letzte_Änderung</field> </block> </value> </block> </value> <next> <block type="variables_set" id="rc?~HI4k]2igR+_G[J{#"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> <value name="VALUE"> <block type="math_arithmetic" id="#=|;+3/-(V@,W+[aC,Ci"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id=".Ef78l`2?*Xi+,rBR;Y8"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Lg?2]x,X:U*{W57;mLoi"> <field name="VAR" id="%Q[v7`AnbO!=*F@k+]FI" variabletype="">ed</field> </block> </value> <value name="B"> <shadow type="math_number" id="-WTJ.BR}5KrvO6%r(M1E"> <field name="NUM">1</field> </shadow> <block type="get_value" id="JSRW~#-tJH,YA*q.~#iH"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.ml_multiplikator</field> </block> </value> </block> </value> <next> <block type="update" id="2_)s0|IwH15~OG!V)hGu"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="QOg[TL)c4~;@v%(1,(}C"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="`L5`WKGLNV0lIxB1^+!m"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id=":feclXQ7J@2[8A_@m;i:"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> </block> </value> <next> <block type="math_change" id="4F.^s1ZbM[_R3#(?rf$9"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> <value name="DELTA"> <shadow type="math_number" id="[ik6t-=z:$G6|#b7EY.X"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="mek7^C,#lA3y-HM3Rv~A"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="math_change" id="CjmwI!I1_(#2dod{u{w9"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="DELTA"> <shadow type="math_number" id="dHLE-|XF8h=O;cG_D99@"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="FIZ~3GA5M@.z(^W2^f@W"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="update" id="7(VNr^Od;Kr+3wF46SP,"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id=":4@Kz{iHVNYE8Ql]4=^S"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="`L5`WKGLNV0lIxB1^+!m"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="9~8dw)#|3wS:P4l[nqa|"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> </block> </value> </block> </value> <next> <block type="update" id="MLff]#4]Xcy`2vbBF_V@"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="$C.,|7gLMbT(B}6caBlE"> <field name="OP">ROUND</field> <value name="NUM"> <shadow type="math_number" id="OGn9LR!j2]a{pig/QDH|"> <field name="NUM">3.1</field> </shadow> <block type="variables_get" id="?g_UmII|Ok!a-3(A6.$,"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="schedule" id="IQ$G+qdI65g).r-$XaUI"> <field name="SCHEDULE">0 0 * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="l5BFy67S26MgZ8z6[cR;"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="math_number" id="t}Rs;:azDugb|0ZV6s(l"> <field name="NUM">0</field> </block> </value> <next> <block type="update" id="0X;F{kGTG4Nq{~SrT*Bk"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="v[W0thSbN8lq(znw+03="> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml> <xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="+1G(UxR,[r+.|zkiB/vV">ml_pro_Tag</variable> <variable type="" id="y7I~$w.+g}nXuK:1.omr">ml_Kumulativ</variable> <variable type="" id="%Q[v7`AnbO!=*F@k+]FI">ed</variable> <variable type="" id="mrAREF@hiC:V((WhP.7V">Wert</variable> <variable type="" id="n/T:1VLIR3j_gACWfT~x">ml_Aktuell</variable> <variable type="" id="lTn2D@tH$;bU9gSr^CA0">letzte_Änderung</variable> <variable type="" id="4v{s:b74.xrhXZmIY@m(">vorherige_letzte_Änderung</variable> </variables> <block type="variables_set" id="N%U]2fvmY.T1~mn!c,G]" x="-437" y="13"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="get_value" id="|gzZ4N9[kbOWHjb5|CPP"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> </block> </value> <next> <block type="variables_set" id="n#oY=)!H8gvI?pSEL;wA"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> <value name="VALUE"> <block type="get_value" id="g-G(j+_se.=o62nhm-No"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> </block> </value> <next> <block type="comment" id="MW*K7**0s.%A7$T~[cR*"> <field name="COMMENT">Magnetventil</field> <next> <block type="on_ext" id=",5Z^kv5Ei55FuDKKR_=c"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="G7u/.1jVBJ?1hB%RenH*"> <field name="oid">rpi2.0.gpio.21.state</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="XFF1]`-5XdL!,Qoc{@L5"> <value name="IF0"> <block type="logic_negate" id="5bIb])6]Wtr;(^}sGJ5K"> <value name="BOOL"> <block type="variables_get" id="tFKspW1}6|#1VEwe79yw"> <field name="VAR" id="mrAREF@hiC:V((WhP.7V" variabletype="">Wert</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id=":Vd):pd^B9QZ]XNc3aOA"> <field name="VAR" id="%Q[v7`AnbO!=*F@k+]FI" variabletype="">ed</field> <value name="VALUE"> <block type="math_arithmetic" id="s+zTVliL:e6(jJPkhJ@@"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="qQ$7JUmbM{;=R%luG_Q8"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="+HDHV4B=-cpF8BHu.eE#"> <field name="VAR" id="lTn2D@tH$;bU9gSr^CA0" variabletype="">letzte_Änderung</field> </block> </value> <value name="B"> <shadow type="math_number" id="-V^?qv:urT2cn#/1kZ|E"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="96[qw5z(Vlik#9En,Aaf"> <field name="VAR" id="4v{s:b74.xrhXZmIY@m(" variabletype="">vorherige_letzte_Änderung</field> </block> </value> </block> </value> <next> <block type="variables_set" id="rc?~HI4k]2igR+_G[J{#"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> <value name="VALUE"> <block type="math_arithmetic" id="#=|;+3/-(V@,W+[aC,Ci"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id=".Ef78l`2?*Xi+,rBR;Y8"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Lg?2]x,X:U*{W57;mLoi"> <field name="VAR" id="%Q[v7`AnbO!=*F@k+]FI" variabletype="">ed</field> </block> </value> <value name="B"> <shadow type="math_number" id="-WTJ.BR}5KrvO6%r(M1E"> <field name="NUM">1</field> </shadow> <block type="get_value" id="JSRW~#-tJH,YA*q.~#iH"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.ml_multiplikator</field> </block> </value> </block> </value> <next> <block type="update" id="2_)s0|IwH15~OG!V)hGu"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="QOg[TL)c4~;@v%(1,(}C"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="`L5`WKGLNV0lIxB1^+!m"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id=":feclXQ7J@2[8A_@m;i:"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> </block> </value> <next> <block type="math_change" id="4F.^s1ZbM[_R3#(?rf$9"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> <value name="DELTA"> <shadow type="math_number" id="[ik6t-=z:$G6|#b7EY.X"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="mek7^C,#lA3y-HM3Rv~A"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="math_change" id="CjmwI!I1_(#2dod{u{w9"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="DELTA"> <shadow type="math_number" id="dHLE-|XF8h=O;cG_D99@"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="FIZ~3GA5M@.z(^W2^f@W"> <field name="VAR" id="n/T:1VLIR3j_gACWfT~x" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="update" id="7(VNr^Od;Kr+3wF46SP,"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id=":4@Kz{iHVNYE8Ql]4=^S"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="`L5`WKGLNV0lIxB1^+!m"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="9~8dw)#|3wS:P4l[nqa|"> <field name="VAR" id="y7I~$w.+g}nXuK:1.omr" variabletype="">ml_Kumulativ</field> </block> </value> </block> </value> <next> <block type="update" id="MLff]#4]Xcy`2vbBF_V@"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="$C.,|7gLMbT(B}6caBlE"> <field name="OP">ROUND</field> <value name="NUM"> <shadow type="math_number" id="OGn9LR!j2]a{pig/QDH|"> <field name="NUM">3.1</field> </shadow> <block type="variables_get" id="?g_UmII|Ok!a-3(A6.$,"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="schedule" id="IQ$G+qdI65g).r-$XaUI"> <field name="SCHEDULE">0 0 * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="l5BFy67S26MgZ8z6[cR;"> <field name="VAR" id="+1G(UxR,[r+.|zkiB/vV" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="math_number" id="t}Rs;:azDugb|0ZV6s(l"> <field name="NUM">0</field> </block> </value> <next> <block type="update" id="0X;F{kGTG4Nq{~SrT*Bk"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="v[W0thSbN8lq(znw+03="> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml> -
@Aphofis
Ich sehe gerade, dass Du Deine Datenpunkte unter "admin.1" erstellt hast. Das ist gefährlich, da möglicherweise die Datenpunkte beim nächsten Update des Admin-Adpters gelöscht werden. -
@paul53
Dann sollte ich die vielleicht mal alle unter Javascript erstellen und neu verknüpfen.
Das kommt beim Debug Test heraus.
-
@Aphofis
Hast Du wirklich Wert aus den Trigger-Eigenschaften ausgewählt oder eine Variable Wert erzeugt (Log sieht nach Variable aus).
-
@paul53
Ja hab ich sieht man doch auch an dem Bordeaux farbenen Baustein.
Ich habe eine Variable namens wert erstellt. -
@Aphofis sagte:
sieht man doch auch an dem Bordeaux farbenen Baustein.
Die Trigger(-eigenschaften) haben leider die gleiche Farbe wie die Variablen. Verwende bitte die Triggereigenschaft Wert (s. oben).
-
@paul53
Ich hab noch mal geguckt!
Du meintest den Wert aus dem Trigger nun kommt folgendes in der log

@Aphofis
Wenn Du bei falls nicht Wert auch den Wert aus dem Trigger genommen hast, sollte das Skript mit dem Datenpunkt ml_pro_Tag funktionieren.Nochmal: Wert, letzte Änderung und vorherige letzte Änderung sind keine eigenen Variablen, sondern Eigenschaften des Triggerdatenpunktes (Blöcke "Trigger").
-
@Aphofis
Wenn Du bei falls nicht Wert auch den Wert aus dem Trigger genommen hast, sollte das Skript mit dem Datenpunkt ml_pro_Tag funktionieren.Nochmal: Wert, letzte Änderung und vorherige letzte Änderung sind keine eigenen Variablen, sondern Eigenschaften des Triggerdatenpunktes (Blöcke "Trigger").
-
Die Steuerung sieht jetzt so aus!
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="V]/%u4JGSoxh-Al{eT.g">ml_pro_Tag</variable> <variable type="" id="ihvas_{d.kg4gRlA_SmF">ml_Kumulativ</variable> <variable type="" id="n:v;eT@?L%cbL{M}xt_E">Differenz</variable> <variable type="" id="ckVaiUkVWNw*nrHYt1ho">ml_Aktuell</variable> </variables> <block type="variables_set" id="J.74*3iWof~,6Kx}~#T," x="-562" y="-137"> <field name="VAR" id="V]/%u4JGSoxh-Al{eT.g" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="get_value" id="j;OOKB1V1b_V.R-Z-tv="> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> </block> </value> <next> <block type="variables_set" id="r9eO:=nj*R8[_VP#N.B#"> <field name="VAR" id="ihvas_{d.kg4gRlA_SmF" variabletype="">ml_Kumulativ</field> <value name="VALUE"> <block type="get_value" id="o`iB.H?7RH[)vaB~x33:"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> </block> </value> <next> <block type="comment" id="5_dAu$u@jE|TAgl|;,XY"> <field name="COMMENT">Magnetventil</field> <next> <block type="on_ext" id=":Nr`7Jva*j~6F*k.h/^F"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="eXd?Hfx6K/{9#D2So~zg"> <field name="oid">rpi2.0.gpio.21.state</field> </shadow> <block type="get_value" id="*%whagkPP!|G[e$-}J=j"> <field name="ATTR">val</field> <field name="OID">rpi2.0.gpio.21.state</field> </block> </value> <statement name="STATEMENT"> <block type="controls_if" id=",3lQx[D^fe0|wZv07i:F"> <value name="IF0"> <block type="logic_negate" id="5YH|]f]Y8q~OZzn6dp~c"> <value name="BOOL"> <block type="on_source" id="7V.$(3ehpmvx4I8d18aw"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="72%z_H5G5)(I?g,6w}y4"> <field name="VAR" id="n:v;eT@?L%cbL{M}xt_E" variabletype="">Differenz</field> <value name="VALUE"> <block type="math_arithmetic" id="hbDOS/*?OV7f*;K%5]/B"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="1qz=5}09VW70aU;#1XFo"> <field name="NUM">1</field> </shadow> <block type="on_source" id="vRHoi8S{X(;fi6|?CNdR"> <field name="ATTR">state.lc</field> </block> </value> <value name="B"> <shadow type="math_number" id="igjc3(uZ:S);a(CB+~6G"> <field name="NUM">1</field> </shadow> <block type="on_source" id="4o,`J,IU$mwUfG~ldTcS"> <field name="ATTR">oldState.lc</field> </block> </value> </block> </value> <next> <block type="variables_set" id="m=_{N_=!`*U)%~+=6k)M"> <field name="VAR" id="ckVaiUkVWNw*nrHYt1ho" variabletype="">ml_Aktuell</field> <value name="VALUE"> <block type="math_arithmetic" id="4kRl.?`8|Mh3F%NpuU)o"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="1qz=5}09VW70aU;#1XFo"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Mhz6a_f|)g9t_NoX-J4o"> <field name="VAR" id="n:v;eT@?L%cbL{M}xt_E" variabletype="">Differenz</field> </block> </value> <value name="B"> <shadow type="math_number" id="igjc3(uZ:S);a(CB+~6G"> <field name="NUM">1</field> </shadow> <block type="get_value" id="JvRB[I?w$,K)uyI4f^bs"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.ml_multiplikator</field> </block> </value> </block> </value> <next> <block type="update" id="@DXH()Q[2XD)B|wzZ3,1"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.ml_pro_Tag</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="`T$g_{-$PLe-SSBp~eRc"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="+-xoJC%#+sANg_OJ={H8"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="f0]0D7lYkKvj8_p~z.%d"> <field name="VAR" id="ckVaiUkVWNw*nrHYt1ho" variabletype="">ml_Aktuell</field> </block> </value> </block> </value> <next> <block type="math_change" id="i##pC}m@FZYhZ+UJ#P?b"> <field name="VAR" id="ihvas_{d.kg4gRlA_SmF" variabletype="">ml_Kumulativ</field> <value name="DELTA"> <shadow type="math_number" id="rjS|:BdoUJX*N=n`Ji[]"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="CpXbPP;H9nIQMrU;Uq)1"> <field name="VAR" id="ckVaiUkVWNw*nrHYt1ho" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="math_change" id="{qy46Yh1+,z@=wazF=Sa"> <field name="VAR" id="V]/%u4JGSoxh-Al{eT.g" variabletype="">ml_pro_Tag</field> <value name="DELTA"> <shadow type="math_number" id=":iELaSM8MUE{v_j{wKtM"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Uln@f]L*.73;Q))();nx"> <field name="VAR" id="ckVaiUkVWNw*nrHYt1ho" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="update" id="Aoq8WBDY@Hokp`)m4/4X"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="OzOc$JV79+l5~%[*Ls3q"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="+-xoJC%#+sANg_OJ={H8"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="BspaT@-^5ZEI+SkZI[Mk"> <field name="VAR" id="ihvas_{d.kg4gRlA_SmF" variabletype="">ml_Kumulativ</field> </block> </value> </block> </value> <next> <block type="update" id="$L)rekVx6$I,%e;4apgW"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="0:*{$@p/*@-:+y#dr$zh"> <field name="OP">ROUND</field> <value name="NUM"> <shadow type="math_number" id="@}^3%9A.jmf{F%7.Li8b"> <field name="NUM">3.1</field> </shadow> <block type="variables_get" id="QCo;X6-+|)pOF#Zl*cIe"> <field name="VAR" id="V]/%u4JGSoxh-Al{eT.g" variabletype="">ml_pro_Tag</field> </block> </value> </block> </value> <next> <block type="debug" id=";-vf26IOUB^od6zf#o6s"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id=".;Y[}a(8N_h0U)l?C.9:"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="8!r$|^=,t[#JNZLQx94j"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="r;GezYi}HE=H%]vDDLw4"> <field name="TEXT">Dosierung aktuell </field> </block> </value> <value name="ADD1"> <block type="math_rndfixed" id="61m!Va3FI+*)OeaUc!J]"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="+-xoJC%#+sANg_OJ={H8"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="jlT*`^NkkJGXF1HToYGY"> <field name="VAR" id="ckVaiUkVWNw*nrHYt1ho" variabletype="">ml_Aktuell</field> </block> </value> </block> </value> </block> </value> <next> <block type="debug" id="HTt5R[I*-hwd.gKyl0{{"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id=".;Y[}a(8N_h0U)l?C.9:"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="FErg(6m]tZt5$=?8Ut5^"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="h|=sT+)M-v/mq%hrnL5a"> <field name="TEXT">Dosierung Gesamt </field> </block> </value> <value name="ADD1"> <block type="math_rndfixed" id="8J1lCb1g%$wdUkP,-#l|"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="+-xoJC%#+sANg_OJ={H8"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="hm55C@pg}Ti[rjK+,]k|"> <field name="VAR" id="ihvas_{d.kg4gRlA_SmF" variabletype="">ml_Kumulativ</field> </block> </value> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="schedule" id="@{?t*Kbp)#F%kZ.QV7-P"> <field name="SCHEDULE">0 0 * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="]hBT|HYa,^+;/_URpFpc"> <field name="VAR" id="V]/%u4JGSoxh-Al{eT.g" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="math_number" id="/3j~a_2+DU]a%4W0RpQ("> <field name="NUM">0</field> </block> </value> <next> <block type="update" id="F~SeVxhlc{!3syuJaRNO"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <shadow type="math_number" id="+-xoJC%#+sANg_OJ={H8"> <field name="NUM">3.1234</field> </shadow> <block type="math_number" id="IEw|b8lc[)=9`zq5COIW"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>Die Werte Wert, letzteÄnderung und vorherigeLetzteÄnderung hab ich aus der Trigger ObjektID genommen.
Doch werden keine Daten in die Datenpunkte geschrieben es steht immer nohch "null ml" in allen drei Datenpunkten.
Osmose_Aktuell, Osmose_Max und ml_pro_Tag
-
Die Steuerung sieht jetzt so aus!
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="V]/%u4JGSoxh-Al{eT.g">ml_pro_Tag</variable> <variable type="" id="ihvas_{d.kg4gRlA_SmF">ml_Kumulativ</variable> <variable type="" id="n:v;eT@?L%cbL{M}xt_E">Differenz</variable> <variable type="" id="ckVaiUkVWNw*nrHYt1ho">ml_Aktuell</variable> </variables> <block type="variables_set" id="J.74*3iWof~,6Kx}~#T," x="-562" y="-137"> <field name="VAR" id="V]/%u4JGSoxh-Al{eT.g" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="get_value" id="j;OOKB1V1b_V.R-Z-tv="> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> </block> </value> <next> <block type="variables_set" id="r9eO:=nj*R8[_VP#N.B#"> <field name="VAR" id="ihvas_{d.kg4gRlA_SmF" variabletype="">ml_Kumulativ</field> <value name="VALUE"> <block type="get_value" id="o`iB.H?7RH[)vaB~x33:"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> </block> </value> <next> <block type="comment" id="5_dAu$u@jE|TAgl|;,XY"> <field name="COMMENT">Magnetventil</field> <next> <block type="on_ext" id=":Nr`7Jva*j~6F*k.h/^F"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="eXd?Hfx6K/{9#D2So~zg"> <field name="oid">rpi2.0.gpio.21.state</field> </shadow> <block type="get_value" id="*%whagkPP!|G[e$-}J=j"> <field name="ATTR">val</field> <field name="OID">rpi2.0.gpio.21.state</field> </block> </value> <statement name="STATEMENT"> <block type="controls_if" id=",3lQx[D^fe0|wZv07i:F"> <value name="IF0"> <block type="logic_negate" id="5YH|]f]Y8q~OZzn6dp~c"> <value name="BOOL"> <block type="on_source" id="7V.$(3ehpmvx4I8d18aw"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="72%z_H5G5)(I?g,6w}y4"> <field name="VAR" id="n:v;eT@?L%cbL{M}xt_E" variabletype="">Differenz</field> <value name="VALUE"> <block type="math_arithmetic" id="hbDOS/*?OV7f*;K%5]/B"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="1qz=5}09VW70aU;#1XFo"> <field name="NUM">1</field> </shadow> <block type="on_source" id="vRHoi8S{X(;fi6|?CNdR"> <field name="ATTR">state.lc</field> </block> </value> <value name="B"> <shadow type="math_number" id="igjc3(uZ:S);a(CB+~6G"> <field name="NUM">1</field> </shadow> <block type="on_source" id="4o,`J,IU$mwUfG~ldTcS"> <field name="ATTR">oldState.lc</field> </block> </value> </block> </value> <next> <block type="variables_set" id="m=_{N_=!`*U)%~+=6k)M"> <field name="VAR" id="ckVaiUkVWNw*nrHYt1ho" variabletype="">ml_Aktuell</field> <value name="VALUE"> <block type="math_arithmetic" id="4kRl.?`8|Mh3F%NpuU)o"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="1qz=5}09VW70aU;#1XFo"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Mhz6a_f|)g9t_NoX-J4o"> <field name="VAR" id="n:v;eT@?L%cbL{M}xt_E" variabletype="">Differenz</field> </block> </value> <value name="B"> <shadow type="math_number" id="igjc3(uZ:S);a(CB+~6G"> <field name="NUM">1</field> </shadow> <block type="get_value" id="JvRB[I?w$,K)uyI4f^bs"> <field name="ATTR">val</field> <field name="OID">admin.1.Aquarium_Control.ml_multiplikator</field> </block> </value> </block> </value> <next> <block type="update" id="@DXH()Q[2XD)B|wzZ3,1"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.ml_pro_Tag</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="`T$g_{-$PLe-SSBp~eRc"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="+-xoJC%#+sANg_OJ={H8"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="f0]0D7lYkKvj8_p~z.%d"> <field name="VAR" id="ckVaiUkVWNw*nrHYt1ho" variabletype="">ml_Aktuell</field> </block> </value> </block> </value> <next> <block type="math_change" id="i##pC}m@FZYhZ+UJ#P?b"> <field name="VAR" id="ihvas_{d.kg4gRlA_SmF" variabletype="">ml_Kumulativ</field> <value name="DELTA"> <shadow type="math_number" id="rjS|:BdoUJX*N=n`Ji[]"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="CpXbPP;H9nIQMrU;Uq)1"> <field name="VAR" id="ckVaiUkVWNw*nrHYt1ho" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="math_change" id="{qy46Yh1+,z@=wazF=Sa"> <field name="VAR" id="V]/%u4JGSoxh-Al{eT.g" variabletype="">ml_pro_Tag</field> <value name="DELTA"> <shadow type="math_number" id=":iELaSM8MUE{v_j{wKtM"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Uln@f]L*.73;Q))();nx"> <field name="VAR" id="ckVaiUkVWNw*nrHYt1ho" variabletype="">ml_Aktuell</field> </block> </value> <next> <block type="update" id="Aoq8WBDY@Hokp`)m4/4X"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Max</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="OzOc$JV79+l5~%[*Ls3q"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="+-xoJC%#+sANg_OJ={H8"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="BspaT@-^5ZEI+SkZI[Mk"> <field name="VAR" id="ihvas_{d.kg4gRlA_SmF" variabletype="">ml_Kumulativ</field> </block> </value> </block> </value> <next> <block type="update" id="$L)rekVx6$I,%e;4apgW"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="0:*{$@p/*@-:+y#dr$zh"> <field name="OP">ROUND</field> <value name="NUM"> <shadow type="math_number" id="@}^3%9A.jmf{F%7.Li8b"> <field name="NUM">3.1</field> </shadow> <block type="variables_get" id="QCo;X6-+|)pOF#Zl*cIe"> <field name="VAR" id="V]/%u4JGSoxh-Al{eT.g" variabletype="">ml_pro_Tag</field> </block> </value> </block> </value> <next> <block type="debug" id=";-vf26IOUB^od6zf#o6s"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id=".;Y[}a(8N_h0U)l?C.9:"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="8!r$|^=,t[#JNZLQx94j"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="r;GezYi}HE=H%]vDDLw4"> <field name="TEXT">Dosierung aktuell </field> </block> </value> <value name="ADD1"> <block type="math_rndfixed" id="61m!Va3FI+*)OeaUc!J]"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="+-xoJC%#+sANg_OJ={H8"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="jlT*`^NkkJGXF1HToYGY"> <field name="VAR" id="ckVaiUkVWNw*nrHYt1ho" variabletype="">ml_Aktuell</field> </block> </value> </block> </value> </block> </value> <next> <block type="debug" id="HTt5R[I*-hwd.gKyl0{{"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id=".;Y[}a(8N_h0U)l?C.9:"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="FErg(6m]tZt5$=?8Ut5^"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="h|=sT+)M-v/mq%hrnL5a"> <field name="TEXT">Dosierung Gesamt </field> </block> </value> <value name="ADD1"> <block type="math_rndfixed" id="8J1lCb1g%$wdUkP,-#l|"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="+-xoJC%#+sANg_OJ={H8"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="hm55C@pg}Ti[rjK+,]k|"> <field name="VAR" id="ihvas_{d.kg4gRlA_SmF" variabletype="">ml_Kumulativ</field> </block> </value> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="schedule" id="@{?t*Kbp)#F%kZ.QV7-P"> <field name="SCHEDULE">0 0 * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="]hBT|HYa,^+;/_URpFpc"> <field name="VAR" id="V]/%u4JGSoxh-Al{eT.g" variabletype="">ml_pro_Tag</field> <value name="VALUE"> <block type="math_number" id="/3j~a_2+DU]a%4W0RpQ("> <field name="NUM">0</field> </block> </value> <next> <block type="update" id="F~SeVxhlc{!3syuJaRNO"> <mutation delay_input="false"></mutation> <field name="OID">admin.1.Aquarium_Control.Osmose_Aktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <shadow type="math_number" id="+-xoJC%#+sANg_OJ={H8"> <field name="NUM">3.1234</field> </shadow> <block type="math_number" id="IEw|b8lc[)=9`zq5COIW"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>Die Werte Wert, letzteÄnderung und vorherigeLetzteÄnderung hab ich aus der Trigger ObjektID genommen.
Doch werden keine Daten in die Datenpunkte geschrieben es steht immer nohch "null ml" in allen drei Datenpunkten.
Osmose_Aktuell, Osmose_Max und ml_pro_Tag
-
Was soll ich sagen es läuft!!!
Der Hammer das ist es Mega spitze

Ich danke dir vielmals.
Jetzt muss ich mich dran machen die Werte in eine Datenbank zu bekommen damit ich Diagramme per vis darstellen kann.
Maria DB ist schon auf meinem NAS installiert!
Nur wie am besten mit ioBroker verknüpfen und wie ich per Blockly die Daten da rein bekomme muss ich mich erstmal schlau machen.
Man lernt ja nie aus.
Nur verstehe ich es noch nicht wie der Zusammenhang ist
Wert; letzteÄnderung ; vorherigeLetzteÄnderung
Warum nicht Wert ist mir noch nicht verständlich.
Ich gucke mir heute Abend mal an was ich falsch gemacht habe.
Vielen Dank

