Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

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

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Nach Update ioBrokerAdmins alle 3 Wochen knapp 20m³ mehr

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    769

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

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

Nach Update ioBrokerAdmins alle 3 Wochen knapp 20m³ mehr

Geplant Angeheftet Gesperrt Verschoben Blockly
16 Beiträge 6 Kommentatoren 1.1k Aufrufe 3 Beobachtet
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • K Krissie777

    Guten Morgen zusammen,

    ich habe vor kurzem den IO Broker Adapter geupdatet.

    Thema: Gassensor Blockly Script nach Update des ioBroker Admins - alle 3 Wochen knapp 20m³ mehr in der Objektanzeige

    Mein Blockly Script für den Gaszäherstand meldet jetzt in 3 Wochen knapp 20m² mehr Gasverbrauch. Dies war vor dem Update ca alle 4 Monate ungenauigkeit. Ich habe noch die Info zum Update im Kopf, dass man die Protokollwerte genau kontrollieren soll, da sich dort etwas geändert hat und die Entprellzeit und/oder Blockzeit im Auge behalten soll. Bei mir ist die Entprellzeit 0ms und die Blockzeit 1000ms.
    Habt Ihr eine Idee?
    Vielen Dank für jede Hilfe.
    Danke und Grüße Chris

    arteckA Offline
    arteckA Offline
    arteck
    Developer Most Active
    schrieb am zuletzt editiert von
    #2

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

    Habt Ihr eine Idee?

    ganz dolle viele.. aber ohne das Script läuft hier wenig

    zigbee hab ich, zwave auch, nuc's genauso und HA auch

    K 2 Antworten Letzte Antwort
    0
    • K Krissie777

      Guten Morgen zusammen,

      ich habe vor kurzem den IO Broker Adapter geupdatet.

      Thema: Gassensor Blockly Script nach Update des ioBroker Admins - alle 3 Wochen knapp 20m³ mehr in der Objektanzeige

      Mein Blockly Script für den Gaszäherstand meldet jetzt in 3 Wochen knapp 20m² mehr Gasverbrauch. Dies war vor dem Update ca alle 4 Monate ungenauigkeit. Ich habe noch die Info zum Update im Kopf, dass man die Protokollwerte genau kontrollieren soll, da sich dort etwas geändert hat und die Entprellzeit und/oder Blockzeit im Auge behalten soll. Bei mir ist die Entprellzeit 0ms und die Blockzeit 1000ms.
      Habt Ihr eine Idee?
      Vielen Dank für jede Hilfe.
      Danke und Grüße Chris

      HomoranH Nicht stören
      HomoranH Nicht stören
      Homoran
      Global Moderator Administrators
      schrieb am zuletzt editiert von
      #3

      @krissie777

      https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

      kein Support per PN! - Fragen im Forum stellen -
      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
      Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton oben rechts. Danke!
      der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

      1 Antwort Letzte Antwort
      0
      • arteckA arteck

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

        Habt Ihr eine Idee?

        ganz dolle viele.. aber ohne das Script läuft hier wenig

        K Offline
        K Offline
        Krissie777
        schrieb am zuletzt editiert von
        #4

        @arteck Bild1.png

        1 Antwort Letzte Antwort
        0
        • arteckA arteck

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

          Habt Ihr eine Idee?

          ganz dolle viele.. aber ohne das Script läuft hier wenig

          K Offline
          K Offline
          Krissie777
          schrieb am zuletzt editiert von Homoran
          #5

          @arteck

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

          MOD-EDIT: Code in code-tags gesetzt!

          Thomas BraunT 1 Antwort Letzte Antwort
          0
          • K Krissie777

            @arteck

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

            MOD-EDIT: Code in code-tags gesetzt!

            Thomas BraunT Online
            Thomas BraunT Online
            Thomas Braun
            Most Active
            schrieb am zuletzt editiert von
            #6

            @krissie777

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

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

            Linux-Werkzeugkasten:
            https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
            NodeJS Fixer Skript:
            https://forum.iobroker.net/topic/68035/iob-node-fix-skript
            iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

            K 1 Antwort Letzte Antwort
            0
            • Thomas BraunT Thomas Braun

              @krissie777

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

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

              K Offline
              K Offline
              Krissie777
              schrieb am zuletzt editiert von
              #7

              @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>
              DJMarc75D paul53P 2 Antworten Letzte Antwort
              0
              • K Krissie777

                @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>
                DJMarc75D Offline
                DJMarc75D Offline
                DJMarc75
                schrieb am zuletzt editiert von
                #8

                @krissie777 lässt sich nicht importieren.

                Lehrling seit 1975 !!!
                Beitrag geholfen ? dann gerne ein upvote rechts unten im Beitrag klicken ;)
                https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge

                K 1 Antwort Letzte Antwort
                0
                • K Krissie777

                  @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>
                  paul53P Offline
                  paul53P Offline
                  paul53
                  schrieb am zuletzt editiert von paul53
                  #9

                  @krissie777 sagte: code_text

                  Es fehlt die erste Zeile.

                  <xml xmlns="https://developers.google.com/blockly/xml">
                  

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

                  1 Antwort Letzte Antwort
                  0
                  • K Krissie777

                    Guten Morgen zusammen,

                    ich habe vor kurzem den IO Broker Adapter geupdatet.

                    Thema: Gassensor Blockly Script nach Update des ioBroker Admins - alle 3 Wochen knapp 20m³ mehr in der Objektanzeige

                    Mein Blockly Script für den Gaszäherstand meldet jetzt in 3 Wochen knapp 20m² mehr Gasverbrauch. Dies war vor dem Update ca alle 4 Monate ungenauigkeit. Ich habe noch die Info zum Update im Kopf, dass man die Protokollwerte genau kontrollieren soll, da sich dort etwas geändert hat und die Entprellzeit und/oder Blockzeit im Auge behalten soll. Bei mir ist die Entprellzeit 0ms und die Blockzeit 1000ms.
                    Habt Ihr eine Idee?
                    Vielen Dank für jede Hilfe.
                    Danke und Grüße Chris

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

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

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

                    K 1 Antwort Letzte Antwort
                    0
                    • DJMarc75D DJMarc75

                      @krissie777 lässt sich nicht importieren.

                      K Offline
                      K Offline
                      Krissie777
                      schrieb am zuletzt editiert von Krissie777
                      #11

                      @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 Antwort Letzte Antwort
                      0
                      • paul53P 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 Offline
                        K Offline
                        Krissie777
                        schrieb am zuletzt editiert von Krissie777
                        #12

                        @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

                        paul53P 1 Antwort Letzte Antwort
                        0
                        • K 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

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

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

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

                          K 2 Antworten Letzte Antwort
                          0
                          • paul53P 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 Offline
                            K Offline
                            Krissie777
                            schrieb am zuletzt editiert von
                            #14

                            @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 Antwort Letzte Antwort
                            0
                            • paul53P 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 Offline
                              K Offline
                              Krissie777
                              schrieb am zuletzt editiert von
                              #15

                              @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

                              paul53P 1 Antwort Letzte Antwort
                              0
                              • K Krissie777

                                @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

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

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

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

                                1 Antwort Letzte Antwort
                                0

                                Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

                                Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

                                Mit deinem Input könnte dieser Beitrag noch besser werden 💗

                                Registrieren Anmelden
                                Antworten
                                • In einem neuen Thema antworten
                                Anmelden zum Antworten
                                • Älteste zuerst
                                • Neuste zuerst
                                • Meiste Stimmen


                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                572

                                Online

                                32.8k

                                Benutzer

                                82.7k

                                Themen

                                1.3m

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

                                • Du hast noch kein Konto? Registrieren

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