Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Nach Update ioBrokerAdmins alle 3 Wochen knapp 20m³ mehr

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Nach Update ioBrokerAdmins alle 3 Wochen knapp 20m³ mehr

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @Krissie777 last edited by

      @krissie777

      Für Code gibt es diese hübschen CodeTags...
      Kann man viiiiiiiiiiiiiiiiiiieeeel besser lesen dann.

      37f25f75-76fa-4d80-b12c-b9541e30a7f3-grafik.png

      K 1 Reply Last reply Reply Quote 0
      • K
        Krissie777 @Thomas Braun last edited by

        @thomas-braun ```
        code_text

          <block type="create" id="O0.%:4f-:Pqkysp}DPdK" x="63" y="-37">
            <field name="NAME">GaszaehlerStand</field>
            <value name="VALUE">
              <block type="math_number" id="DhL1vz/Iy1;/}/)[k9FO">
                <field name="NUM">0</field>
              </block>
            </value>
            <value name="COMMON">
              <block type="text" id="$(AthiGYY3W!+XI%po/t">
                <field name="TEXT">{"type": "number", "unit": "m³"}</field>
              </block>
            </value>
            <next>
              <block type="create" id="kt:st]g_7HQ~1,AVg(+C">
                <field name="NAME">GaszaehlerStandkWh</field>
                <value name="VALUE">
                  <block type="math_number" id="#Pt*uq1EN[v.o|eC$}9c">
                    <field name="NUM">0</field>
                  </block>
                </value>
                <value name="COMMON">
                  <block type="text" id="bWM6wLsF^Y~MSK#E$4}0">
                    <field name="TEXT">{"type": "number", "unit": "kWh"}</field>
                  </block>
                </value>
                <next>
                  <block type="create" id="c~W+Vn@gO~$w,H9,3xML">
                    <field name="NAME">GaszaehlerStandkWhAktuell</field>
                    <value name="VALUE">
                      <block type="math_number" id="6~||2y3P4g=*Gap6xyu(">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <value name="COMMON">
                      <block type="text" id="uv{-J@N8j|XPi-fZ;Lc]">
                        <field name="TEXT">{"type": "number", "unit": "kWh"}</field>
                      </block>
                    </value>
                    <next>
                      <block type="on" id="[Aae;WUw?/GQLLaSi|YP">
                        <field name="OID">rpi2.0.gpio.23.state</field>
                        <field name="CONDITION">true</field>
                        <field name="ACK_CONDITION"></field>
                        <statement name="STATEMENT">
                          <block type="update" id="{Fr+[nvsyzsRW=R)4u{|" inline="false">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">javascript.0.GaszaehlerStand</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_arithmetic" id="J$]R.`;08=+yt0]}Ii|*" inline="false">
                                <field name="OP">ADD</field>
                                <value name="A">
                                  <shadow type="math_number" id="(8#e7nEvA)961d@}=f1e">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="get_value" id="CUh_iTk5%z6jmF=-I~}Y">
                                    <field name="ATTR">val</field>
                                    <field name="OID">javascript.0.GaszaehlerStand</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow type="math_number" id="UpA:b_2XlkBjbm_gL8bq">
                                    <field name="NUM">0.01</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="on" id="|6!Nh%NKoNreoIx{kE(B">
                            <field name="OID">javascript.0.GaszaehlerStand</field>
                            <field name="CONDITION">ne</field>
                            <field name="ACK_CONDITION"></field>
                            <statement name="STATEMENT">
                              <block type="comment" id="gz7=_OL%2?bU~j;XKk%R">
                                <field name="COMMENT">m³ * Zustandszahl * Brennwert</field>
                                <next>
                                  <block type="update" id="8$E,+yL|3cVhOf:%4~@W" inline="false">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">javascript.0.GaszaehlerStandkWh</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_rndfixed" id=":a7CEg1}#$XfI]rAO}2/">
                                        <field name="n">1</field>
                                        <value name="x">
                                          <shadow type="math_number" id="Cm#rg^1=.kzHerEE(q1G">
                                            <field name="NUM">3.1234</field>
                                          </shadow>
                                          <block type="math_arithmetic" id="P~7p{TAN8J!hbi}wF=,s" inline="false">
                                            <field name="OP">MULTIPLY</field>
                                            <value name="A">
                                              <shadow type="math_number" id="_zw?QIdjf[qQd_(c(X(V">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="math_arithmetic" id="h/K]6epkq4eEmczq#XW4" inline="false">
                                                <field name="OP">MULTIPLY</field>
                                                <value name="A">
                                                  <shadow type="math_number" id="cr[7/qN25UTSH_]kjR/S">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="on_source" id="-Vo;;;BDSiGRGu.Y~q0L">
                                                    <field name="ATTR">state.val</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="UNm.pI?(Vmrk*-{~Q!hs">
                                                    <field name="NUM">0.9595</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id="K=xmEI^vFAvsM0@aV]/G">
                                                <field name="NUM">10.247</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <next>
                              <block type="on" id="p6?`i9$CD@7{adfD}:X=">
                                <field name="OID">javascript.0.GaszaehlerStand</field>
                                <field name="CONDITION">ne</field>
                                <field name="ACK_CONDITION"></field>
                                <statement name="STATEMENT">
                                  <block type="comment" id="-w)F88(KT~jIIR#NO3-I">
                                    <field name="COMMENT">m³ * Zustandszahl * Brennwert</field>
                                    <next>
                                      <block type="update" id="}u?BJ{W0jL$`@jpcqGO:" inline="false">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">javascript.0.GaszaehlerStandkWhAktuell</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_arithmetic" id=")h+LcW=80vV}aRvLgIST" inline="false">
                                            <field name="OP">MINUS</field>
                                            <value name="A">
                                              <shadow type="math_number">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="math_arithmetic" id="O!]xlfx~u*yAG@W/L8Yp" inline="false">
                                                <field name="OP">ADD</field>
                                                <value name="A">
                                                  <shadow type="math_number" id="Y;HNKZ~b$}0Yv3Sd{qyN">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="get_value" id=")O/%xa,c|yK}UxP*=I%N">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">javascript.0.GaszaehlerStandkWh</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="6hdg/Eh$E6Ze]y|UN-Zm">
                                                    <field name="NUM">1048.48</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id="t]!r:c[xdiI8}:y~GHwu">
                                                <field name="NUM">44148</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </xml>
        DJMarc75 paul53 2 Replies Last reply Reply Quote 0
        • DJMarc75
          DJMarc75 @Krissie777 last edited by

          @krissie777 lässt sich nicht importieren.

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

            @krissie777 sagte: code_text

            Es fehlt die erste Zeile.

            <xml xmlns="https://developers.google.com/blockly/xml">
            
            1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @Krissie777 last edited by paul53

              @krissie777 sagte: Entprellzeit 0ms

              Vorschlag mit Entprellzeit von 1000 ms:

              Bild_2022-10-11_122131148.png

              @krissie777 sagte in Nach Update ioBrokerAdmins alle 3 Wochen knapp 20m³ mehr:

              Blockzeit 1000ms.

              Was ist Blockzeit?

              K 1 Reply Last reply Reply Quote 0
              • K
                Krissie777 @DJMarc75 last edited by Krissie777

                @djmarc75 ```

                code_text

                <xml xmlns="https://developers.google.com/blockly/xml">
                  <block type="create" id="O0.%:4f-:Pqkysp}DPdK" x="63" y="-37">
                    <field name="NAME">GaszaehlerStand</field>
                    <value name="VALUE">
                      <block type="math_number" id="DhL1vz/Iy1;/}/)[k9FO">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <value name="COMMON">
                      <block type="text" id="$(AthiGYY3W!+XI%po/t">
                        <field name="TEXT">{"type": "number", "unit": "m³"}</field>
                      </block>
                    </value>
                    <next>
                      <block type="create" id="kt:st]g_7HQ~1,AVg(+C">
                        <field name="NAME">GaszaehlerStandkWh</field>
                        <value name="VALUE">
                          <block type="math_number" id="#Pt*uq1EN[v.o|eC$}9c">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <value name="COMMON">
                          <block type="text" id="bWM6wLsF^Y~MSK#E$4}0">
                            <field name="TEXT">{"type": "number", "unit": "kWh"}</field>
                          </block>
                        </value>
                        <next>
                          <block type="create" id="c~W+Vn@gO~$w,H9,3xML">
                            <field name="NAME">GaszaehlerStandkWhAktuell</field>
                            <value name="VALUE">
                              <block type="math_number" id="6~||2y3P4g=*Gap6xyu(">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                            <value name="COMMON">
                              <block type="text" id="uv{-J@N8j|XPi-fZ;Lc]">
                                <field name="TEXT">{"type": "number", "unit": "kWh"}</field>
                              </block>
                            </value>
                            <next>
                              <block type="on" id="[Aae;WUw?/GQLLaSi|YP">
                                <field name="OID">rpi2.0.gpio.23.state</field>
                                <field name="CONDITION">true</field>
                                <field name="ACK_CONDITION"></field>
                                <statement name="STATEMENT">
                                  <block type="update" id="{Fr+[nvsyzsRW=R)4u{|" inline="false">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">javascript.0.GaszaehlerStand</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_arithmetic" id="J$]R.`;08=+yt0]}Ii|*" inline="false">
                                        <field name="OP">ADD</field>
                                        <value name="A">
                                          <shadow type="math_number" id="(8#e7nEvA)961d@}=f1e">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="get_value" id="CUh_iTk5%z6jmF=-I~}Y">
                                            <field name="ATTR">val</field>
                                            <field name="OID">javascript.0.GaszaehlerStand</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow type="math_number" id="UpA:b_2XlkBjbm_gL8bq">
                                            <field name="NUM">0.01</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="on" id="|6!Nh%NKoNreoIx{kE(B">
                                    <field name="OID">javascript.0.GaszaehlerStand</field>
                                    <field name="CONDITION">ne</field>
                                    <field name="ACK_CONDITION"></field>
                                    <statement name="STATEMENT">
                                      <block type="comment" id="gz7=_OL%2?bU~j;XKk%R">
                                        <field name="COMMENT">m³ * Zustandszahl * Brennwert</field>
                                        <next>
                                          <block type="update" id="8$E,+yL|3cVhOf:%4~@W" inline="false">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">javascript.0.GaszaehlerStandkWh</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_rndfixed" id=":a7CEg1}#$XfI]rAO}2/">
                                                <field name="n">1</field>
                                                <value name="x">
                                                  <shadow type="math_number" id="Cm#rg^1=.kzHerEE(q1G">
                                                    <field name="NUM">3.1234</field>
                                                  </shadow>
                                                  <block type="math_arithmetic" id="P~7p{TAN8J!hbi}wF=,s" inline="false">
                                                    <field name="OP">MULTIPLY</field>
                                                    <value name="A">
                                                      <shadow type="math_number" id="_zw?QIdjf[qQd_(c(X(V">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="math_arithmetic" id="h/K]6epkq4eEmczq#XW4" inline="false">
                                                        <field name="OP">MULTIPLY</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="cr[7/qN25UTSH_]kjR/S">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="on_source" id="-Vo;;;BDSiGRGu.Y~q0L">
                                                            <field name="ATTR">state.val</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id="UNm.pI?(Vmrk*-{~Q!hs">
                                                            <field name="NUM">0.9595</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <shadow type="math_number" id="K=xmEI^vFAvsM0@aV]/G">
                                                        <field name="NUM">10.247</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="on" id="p6?`i9$CD@7{adfD}:X=">
                                        <field name="OID">javascript.0.GaszaehlerStand</field>
                                        <field name="CONDITION">ne</field>
                                        <field name="ACK_CONDITION"></field>
                                        <statement name="STATEMENT">
                                          <block type="comment" id="-w)F88(KT~jIIR#NO3-I">
                                            <field name="COMMENT">m³ * Zustandszahl * Brennwert</field>
                                            <next>
                                              <block type="update" id="}u?BJ{W0jL$`@jpcqGO:" inline="false">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">javascript.0.GaszaehlerStandkWhAktuell</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_arithmetic" id=")h+LcW=80vV}aRvLgIST" inline="false">
                                                    <field name="OP">MINUS</field>
                                                    <value name="A">
                                                      <shadow type="math_number">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="math_arithmetic" id="O!]xlfx~u*yAG@W/L8Yp" inline="false">
                                                        <field name="OP">ADD</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="Y;HNKZ~b$}0Yv3Sd{qyN">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="get_value" id=")O/%xa,c|yK}UxP*=I%N">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">javascript.0.GaszaehlerStandkWh</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id="6hdg/Eh$E6Ze]y|UN-Zm">
                                                            <field name="NUM">1048.48</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <shadow type="math_number" id="t]!r:c[xdiI8}:y~GHwu">
                                                        <field name="NUM">44148</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </xml>
                1 Reply Last reply Reply Quote 0
                • K
                  Krissie777 @paul53 last edited by Krissie777

                  @paul53
                  Guten Morgen Paul, ich habe die Entprellzeit und die Blockzeit auch in den Influxdb Einstellungen beim Skript in den Objekten finden können:
                  Bild2.png
                  Diese ist immer noch Standardmässig eingestellt, also unverändert.

                  Frage 1: Da ich noch nicht so gut in der Materie bin, wo an welcher Stelle füge ich Deinen Code in meinen ein? Könntest mir evtl den gesamten Code hier zum Importieren schicken und einfügen?

                  Frage 2: Zwicken sich dann evtl. die Einstellungen des Codes im Objekt Skript des Gassensors und der von Influxdb? Dort sind schon die 1000ms ausgewhält.

                  Herzlichen Dank nochmal an euch alle für die Hilfestellung.
                  Grüße
                  Chris

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

                    @krissie777 sagte: Zwicken sich dann evtl. die Einstellungen des Codes im Objekt Skript des Gassensors und der von Influxdb?

                    Nein, Javascript-Adapter und InfluxDB haben nichts miteinander zu tun.

                    @krissie777 sagte in Nach Update ioBrokerAdmins alle 3 Wochen knapp 20m³ mehr:

                    den gesamten Code hier zum Importieren schicken und einfügen?

                    Enthält nicht die Erstellung der Datenpunkte unter "javascript.0", aber die sind ja schon vorhanden.

                    <xml xmlns="https://developers.google.com/blockly/xml">
                      <variables>
                        <variable id="1StR`seQeUQb`H_z!#DP">impulse</variable>
                        <variable type="timeout" id="timeout">timeout</variable>
                      </variables>
                      <block type="variables_set" id="CYMfwYP4Y[~Z;gpBdX@D" x="62" y="362">
                        <field name="VAR" id="1StR`seQeUQb`H_z!#DP">impulse</field>
                        <value name="VALUE">
                          <block type="math_round" id="sr`@`$#f3?`,+iEloksL">
                            <field name="OP">ROUND</field>
                            <value name="NUM">
                              <shadow type="math_number" id="9]vTD}|XWIv:xGe]0r9~">
                                <field name="NUM">3.1</field>
                              </shadow>
                              <block type="math_arithmetic" id="%CD,R)X,M6RF!Y+Wld/z">
                                <field name="OP">MULTIPLY</field>
                                <value name="A">
                                  <shadow type="math_number" id="rsxHWJNVxs]{I].bJ.j!">
                                    <field name="NUM">100</field>
                                  </shadow>
                                </value>
                                <value name="B">
                                  <shadow type="math_number" id="[iT+)d{;#?aF(}S4a$mm">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="get_value" id="CUh_iTk5%z6jmF=-I~}Y">
                                    <field name="ATTR">val</field>
                                    <field name="OID">javascript.0.GaszaehlerStand</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="on" id="[Aae;WUw?/GQLLaSi|YP">
                            <field name="OID">rpi2.0.gpio.23.state</field>
                            <field name="CONDITION">gt</field>
                            <field name="ACK_CONDITION"></field>
                            <statement name="STATEMENT">
                              <block type="controls_if" id=".8+?7#XtnwL8wSR$)I7I">
                                <value name="IF0">
                                  <block type="logic_negate" id="zXX?d|iliQ_h*SR.+(RD">
                                    <value name="BOOL">
                                      <block type="timeouts_gettimeout" id="c#x{Jf@)jg!OgtA84Uv^">
                                        <field name="NAME">timeout</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="timeouts_settimeout" id="Z!VN*vvC?muiLV8x-3=,">
                                    <field name="NAME">timeout</field>
                                    <field name="DELAY">1000</field>
                                    <field name="UNIT">ms</field>
                                    <statement name="STATEMENT">
                                      <block type="timeouts_cleartimeout" id="?;w6?OB{?Xc?z=Wt@cLQ">
                                        <field name="NAME">timeout</field>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="math_change" id="`/[H3+Ij3nE00b.+0)i~">
                                        <field name="VAR" id="1StR`seQeUQb`H_z!#DP">impulse</field>
                                        <value name="DELTA">
                                          <shadow type="math_number" id="oRDL[;AKGlhn0,~F-#15">
                                            <field name="NUM">1</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="update" id="{Fr+[nvsyzsRW=R)4u{|">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">javascript.0.GaszaehlerStand</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_arithmetic" id="30_K7,K8pZwo/**.A9)M">
                                                <field name="OP">DIVIDE</field>
                                                <value name="A">
                                                  <shadow type="math_number" id="/4LUx#BMga1iIphZYSY#">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="variables_get" id="*o~eO#%{e#tFNV{HqlnS">
                                                    <field name="VAR" id="1StR`seQeUQb`H_z!#DP">impulse</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="412o~m?jItv#F.Y-ynTU">
                                                    <field name="NUM">100</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                            <next>
                              <block type="on" id="|6!Nh%NKoNreoIx{kE(B">
                                <field name="OID">javascript.0.GaszaehlerStand</field>
                                <field name="CONDITION">ne</field>
                                <field name="ACK_CONDITION"></field>
                                <statement name="STATEMENT">
                                  <block type="comment" id="gz7=_OL%2?bU~j;XKk%R">
                                    <field name="COMMENT">m³ * Zustandszahl * Brennwert</field>
                                    <next>
                                      <block type="update" id="8$E,+yL|3cVhOf:%4~@W">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">javascript.0.GaszaehlerStandkWh</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_rndfixed" id=":a7CEg1}#$XfI]rAO}2/">
                                            <field name="n">1</field>
                                            <value name="x">
                                              <shadow type="math_number" id="Cm#rg^1=.kzHerEE(q1G">
                                                <field name="NUM">3.1234</field>
                                              </shadow>
                                              <block type="math_arithmetic" id="P~7p{TAN8J!hbi}wF=,s" inline="false">
                                                <field name="OP">MULTIPLY</field>
                                                <value name="A">
                                                  <shadow type="math_number" id="_zw?QIdjf[qQd_(c(X(V">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="math_arithmetic" id="h/K]6epkq4eEmczq#XW4" inline="false">
                                                    <field name="OP">MULTIPLY</field>
                                                    <value name="A">
                                                      <shadow type="math_number" id="cr[7/qN25UTSH_]kjR/S">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="on_source" id="-Vo;;;BDSiGRGu.Y~q0L">
                                                        <field name="ATTR">state.val</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <shadow type="math_number" id="UNm.pI?(Vmrk*-{~Q!hs">
                                                        <field name="NUM">0.9595</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="K=xmEI^vFAvsM0@aV]/G">
                                                    <field name="NUM">10.247</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <next>
                                  <block type="on" id="p6?`i9$CD@7{adfD}:X=">
                                    <field name="OID">javascript.0.GaszaehlerStand</field>
                                    <field name="CONDITION">ne</field>
                                    <field name="ACK_CONDITION"></field>
                                    <statement name="STATEMENT">
                                      <block type="comment" id="-w)F88(KT~jIIR#NO3-I">
                                        <field name="COMMENT">m³ * Zustandszahl * Brennwert</field>
                                        <next>
                                          <block type="update" id="}u?BJ{W0jL$`@jpcqGO:">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">javascript.0.GaszaehlerStandkWhAktuell</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_arithmetic" id=")h+LcW=80vV}aRvLgIST" inline="false">
                                                <field name="OP">MINUS</field>
                                                <value name="A">
                                                  <shadow type="math_number">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="math_arithmetic" id="O!]xlfx~u*yAG@W/L8Yp" inline="false">
                                                    <field name="OP">ADD</field>
                                                    <value name="A">
                                                      <shadow type="math_number" id="Y;HNKZ~b$}0Yv3Sd{qyN">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="get_value" id=")O/%xa,c|yK}UxP*=I%N">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">javascript.0.GaszaehlerStandkWh</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <shadow type="math_number" id="6hdg/Eh$E6Ze]y|UN-Zm">
                                                        <field name="NUM">1048.48</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="t]!r:c[xdiI8}:y~GHwu">
                                                    <field name="NUM">44148</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </xml>
                    

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

                      @paul53 Guten Morgen Paul,

                      danke Dir für die Antwort zu der 2ten Frage.

                      Zu Frage 1: Du kannst mir auch den geänderten Code per PN zuschickecken oder hier für die anderen mt einstellen. Evtl stehen auch andere User vor dem Thema 🙂

                      Vielen Dank für Deine Hilfe.

                      Grüße
                      Chris

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

                        @paul53
                        Hallo Paul, nochmal herzlichen Dank für den Code, den ich jetzt endlich in dem Spoiler Button finden konnte. Bist klasse.

                        Dieser Code von Dir ist aber nur ein Teil meines Skripts richtig? Das ist nur der Teil der Blockzeit von 1000ms, korrekt?

                        Wo genau, sprich an welcher Stelle füge ich den Code an/ein? Ist es evtl einfacher für Dich, wenn Du mir Deinen Code und meinen Code korrekt zusammenkopierst so wie es sein soll? Bin was Blockly angeht noch nicht so trittsicher und möchte mir mein Skript nicht verhauen 😉

                        Vielen Dank für alles
                        LGR
                        Chris

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

                          @krissie777 sagte: Dieser Code von Dir ist aber nur ein Teil meines Skripts richtig?

                          Nein, es ist der komplette Code nur ohne Erstellung der ohnehin bereits vorhandenen Datenpunkte.

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          828
                          Online

                          32.0k
                          Users

                          80.5k
                          Topics

                          1.3m
                          Posts

                          6
                          16
                          665
                          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