Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst] Osmose Wasser Aktuell & Max Verbrauch

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] Osmose Wasser Aktuell & Max Verbrauch

    This topic has been deleted. Only users with topic management privileges can see it.
    • Aphofis
      Aphofis @paul53 last edited by Aphofis

      @paul53
      Dann kann das natürlich auch nichts werden!
      Das werde ich am Wochenende mal testen!
      Was ist in dem Falle die 3600000 welcher Wert ist das?
      Also wäre in meinem Fall:
      Betriebsstunden = Osmose_Liste
      Betriebszeitbrenner = Osmose_Aktuell
      Status Brenner Flamme = Osmose_Magnetventil
      Differenz = TimerDiff
      LetzteÄnderung = TimerStop
      vorherigeLetzteÄnderung = TimerStart
      Ich möchte ja gerne den umgerechneten aktuellen Osmose Verbrauch ausgeben und den Max Verbrauch ausgeben und in einen datenpunkt schreiben. Der Osmose_Aktuell Datenpunkt soll ja nach dem der wert ausgegeben wurde wieder auf null gesetzt werden und im Datenpunkt Osmose_Max soll immer der letzte wert dazu addiert werden.
      Dazu soll dann nachher auch eine Steuerung kommen die dann einen Tages Zähler erstellt und damit nicht mehr als Max 8 Liter am Tag dosiert werden sollen damit falls die Steuerung warum auch immer mal versagt nicht mehr als 8 Liter gepumpt werden in 24 Std.
      Ich sage dann schon mal
      Vielen Dank

      paul53 2 Replies Last reply Reply Quote 0
      • paul53
        paul53 @Aphofis last edited by paul53

        @Aphofis sagte:

        Differenz = TimerDiff
        LetzteÄnderung = TimerStop
        vorherigeLetzteÄnderung = TimerStart

        Ja. Die anderen Werte lassen sich nicht so einfach zuordnen, da die Aufgabenstellung eine andere ist. Betriebsstunden ist ähnlich zu "Osmose_Max" ein kumulierter Wert.

        @Aphofis sagte in Osmose Wasser Aktuell & Max Verbrauch Hilfe!!!:

        Was ist in dem Falle die 3600000 welcher Wert ist das?

        Das ist eine Stunde in ms. Es geht in diesem Skript um Betriebsstunden, also müssen die ms durch 3600000 dividiert werden.

        1 Reply Last reply Reply Quote 0
        • paul53
          paul53 @Aphofis last edited by paul53

          @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):

          Blockly_temp.JPG

          Aphofis 2 Replies Last reply Reply Quote 1
          • paul53
            paul53 @Aphofis last edited by

            @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 1 Reply Last reply Reply Quote 0
            • Aphofis
              Aphofis @paul53 last edited by

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

              1 Reply Last reply Reply Quote 0
              • Aphofis
                Aphofis @paul53 last edited by

                @paul53
                Das teste ich mal!
                Dankeschön

                1 Reply Last reply Reply Quote 0
                • Aphofis
                  Aphofis @paul53 last edited by Aphofis

                  @paul53
                  Ich habe das jetzt mal so erstellt und mal sehen was passiert! Hoffe es ist alles korrekt

                  Bildschirmfoto 2019-07-26 um 23.28.57.png
                  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 2 Replies Last reply Reply Quote 0
                  • paul53
                    paul53 @Aphofis last edited by paul53

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

                    Blockly_DP_Props.JPG

                    <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="n/T:1VLIR3j_gACWfT~x">ml_Aktuell</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="W|ZQbu$c[[Gg,1GwQ-y6">
                           <field name="ATTR">val</field>
                           <field name="OID">ID auswählen</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="on_source" id="n@;1vo)|/Cz_c|Vv{nTb">
                                               <field name="ATTR">state.val</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="on_source" id="$H,y10C/dq+1v0!ev,vV">
                                                   <field name="ATTR">state.lc</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <shadow type="math_number" id="-V^?qv:urT2cn#/1kZ|E">
                                                   <field name="NUM">1</field>
                                                 </shadow>
                                                 <block type="on_source" id="6o4lFAHodz3WFQq@uYfP">
                                                   <field name="ATTR">oldState.lc</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="=yiv.D_LltbnjC}o8bpy">
                                                                   <mutation delay_input="false"></mutation>
                                                                   <field name="OID">Object ID</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="dcQ~+wZDm_:rcm7eO!Sa">
                                               <mutation delay_input="false"></mutation>
                                               <field name="OID">Object ID</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="~B/FBYiw|P6ki;?g(,sl">
                                                   <field name="NUM">0</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                    </xml>
                    

                    Aphofis 1 Reply Last reply Reply Quote 1
                    • Aphofis
                      Aphofis @paul53 last edited by

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

                      Bildschirmfoto 2019-07-27 um 12.21.04.png

                      paul53 1 Reply Last reply Reply Quote 0
                      • paul53
                        paul53 @Aphofis last edited by paul53

                        @Aphofis
                        Das Blockly aus dem Spoiler hast du übernommen und anschließend den Datenpunkt "ml_pro_tag" an den 3 Stellen (Object ID) zugewiesen ? Bau mal zum Test zwei Log-Ausgaben mit Wert aus Trigger-Blöcke ein.

                        Blockly_temp.JPG

                        1 Reply Last reply Reply Quote 1
                        • paul53
                          paul53 @Aphofis last edited by

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

                          Aphofis 1 Reply Last reply Reply Quote 1
                          • Aphofis
                            Aphofis @paul53 last edited by Aphofis

                            @paul53
                            Dann sollte ich die vielleicht mal alle unter Javascript erstellen und neu verknüpfen.
                            Das kommt beim Debug Test heraus.

                            Bildschirmfoto 2019-07-27 um 17.25.49.png

                            paul53 1 Reply Last reply Reply Quote 0
                            • paul53
                              paul53 @Aphofis last edited by

                              @Aphofis
                              Hast Du wirklich Wert aus den Trigger-Eigenschaften ausgewählt oder eine Variable Wert erzeugt (Log sieht nach Variable aus).

                              Blockly_DP_Props.JPG

                              Aphofis 1 Reply Last reply Reply Quote 1
                              • Aphofis
                                Aphofis @paul53 last edited by Aphofis

                                @paul53
                                Ja hab ich sieht man doch auch an dem Bordeaux farbenen Baustein.
                                Ich habe eine Variable namens wert erstellt.

                                paul53 1 Reply Last reply Reply Quote 0
                                • paul53
                                  paul53 @Aphofis last edited by

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

                                  Aphofis 1 Reply Last reply Reply Quote 0
                                  • Aphofis
                                    Aphofis @paul53 last edited by

                                    @paul53
                                    Ich hab noch mal geguckt!
                                    Du meintest den Wert aus dem Trigger nun kommt folgendes in der log
                                    A60F1E10-70F7-4275-B99F-E28BA5AA913D.jpeg

                                    paul53 1 Reply Last reply Reply Quote 0
                                    • paul53
                                      paul53 @Aphofis last edited by paul53

                                      @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 1 Reply Last reply Reply Quote 1
                                      • Aphofis
                                        Aphofis @paul53 last edited by

                                        @paul53
                                        Jetzt habe ich es verstanden!
                                        Dann kann es auch nicht funktionieren teste ich morgen und Berichte dann.

                                        1 Reply Last reply Reply Quote 0
                                        • Aphofis
                                          Aphofis last edited by

                                          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

                                          Bildschirmfoto 2019-07-28 um 02.45.01.png

                                          paul53 1 Reply Last reply Reply Quote 0
                                          • paul53
                                            paul53 @Aphofis last edited by

                                            @Aphofis
                                            Die Datenpunkte "Osmose_Aktuell" und "ml_pro_Tag" sind vertauscht.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            774
                                            Online

                                            31.9k
                                            Users

                                            80.3k
                                            Topics

                                            1.3m
                                            Posts

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