Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. [Major Update] SourceAnalytix v0.4.7-beta.0 released !

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Major Update] SourceAnalytix v0.4.7-beta.0 released !

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

      Hallo zusammen,

      habe gerade versucht mein Shelly 2.5 einzubinden. Habe dazu die einzelenen Energy-Counter in Wh in SA eingebunden. Im Log erhalte ich folgende Meldung:

      sourceanalytix.0	2020-07-31 09:47:44.819	warn	(4036) Object sourceanalytix.0.shelly__0__SHSW-25#68C63AF9D442#1__Relay0__Energy.2020.costs.weeks.14 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "number"
      sourceanalytix.0	2020-07-31 09:47:44.762	warn	(4036) This object will not be created in future versions. Please report this to the developer.
      sourceanalytix.0	2020-07-31 09:47:44.761	warn	(4036) Object shelly__0__SHSW-25#68C63AF9D442#1__Relay0__Energy.2020.consumed.weeks.14 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "number"
      sourceanalytix.0	2020-07-31 09:47:44.690	warn	(4036) This object will not be created in future versions. Please report this to the developer.
      sourceanalytix.0	2020-07-31 09:47:44.689	warn	(4036) Object sourceanalytix.0.shelly__0__SHSW-25#68C63AF9D442#1__Relay0__Energy.2020.consumed.weeks.14 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "numbe
      sourceanalytix.0	2020-07-31 09:47:44.634	warn	(4036) This object will not be created in future versions. Please report this to the developer.
      sourceanalytix.0	2020-07-31 09:47:44.633	warn	(4036) Object shelly__0__SHSW-25#68C63AF9D442#1__Relay0__Energy.2020.costs.weeks.13 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "number"
      sourceanalytix.0	2020-07-31 09:47:44.576	warn	(4036) This object will not be created in future versions. Please report this to the developer.
      sourceanalytix.0	2020-07-31 09:47:44.575	warn	(4036) Object sourceanalytix.0.shelly__0__SHSW-25#68C63AF9D442#1__Relay0__Energy.2020.costs.weeks.13 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "number"
      sourceanalytix.0	2020-07-31 09:47:44.517	warn	(4036) This object will not be created in future versions. Please report this to the developer.
      sourceanalytix.0	2020-07-31 09:47:44.517	warn	(4036) Object shelly__0__SHSW-25#68C63AF9D442#1__Relay0__Energy.2020.consumed.weeks.13 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "number"
      sourceanalytix.0	2020-07-31 09:47:44.459	warn	(4036) This object will not be created in future versions. Please report this to the developer.
      sourceanalytix.0	2020-07-31 09:47:44.458	warn	(4036) Object sourceanalytix.0.shelly__0__SHSW-25#68C63AF9D442#1__Relay0__Energy.2020.consumed.weeks.13 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "numbe
      sourceanalytix.0	2020-07-31 09:47:44.401	warn	(4036) This object will not be created in future versions. Please report this to the developer.
      sourceanalytix.0	2020-07-31 09:47:44.401	warn	(4036) Object shelly__0__SHSW-25#68C63AF9D442#1__Relay0__Energy.2020.costs.weeks.12 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "number"
      sourceanalytix.0	2020-07-31 09:47:44.344	warn	(4036) This object will not be created in future versions. Please report this to the developer.
      

      Das ist nur ein kleiner Auszug, bekomme die Meldung zu jedem Datenpunkt. Was hat dieses zu bedeuten?

      Kann man die Statusmeldungen

      sourceanalytix.0	2020-07-31 09:54:00.796	info	(4036) Meter Calculation executed consumed data for shelly.0.SHSW-25#68C63AF9D442#1.Relay1.Energy : {"consumedDay":8.996,"consumedWeek":8.996,"consumedMonth":8.996,"consumedQuarter":8.996,"consumedYea
      sourceanalytix.0	2020-07-31 09:54:00.792	info	(4036) Set calculated value 8.99635 on state : shelly__0__SHSW-25#68C63AF9D442#1__Relay1__Energy.Current_Reading}
      

      im Log irgendwie ausblenden? Sind mir sonst zu viele Einträge im Log zu SA.

      crunchip 1 Reply Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active @0018 last edited by crunchip

        @0018 du brauchst Typ "Number" deines DP
        Stell die Instanz auf "warn" (instanzen- expertenmodus-logstufe)

        0 1 Reply Last reply Reply Quote 0
        • 0
          0018 @crunchip last edited by

          @crunchip Die ausgewählten Datenpunkte aus dem Shelly-Adapter haben den type "number".

          {
            "from": "system.adapter.shelly.0",
            "user": "system.user.admin",
            "ts": 1595840820570,
            "common": {
              "name": "Energy",
              "type": "number",
              "role": "value.power",
              "unit": "Wh",
              "def": 0,
              "read": true,
              "write": false,
          

          so wie ich das aus dem Log entnehme

          Expected "string" or "object", received "number"
          

          erwartet SA string oder object, er bekommt aber eine number. Aber ein Enegieverbrauch ist doch eigentlich immer eine number oder nicht?

          crunchip 1 Reply Last reply Reply Quote 0
          • D
            dtp @Matis last edited by

            @Matis sagte in [Major Update] SourceAnalytix 0.4.0 complete code rebuild:

            Vielleicht funzt sourceanalytix ja mal wieder, wäre schön, denn die ganzen Funktion wären schon hilfreich.

            Wäre schön. Im Moment ist dieser Adapter leider genau so unbrauchbar, wie der statistics-Adapter.

            1 Reply Last reply Reply Quote 0
            • crunchip
              crunchip Forum Testing Most Active @0018 last edited by

              @0018 https://github.com/iobroker-community-adapters/ioBroker.sourceanalytix/issues/134

              sigi2345 created this issue in iobroker-community-adapters/ioBroker.sourceanalytix

              closed Warn Meldung nach js-controller Test 3.0.6 #134

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

                Hi, kann man schon sagen wann ca. die Tageswerte wieder implementiert werden (von Mo-So) ?

                1 Reply Last reply Reply Quote 1
                • Palm_Maniac
                  Palm_Maniac last edited by Palm_Maniac

                  Die Frage ist, ob sich hier irgendwann am Adapter noch etwas tun wird. Leider gibt es aktuell dazu keine Alternative, außer viele Skripte, deshalb hoffen wir mal auf ein "Lebenszeichen". 😞

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

                    Bei Facebook meldet sich der Entwickler hin und wieder mal zu Wort - hier aber ist Funkstille

                    Atifan 1 Reply Last reply Reply Quote 0
                    • Atifan
                      Atifan @JB_Sullivan last edited by

                      Gibt es evtl. Alternativen bzw. hat jemand Scripte mit denen man Verbrauchswerte für die letzten 7 Tage erzeugen kann?

                      vauvau07 A 2 Replies Last reply Reply Quote 0
                      • vauvau07
                        vauvau07 @Atifan last edited by

                        @Atifan
                        ich habe ein Blockly für den letzten Tag,Woche Monat,Jahr für diesen Adapter

                        <xml xmlns="https://developers.google.com/blockly/xml">
                         <block type="schedule" id="XHN0@w_-bjdzn)jtY|QV" x="-587" y="-1312">
                           <field name="SCHEDULE">0 * * * *</field>
                           <statement name="STATEMENT">
                             <block type="update" id="*ju7[3DwPQUnp,5}l.yo">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                               <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Referenz_Verbrauch_laufende_Stunde</field>
                               <field name="WITH_DELAY">FALSE</field>
                               <value name="VALUE">
                                 <block type="get_value" id="Nhr2dcA^C^7n3{9.4(bq">
                                   <field name="ATTR">val</field>
                                   <field name="OID">hm-rpc.0.MEQ0705007.1.ENERGY_COUNTER</field>
                                 </block>
                               </value>
                               <next>
                                 <block type="controls_if" id="iC)BVwq6:y):Wr)VjrRw">
                                   <value name="IF0">
                                     <block type="logic_compare" id="dRhUfRd96D(MS|NYp`UV">
                                       <field name="OP">LT</field>
                                       <value name="A">
                                         <block type="get_value" id="}+x[i]73#(?SN#*jxe9n">
                                           <field name="ATTR">val</field>
                                           <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_laufende_Stunde_max</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="get_value" id="Ed2.de/FV%kjC[LZ5kJ;">
                                           <field name="ATTR">val</field>
                                           <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_laufende_Stunde</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="update" id=".0}=uLww61XoxN,J^Be8">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_laufende_Stunde_max</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="get_value" id="YvDm9#tAN%Nd}p~jlYWo">
                                           <field name="ATTR">val</field>
                                           <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_laufende_Stunde</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                 </block>
                               </next>
                             </block>
                           </statement>
                           <next>
                             <block type="schedule" id="K.-?J%TwOh{wQFTNF@7%">
                               <field name="SCHEDULE">59 23 * * *</field>
                               <statement name="STATEMENT">
                                 <block type="update" id="]7`m!c7*22WNqVfP`}2^">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                   <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_gestern</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="get_value" id="Q`-Bh0G0-Ocd_J#n0[|4">
                                       <field name="ATTR">val</field>
                                       <field name="OID">sourceanalytix.0.hm-rpc__0__MEQ0705007__1__ENERGY_COUNTER.consumption.01_current_day</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="update" id="7:ugm%E|S.VB7W0U%LZ+">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                       <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Kosten_gestern</field>
                                       <field name="WITH_DELAY">TRUE</field>
                                       <field name="DELAY_MS">1000</field>
                                       <field name="UNIT">ms</field>
                                       <field name="CLEAR_RUNNING">FALSE</field>
                                       <value name="VALUE">
                                         <block type="get_value" id="f3?*e61b7B#,PMIouXOX">
                                           <field name="ATTR">val</field>
                                           <field name="OID">sourceanalytix.0.hm-rpc__0__MEQ0705007__1__ENERGY_COUNTER.cost.01_current_day</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="update" id="t%WYL.^YKa30[)]Mu:%)">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Leistungsaufnahme_aktuell_max</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="xCi^b%qdVcPik*;%,|_)">
                                               <field name="NUM">0</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="update" id="%EmGI~@R1Y2/~?RT+?c3">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_laufende_Stunde_max</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="%2PW!=P;j^uud5iq8R+y">
                                                   <field name="NUM">0</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                               <next>
                                 <block type="schedule" id="[Q+S}a_XYRB+Tdk7x%pZ">
                                   <field name="SCHEDULE">0 0 * * 1</field>
                                   <statement name="STATEMENT">
                                     <block type="update" id="7pGRB@ylwUn+-KP-Gf;0">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_letzte_Woche</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="get_value" id="N#}7T]uAR1av3VKD!N+i">
                                           <field name="ATTR">val</field>
                                           <field name="OID">sourceanalytix.0.hm-rpc__0__MEQ0705007__1__ENERGY_COUNTER.consumption.02_current_week</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                   <next>
                                     <block type="schedule" id="5[yFxQ@FoI:BYk[4IVJ/">
                                       <field name="SCHEDULE">0 0 1 * *</field>
                                       <statement name="STATEMENT">
                                         <block type="update" id="}B_a|T@qN`Gsb+%1tCiw">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_letzter_Monat</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="get_value" id="8|_CMfXm+O5;u{?dJRNT">
                                               <field name="ATTR">val</field>
                                               <field name="OID">sourceanalytix.0.hm-rpc__0__MEQ0705007__1__ENERGY_COUNTER.consumption.03_current_month</field>
                                             </block>
                                           </value>
                                         </block>
                                       </statement>
                                       <next>
                                         <block type="on" id="V.-l]O)ki97rSsi{,gtm">
                                           <field name="OID">hm-rpc.0.MEQ0705007.1.ENERGY_COUNTER</field>
                                           <field name="CONDITION">ne</field>
                                           <field name="ACK_CONDITION"></field>
                                           <statement name="STATEMENT">
                                             <block type="update" id="3:kmsqschBQX?{7=1@{~">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_laufende_Stunde</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="math_arithmetic" id="[%))4rGnos0:[#X~119+">
                                                   <field name="OP">DIVIDE</field>
                                                   <value name="A">
                                                     <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="HqeOH8D-aiI1J`5GF8xd">
                                                       <field name="NUM">1</field>
                                                     </shadow>
                                                     <block type="math_arithmetic" id="x/?]H0Kl`=R6(tb|6lB#">
                                                       <field name="OP">MINUS</field>
                                                       <value name="A">
                                                         <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="_.pu?F1?l`fcHVjby-Uf">
                                                           <field name="NUM">1</field>
                                                         </shadow>
                                                         <block type="get_value" id="*E,@^v_!@2=,y?gP5Ck+">
                                                           <field name="ATTR">val</field>
                                                           <field name="OID">hm-rpc.0.MEQ0705007.1.ENERGY_COUNTER</field>
                                                         </block>
                                                       </value>
                                                       <value name="B">
                                                         <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="?/waTO)fpqk4cTd:a/@m">
                                                           <field name="NUM">1</field>
                                                         </shadow>
                                                         <block type="get_value" id="u8)Ov;3JVS{Y(NV-;5ah">
                                                           <field name="ATTR">val</field>
                                                           <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Referenz_Verbrauch_laufende_Stunde</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <shadow type="math_number" id=";H?YT-xf!A/4dCQ`q7wU">
                                                       <field name="NUM">1000</field>
                                                     </shadow>
                                                   </value>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="update" id="5N/ds(@#cuSA385N5|rS">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                   <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Zaehlerstand</field>
                                                   <field name="WITH_DELAY">TRUE</field>
                                                   <field name="DELAY_MS">1000</field>
                                                   <field name="UNIT">ms</field>
                                                   <field name="CLEAR_RUNNING">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="math_arithmetic" id="sX_nxv{!5@Qs@8S4E+h5">
                                                       <field name="OP">DIVIDE</field>
                                                       <value name="A">
                                                         <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="o2sG+O(14bkyCC/f=gvW">
                                                           <field name="NUM">1</field>
                                                         </shadow>
                                                         <block type="math_arithmetic" id="Y0F,DC%7Xg-O%*TC1r,|">
                                                           <field name="OP">ADD</field>
                                                           <value name="A">
                                                             <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="PDslwRX~Bq0XJq6{,N-;">
                                                               <field name="NUM">1</field>
                                                             </shadow>
                                                             <block type="get_value" id="vHP,J3d+|4mi:cKktCRl">
                                                               <field name="ATTR">val</field>
                                                               <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Referenz_Zaehlerstand</field>
                                                             </block>
                                                           </value>
                                                           <value name="B">
                                                             <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="MDv?xMDdL.w`cd8XeC+1">
                                                               <field name="NUM">1</field>
                                                             </shadow>
                                                             <block type="get_value" id="3.`HaM^kBX:Piav`Z==O">
                                                               <field name="ATTR">val</field>
                                                               <field name="OID">hm-rpc.0.MEQ0705007.1.ENERGY_COUNTER</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <value name="B">
                                                         <shadow type="math_number" id="v6fAR#RiufFa[O9SRdA7">
                                                           <field name="NUM">1000</field>
                                                         </shadow>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="update" id="bq4Y!xqOe:W,?~3qlb6y">
                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                       <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_seit_letzter_Ablesung</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="math_arithmetic" id="QFh%=rVOTo9NDZ,c.Gk-">
                                                           <field name="OP">MINUS</field>
                                                           <value name="A">
                                                             <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="VI1qk42.U@SE`.q@0z7!">
                                                               <field name="NUM">1</field>
                                                             </shadow>
                                                             <block type="get_value" id="J3Y:;AVpm:*x_d9pqk}0">
                                                               <field name="ATTR">val</field>
                                                               <field name="OID">javascript.2.Strom.Zaehlerst_Strom</field>
                                                             </block>
                                                           </value>
                                                           <value name="B">
                                                             <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="}n)+j%c}Iy1/T=I8U])(">
                                                               <field name="NUM">124278.92</field>
                                                             </shadow>
                                                             <block type="get_value" id="kL!Oqh_u6#Ogne63nIlQ">
                                                               <field name="ATTR">val</field>
                                                               <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Referenz_Verbrauch_seit_letzter_Ablesung</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="update" id="eY3g-.;V+D%KgVUX=c{%">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                           <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Kosten_kWh</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="math_arithmetic" id="w(U5vz2bTuV^U|z#fvKw">
                                                               <field name="OP">DIVIDE</field>
                                                               <value name="A">
                                                                 <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id=":24_Yu~}-}ogRzgTW)qD">
                                                                   <field name="NUM">1</field>
                                                                 </shadow>
                                                                 <block type="get_value" id="g/`]Ht8I3BZ;lP?p(%HG">
                                                                   <field name="ATTR">val</field>
                                                                   <field name="OID">sourceanalytix.0.hm-rpc__0__MEQ0705007__1__ENERGY_COUNTER.cost.01_current_day</field>
                                                                 </block>
                                                               </value>
                                                               <value name="B">
                                                                 <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="4Rvd8Fht%/;1_Of;~Gh:">
                                                                   <field name="NUM">1</field>
                                                                 </shadow>
                                                                 <block type="get_value" id="C(;^m(?G|wIs4ChcW1Kk">
                                                                   <field name="ATTR">val</field>
                                                                   <field name="OID">sourceanalytix.0.hm-rpc__0__MEQ0705007__1__ENERGY_COUNTER.consumption.01_current_day</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="update" id="5jT_:Sc0;WGG;^[ZCC/Z">
                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                               <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Kosten_seit_letzter_Ablesung</field>
                                                               <field name="WITH_DELAY">FALSE</field>
                                                               <value name="VALUE">
                                                                 <block type="math_arithmetic" id="el-M![;x{|cQl!a}FW:8">
                                                                   <field name="OP">MULTIPLY</field>
                                                                   <value name="A">
                                                                     <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id=":24_Yu~}-}ogRzgTW)qD">
                                                                       <field name="NUM">1</field>
                                                                     </shadow>
                                                                     <block type="get_value" id="Z[WHiPE:E{+cNGK=c!X4">
                                                                       <field name="ATTR">val</field>
                                                                       <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_seit_letzter_Ablesung</field>
                                                                     </block>
                                                                   </value>
                                                                   <value name="B">
                                                                     <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="4Rvd8Fht%/;1_Of;~Gh:">
                                                                       <field name="NUM">1</field>
                                                                     </shadow>
                                                                     <block type="math_arithmetic" id="joHez~j1/|iJ7?2NeRAt">
                                                                       <field name="OP">DIVIDE</field>
                                                                       <value name="A">
                                                                         <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="4Z|)~e3rX,`l*=*KY(]?">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                         <block type="get_value" id="Bp7u%LpV1K-p|++}`sZl">
                                                                           <field name="ATTR">val</field>
                                                                           <field name="OID">sourceanalytix.0.hm-rpc__0__MEQ0705007__1__ENERGY_COUNTER.cost.01_current_day</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="B">
                                                                         <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="3]}?S#~tl=MkCV2yTl?=">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                         <block type="get_value" id="gVt[,4BL?wVUjQdJ9Z-q">
                                                                           <field name="ATTR">val</field>
                                                                           <field name="OID">sourceanalytix.0.hm-rpc__0__MEQ0705007__1__ENERGY_COUNTER.consumption.01_current_day</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="controls_if" id="Q?MRtB7lLyq%ncUNMC]t">
                                                                   <value name="IF0">
                                                                     <block type="logic_compare" id="?F,VX!%;pPt#*RW.RWv;">
                                                                       <field name="OP">LT</field>
                                                                       <value name="A">
                                                                         <block type="get_value" id="lrd?hNTbTq`%0sx.;*ii">
                                                                           <field name="ATTR">val</field>
                                                                           <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Leistungsaufnahme_aktuell_max</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="B">
                                                                         <block type="get_value" id="Z7Z`NXRr!=aoz%:I;-RZ">
                                                                           <field name="ATTR">val</field>
                                                                           <field name="OID">hm-rpc.0.MEQ0705007.1.POWER</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                   <statement name="DO0">
                                                                     <block type="update" id="D)c;gm7[rLdTia*wf=]*">
                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                       <field name="OID">javascript.2.Strom_SourceAnalytix.Strom_Leistungsaufnahme_aktuell_max</field>
                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                       <value name="VALUE">
                                                                         <block type="get_value" id="o=k8*t-@d0VOU,0A*oaW">
                                                                           <field name="ATTR">val</field>
                                                                           <field name="OID">hm-rpc.0.MEQ0705007.1.POWER</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </statement>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </statement>
                                           <next>
                                             <block type="create" id="yl=ip~bMA2AAjj%F[PR;">
                                               <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Korrektur_Zaehlerstand</field>
                                               <statement name="STATEMENT">
                                                 <block type="create" id="B[*y/D?4=VA1%0Zh8E1#">
                                                   <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Referenz_Zaehlerstand</field>
                                                   <statement name="STATEMENT">
                                                     <block type="create" id="FL3)llI85EDlG]~CaYCC">
                                                       <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Referenz_Verbrauch_seit_letzter_Ablesung</field>
                                                       <statement name="STATEMENT">
                                                         <block type="create" id="a^@T|OfVWBmdDua!3KY@">
                                                           <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Zaehlerstand</field>
                                                           <statement name="STATEMENT">
                                                             <block type="create" id="v7}6]~SR+oO~#i:rBPZd">
                                                               <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_seit_letzter_Ablesung</field>
                                                               <statement name="STATEMENT">
                                                                 <block type="create" id="Y;{H!iKzq82eU^##*jH|">
                                                                   <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Kosten_kWh</field>
                                                                   <statement name="STATEMENT">
                                                                     <block type="create" id="*D[a*OhsAB7EnqV(ikpi">
                                                                       <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Kosten_seit_letzter_Ablesung</field>
                                                                       <statement name="STATEMENT">
                                                                         <block type="create" id="-hLR]yv{K^vC!rb1o13[">
                                                                           <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_gestern</field>
                                                                           <statement name="STATEMENT">
                                                                             <block type="create" id="Xa=nTviSS`Eb^FcU[vpV">
                                                                               <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Kosten_gestern</field>
                                                                               <statement name="STATEMENT">
                                                                                 <block type="create" id="2oy((28j4FRi8Rw))d}{">
                                                                                   <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_letzte_Woche</field>
                                                                                   <statement name="STATEMENT">
                                                                                     <block type="create" id="C8s.jPXrZC|_?V:Bh%hY">
                                                                                       <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_letzter_Monat</field>
                                                                                       <statement name="STATEMENT">
                                                                                         <block type="create" id="=Kdpy}|}+e]hT.DhBRVH">
                                                                                           <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_letztes_Jahr</field>
                                                                                         </block>
                                                                                       </statement>
                                                                                     </block>
                                                                                   </statement>
                                                                                 </block>
                                                                               </statement>
                                                                             </block>
                                                                           </statement>
                                                                         </block>
                                                                       </statement>
                                                                     </block>
                                                                   </statement>
                                                                 </block>
                                                               </statement>
                                                             </block>
                                                           </statement>
                                                         </block>
                                                       </statement>
                                                     </block>
                                                   </statement>
                                                 </block>
                                               </statement>
                                               <next>
                                                 <block type="create" id="^z:/aoogc*2oz(]/OpGP">
                                                   <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Leistungsaufnahme_aktuell_max</field>
                                                   <statement name="STATEMENT">
                                                     <block type="create" id="-aZ+@mDz2G)K:|pCr24G">
                                                       <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_laufende_Stunde</field>
                                                       <statement name="STATEMENT">
                                                         <block type="create" id="V=wW=Cu^1:FQj^FRB9},">
                                                           <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Verbrauch_laufende_Stunde_max</field>
                                                           <statement name="STATEMENT">
                                                             <block type="create" id="2rCPSrUD9i^jUGoKSz-2">
                                                               <field name="NAME">javascript.2.Strom_SourceAnalytix.Strom_Referenz_Verbrauch_laufende_Stunde</field>
                                                             </block>
                                                           </statement>
                                                         </block>
                                                       </statement>
                                                     </block>
                                                   </statement>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                        </xml>_text
                        
                        1 Reply Last reply Reply Quote 0
                        • Palm_Maniac
                          Palm_Maniac last edited by

                          Vielleicht gibt es ja jemanden, der mal über den Code drüber schauen kann, um diesen leidigen NULL-Fehler auszumerzen. Das würde ja schon extrem helfen.

                          1 Reply Last reply Reply Quote 0
                          • A
                            Adnim @Atifan last edited by

                            @Atifan sagte in [Major Update] SourceAnalytix 0.4.0 complete code rebuild:

                            Gibt es evtl. Alternativen bzw. hat jemand Scripte mit denen man Verbrauchswerte für die letzten 7 Tage erzeugen kann?

                            evtl passt das skript hier bei euch auch?

                            https://github.com/hdering/homematic_verbrauchszaehler

                            1 Reply Last reply Reply Quote 0
                            • M
                              mbpresents last edited by mbpresents

                              Hallo zusammen,
                              ich habe mir heute erstmals den SourceAnalytix Adapter installiert um Strom-/Kosten vom Zähler (Bezug/Einspeisung) zu analysieren.
                              Verknüpfung mit Zählerwerten (Smartmeter-Adapter) für Bezug und Einspeisung klappte und stehen jetzt unter weeks/months/quarter zur Verfügung. Diese würde ich gerne in eine InfluxDB schreiben und anschließend in Grafana visualisieren.
                              Mir stellen sich zwei Fragen:

                              1. zur Zeit sehe ich diese Werte unter Sourceanalytix.0 im Ordner Jahr 2020.
                                Am Bsp der Monate kann ich jeden einzelnen Monat konfigurieren das dieser in die InfluxDB geschrieben wird.
                                Bei der Konfiguration des Monatswert Januar sehe ich das der Datenpunkt wie folgt heißt: "sourceanalytix.0.smartmeter__0__1-0:1_8_0__255__value.2020.costs.months.01_January"
                                Wie verhält sich das ganze bei einem Jahreswechsel?
                                Wird dann automatisch einen neues Jahr erstellt oder einfach angepasst auf das neue Jahr?
                                Müssen die Monate des neuen Jahres dann wiederholt für das schreiben Datenpunkte in die influxDB neu konfiguriert werden?

                              2. gibt es einen Möglichkeit alle Monate etc auf einmal für das schreiben in eine Datenbank (Bsp. influx) zu konfigurieren? Im Moment erscheint der Aufwand recht hoch für jeden einzelnen Monat (noch aufwendiger wären die Kalenderwochen) zum schreiben in die InfluxDB zu konfigurieren.

                              Vieleicht habe ich auch einfach ein paar Punkte übersehen.
                              Freue mich auf Infos.

                              Grüße

                              A 1 Reply Last reply Reply Quote 0
                              • A
                                Andy200877 @mbpresents last edited by

                                @mbpresents

                                Ich würde da über ein kleines Script,
                                den aktuellen Tages / Wochen und Monatsverbrauch nehmen und diesen in einen eigenen Datenpunkt schreiben.
                                z.B. :

                                • täglich um 23:59 Uhr den aktuellen Tagesverbrauch in einen eigenen Datenpunkt schreiben.
                                • jeden Sonntag um 23:59 Uhr den aktuellen Wochenverbrauch in einen eigenen Datenpunkt schreiben.
                                • jeden letzten Tag des Monats um 23:59 Uhr den aktuellen Monatsverbrauch in einen eigenen Datenpunkt schreiben.

                                Diese Datenpunkte dann nach Grafana, SQL, oder sonst wohin aufzeichen.
                                Damit umgehst du das Jahres / Monatsproblem...

                                M 1 Reply Last reply Reply Quote 0
                                • Amnesia1211
                                  Amnesia1211 last edited by

                                  @Dutchman

                                  Hier ein Auszug aus dem Log, hoffe es Hilft dir bei der Fehlersuche.

                                  2020-08-14 04:53:25.465 - warn: sourceanalytix.0 (29949) This object will not be created in future versions. Please report this to the developer.
                                  2020-08-14 04:53:25.511 - warn: sourceanalytix.0 (29949) Object sonoff__0__NAS0__ENERGY_Power.2020.consumed.weeks.28 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "number"
                                  2020-08-14 04:53:25.511 - warn: sourceanalytix.0 (29949) This object will not be created in future versions. Please report this to the developer.
                                  2020-08-14 04:53:25.558 - warn: sourceanalytix.0 (29949) Object sonoff__0__NAS0__ENERGY_Power.2020.meterReadings.weeks.28 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "number"
                                  2020-08-14 04:53:25.558 - warn: sourceanalytix.0 (29949) This object will not be created in future versions. Please report this to the developer.
                                  2020-08-14 04:53:25.603 - warn: sourceanalytix.0 (29949) Object sonoff__0__NAS0__ENERGY_Power.2020.costs.weeks.28 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "number"
                                  2020-08-14 04:53:25.604 - warn: sourceanalytix.0 (29949) This object will not be created in future versions. Please report this to the developer.
                                  2020-08-14 04:53:25.650 - warn: sourceanalytix.0 (29949) Object sonoff__0__NAS0__ENERGY_Power.2020.consumed.weeks.29 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "number"
                                  2020-08-14 04:53:25.650 - warn: sourceanalytix.0 (29949) This object will not be created in future versions. Please report this to the developer.
                                  2020-08-14 04:53:25.696 - warn: sourceanalytix.0 (29949) Object sonoff__0__NAS0__ENERGY_Power.2020.meterReadings.weeks.29 is invalid: obj.common.name has an invalid type! Expected "string" or "object", received "number"
                                  2020-08-14 04:53:25.696 - warn: sourceanalytix.0 (29949) This object will not be created in future versions. Please report this to the developer.
                                  

                                  Das ganze ging noch so weiter aber dann wird das hier zu groß denke ich....
                                  Danke schon mal für deine Mühe und Hilfe.

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    dtp @Amnesia1211 last edited by dtp

                                    @Amnesia1211 Diese Warnmeldungen hatte ich auch zuhauf. War mit ein Grund, weshalb ich den Adapter erst mal wieder deinstalliert habe.

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      Malz1902 @Andy200877 last edited by

                                      @Andy200877

                                      Habe das als Cron, f täglich 23.59 Sonntags um 23.59 und am 31.12. um 23.59 klappt, aber wie mache ich das für am Ende des Monats?

                                      SourceAnalytix habe mir den Adapter gerade installiert. Habe eine Steckdose per Sonoff Adapter, haben die SourceAnalytix für den Datenpunkt Energy Total aktiviert ist das richtig so? Wo finde ich denn dann die Werte täglich, monatlich, jährlich?

                                      X 1 Reply Last reply Reply Quote 0
                                      • X
                                        xbow42 @Malz1902 last edited by

                                        @Malz1902 Cron "0 0 1 * *" jeden 1. im Monat 00:00

                                        Atifan 1 Reply Last reply Reply Quote 0
                                        • Atifan
                                          Atifan @xbow42 last edited by

                                          Falls es jemand brauchen kann.
                                          Habe mir jetzt zwei Blockly Scripte erstellt, mit denen ich den Stromverbrauch und den Wasserverbrauch der letzten 7 Tage logge und mir in Grafana anzeigen lasse.
                                          Brauche also kein Sourceanalytics mehr. Einziger Nachteil ist, meine Anzeige ist <heute, gestern, vorgestern, vor 3 Tagen, vor 4 Tagen, vor 5 Tagen, vor 6 Tagen> statt wie bei Sourceanalytics <Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag, Sonntag>.

                                          Wasserverbrauch der letzten 7 Tage
                                          74bf9e9f-323a-41ad-b406-db4d5a6bc36e-image.png

                                          <xml xmlns="https://developers.google.com/blockly/xml">
                                            <block type="schedule" id="D8b8A[Vu|6HiotAVpgf/" x="-1488" y="188">
                                              <field name="SCHEDULE">{"time":{"exactTime":true,"start":"23:59"},"period":{"days":1}}</field>
                                              <statement name="STATEMENT">
                                                <block type="update" id="):pA.YXuccNrThTR!:N,">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_00_Zählerstand_Tagesende</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="get_value" id="7G`A!*:dx08%5B96elT]">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">parser.0.Wasseruhr</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="update" id="6KoxJ{5#BCT=E)KF{Zr8">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_07_vor_6_Tagen</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="get_value" id="iBYl1VhiXq6|z?;O(w/|">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_06_vor_5_Tagen</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="update" id="*OGNM{DqDcaZu+6AC8Um">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_06_vor_5_Tagen</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="get_value" id="5C5(HYu#,S_BSa66[@GQ">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_05_vor_4_Tagen</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="update" id="f^A-M[@es2H*}8,-$hK+">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                              <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_05_vor_4_Tagen</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="get_value" id="t?,5sT(3Y-yBo:[`^~%p">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_04_vor_3_Tagen</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="update" id="y;x[:/!)QiA-b.8`]*D=">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_04_vor_3_Tagen</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="get_value" id="qG_mF^qIWz!M*wL3Ps?a">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_03_vorgestern</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="update" id="H);_jP,CNUlYzpv^T0#X">
                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                      <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_03_vorgestern</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="get_value" id="2wx:gHJ,h=qqxUDn1l=G">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_02_gestern</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="update" id=")@ujF(DE4(p9[OK*%:m}">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_02_gestern</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="get_value" id="jh[d9[qpG{6~pR@t^t5y">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_01_heute_aktuell</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="update" id="7Im|mD4[-Z.D:(U9F(x/">
                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                              <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_01_heute_aktuell</field>
                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                              <value name="VALUE">
                                                                                <block type="math_number" id="M_;P6hIKRvX_b?QW*DJ2">
                                                                                  <field name="NUM">0</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                            <block type="on_ext" id="f+pE0a@G*zU-by@6FUe(" x="-1488" y="638">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                              <field name="CONDITION">any</field>
                                              <field name="ACK_CONDITION"></field>
                                              <value name="OID0">
                                                <shadow type="field_oid" id="C,Ac-zm;SE@/roO8`H/+">
                                                  <field name="oid">parser.0.Wasseruhr</field>
                                                </shadow>
                                              </value>
                                              <statement name="STATEMENT">
                                                <block type="update" id="C4J;CKp8]3C[X*9ZIz*v">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_01_heute_aktuell</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="math_arithmetic" id="WW(1[CJW}{hk}w~P$kd#">
                                                      <field name="OP">MULTIPLY</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id="/tsl(y~_b6?I+crCT^i!">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="math_arithmetic" id="!d}dAx;/HL+a^8}z/BFL">
                                                          <field name="OP">MINUS</field>
                                                          <value name="A">
                                                            <shadow type="math_number" id="_b8?QPIY?$6*D;mVJFL-">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="get_value" id="0vp2e}Gb^x1mjg#FiqJy">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">parser.0.Wasseruhr</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id="BwEZeMiifVwZBCfG6yq(">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="get_value" id="+jIc+6OgAA@abWq$L)@V">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_00_Zählerstand_Tagesende</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="86+t92VTmBO)X4eOtNG:">
                                                          <field name="NUM">1000</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                            </block>
                                          </xml>
                                          

                                          Strom Netzbezug der letzten 7 Tage
                                          2ec748a4-ae8f-4b54-aaa7-8570ccf55f4e-image.png

                                          <xml xmlns="https://developers.google.com/blockly/xml">
                                            <block type="schedule" id="D8b8A[Vu|6HiotAVpgf/" x="-1488" y="188">
                                              <field name="SCHEDULE">{"time":{"exactTime":true,"start":"23:59"},"period":{"days":1}}</field>
                                              <statement name="STATEMENT">
                                                <block type="update" id="):pA.YXuccNrThTR!:N,">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_00_Zählerstand_Tagesende</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="get_value" id="7G`A!*:dx08%5B96elT]">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">smartmeter.0.1-0:1_8_0__255.value</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="update" id="6KoxJ{5#BCT=E)KF{Zr8">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_07_vor_6_Tagen</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="get_value" id="iBYl1VhiXq6|z?;O(w/|">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_06_vor_5_Tagen</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="update" id="*OGNM{DqDcaZu+6AC8Um">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_06_vor_5_Tagen</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="get_value" id="5C5(HYu#,S_BSa66[@GQ">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_05_vor_4_Tagen</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="update" id="4+Yu3VFi-g]4or8^ljH%">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                              <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_05_vor_4_Tagen</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="get_value" id="c$3H$:n61`+:iYM+GG_j">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_04_vor_3_Tagen</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="update" id="KNZk!f$11}lld2/U_|VE">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_04_vor_3_Tagen</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="get_value" id="i3i^9sbtjB3qr:Nb!T9R">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_03_vorgestern</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="update" id="vZNud[nG`/c4G:s#!xLy">
                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                      <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_03_vorgestern</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="get_value" id="hfT!REZ9|yzwNXo@uUR)">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_02_gestern</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="update" id="z::D,8y8HP:a];[?B3+F">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_02_gestern</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="get_value" id="I}jFb{rET+wP~rcw#[si">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_01_heute_aktuell</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="update" id="7Im|mD4[-Z.D:(U9F(x/">
                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                              <field name="OID">javascript.0.eigene_Datenpunkte.Wasserverbrauch_01_heute_aktuell</field>
                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                              <value name="VALUE">
                                                                                <block type="math_number" id="M_;P6hIKRvX_b?QW*DJ2">
                                                                                  <field name="NUM">0</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                            <block type="on_ext" id="f+pE0a@G*zU-by@6FUe(" x="-1487" y="613">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                              <field name="CONDITION">any</field>
                                              <field name="ACK_CONDITION"></field>
                                              <value name="OID0">
                                                <shadow type="field_oid" id="C,Ac-zm;SE@/roO8`H/+">
                                                  <field name="oid">smartmeter.0.1-0:1_8_0__255.value</field>
                                                </shadow>
                                              </value>
                                              <statement name="STATEMENT">
                                                <block type="update" id="C4J;CKp8]3C[X*9ZIz*v">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_01_heute_aktuell</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="math_arithmetic" id="!d}dAx;/HL+a^8}z/BFL">
                                                      <field name="OP">MINUS</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id="_b8?QPIY?$6*D;mVJFL-">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="get_value" id="0vp2e}Gb^x1mjg#FiqJy">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">smartmeter.0.1-0:1_8_0__255.value</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="BwEZeMiifVwZBCfG6yq(">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="get_value" id="+jIc+6OgAA@abWq$L)@V">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">javascript.0.eigene_Datenpunkte.Strombezug_aus_Netz_00_Zählerstand_Tagesende</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                            </block>
                                          </xml>
                                          
                                          Atifan 1 Reply Last reply Reply Quote 0
                                          • Atifan
                                            Atifan @Atifan last edited by

                                            Anbei noch ein Screenshot der Datenpunkte die man vorher manuell anlegen muss.
                                            d5bd5db9-d0cc-47d3-901f-d4284fce6304-image.png

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            783
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            adapter sourceanalytix testen update
                                            103
                                            1082
                                            303238
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo