Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Ich rechne mit Blockly falsch?

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Ich rechne mit Blockly falsch?

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @metaxa last edited by

      @metaxa sagte in Ich rechne mit Blockly falsch?:

      Weil mich (wahrscheinlich eh nur mich) dieser Wert JETZT interessiert

      mich doch auch.
      Ich hab mich nur gefragt, wie aussagekräftig denn so ein Livewert ist.
      Wenn man tagsüber bei Sonnenschein draufsieht ist er eh 100%, mit Batterie fast den ganzen Tag.

      ich hatte mich dann für den Wert aus den kumulierten Tageswerten entschieden, weil da schon eine leichte Glättung drin ist.

      Im Sommer wäre der mit Batterie auch 100%, wenn meine Batterie eine echte Nulleinspeisung könnte.
      jetzt liegt es um ca. 93-94% weil ich imner etwas (ca.35W) beziehen muss, damit nicht bei Regelungsungenauigkeiten zu oft erwas eingespeist würde.

      1 Reply Last reply Reply Quote 1
      • wendy2702
        wendy2702 @Homoran last edited by

        @homoran sagte in Ich rechne mit Blockly falsch?:

        @metaxa sagte in Ich rechne mit Blockly falsch?:

        Ich möchte die Autarkie meiner PV Anlage berechnen,

        so wie hier?
        Screenshot_20230726-221737_Firefox.jpg

        hab ganz einfach gerechnet!
        (Verbrauch - Bezug) : Verbrauch

        Screenshot_20230726-222951_Firefox.jpg

        ich war so böse deine Rechnung gar nicht anzusehen 🙂

        Edit:
        Das rechnest du ja auch! allerdings rennst du ggf. in die Asynchronfalle, deswegen nehme ich Variablen.
        Warum willst du das "live" haben? ich reche mit kumulierten Tageswerten für den Tag und trage das abends in einen Tagesdatenpunkt für die Statistik.

        Kannst du den Export mal einstellen... muss ich nicht klicken 😉

        Homoran 2 Replies Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @wendy2702 last edited by

          @wendy2702 sagte in Ich rechne mit Blockly falsch?:

          Kannst du den Export mal einstellen.

          meinst du das existiert nach einem Jahr noch so?

          ich muss mal suchen

          1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @wendy2702 last edited by Homoran

            @wendy2702

            <block xmlns="https://developers.google.com/blockly/xml" type="schedule" id=",$z?Odm!k4Z32uT0KvKX" x="-312.0212665913375" y="12.021266591337493"> <field name="SCHEDULE">*/5 * * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="6Lj$]cCxuQWJ%KD#Yp8v"> <field name="VAR" id="VNxc,dD-gJfc(@ST7t-M">Bezug</field> <value name="VALUE"> <block type="get_value" id="[LjP3|:l7gawyyR-%:7n"> <field name="ATTR">val</field> <field name="OID">Messwerte.0.Stromzaehler.Summenwerte.Tagesbezug</field> </block> </value> <next> <block type="variables_set" id="/#5H^4d@So~(lmt?CPy^"> <field name="VAR" id="I9s2^cRZs]azhb+^Lo(r">Einspeisung</field> <value name="VALUE"> <block type="math_arithmetic" id="sUfx*/Nk7d;6#[kBcyp)"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id=";6:-b*}|wk:E6k6R{mCO"> <field name="NUM">1</field> </shadow> <block type="get_value" id="3OpBeC{3uvJ)2sD}$uPa"> <field name="ATTR">val</field> <field name="OID">Messwerte.0.Stromzaehler.Summenwerte.Tageseinspeisung</field> </block> </value> <value name="B"> <shadow type="math_number" id="-@!9a20S??p[HR]!%zGA"> <field name="NUM">1000</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id=".k9VC]OZ7*aUY%}Ol,:b"> <field name="VAR" id="/]}c)p@bn|7*}r0p!A2@">Ertrag</field> <value name="VALUE"> <block type="math_arithmetic" id="p4!0c#mS4HR}#yW;2ehk" inline="false"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="e8!s!8Ep:A-C(RV;-pFe"> <field name="NUM">1</field> </shadow> <block type="get_value" id="]-I~lQ?G]0co*^pVqQl`"> <field name="ATTR">val</field> <field name="OID">Messwerte.0.Solaranlage.Summenwerte.Tagesertrag</field> </block> </value> <value name="B"> <shadow type="math_number" id="nyIiD-k{JdpcZ8-q]kp5"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="0rOwA7Et(4Pv3%v}_oMZ" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="D+5IG5m2IbAbM~+DCT[7"> <field name="NUM">1</field> </shadow> <block type="get_value" id="?!$Q44]}{Op_PS{%4Z2T"> <field name="ATTR">val</field> <field name="OID">sourceanalytix.0.Messwerte__0__Batterie__Wandsolar_Leistung.currentYear.consumed.01_currentDay</field> </block> </value> <value name="B"> <shadow type="math_number" id="IpO6O!F[L2:?/;uM%qe0"> <field name="NUM">1000</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="haPfrr-xWIdD$`4rNkK!"> <field name="VAR" id="TEUua*0=^tiGLIHL=|Y5">Verbrauch</field> <value name="VALUE"> <block type="get_value" id="#+(Pp`@qft0cYzUni!Ct"> <field name="ATTR">val</field> <field name="OID">Messwerte.0.Stromzaehler.Summenwerte.Tagesverbrauch</field> </block> </value> <next> <block type="variables_set" id="oJ}f0H{(d/O#mJJT]J$C"> <field name="VAR" id="XHhvIYGNS1^~$xVm:d+/">Autarkie</field> <value name="VALUE"> <block type="math_rndfixed" id="}lX2=.Yf$;G.yXXmS^3l"> <field name="n">1</field> <value name="x"> <shadow type="math_number" id="O=@zVT`^Qy,K-pINBCLZ"> <field name="NUM">3.1234</field> </shadow> <block type="math_arithmetic" id="9^fPHgb6Qn9f,OSwsz`T" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="hwQTso1%2g-)je`C;(YI"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="A.uMge^=Q?-jvj5|@oZ8" inline="false"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="G/0[0o:[N`$RBWtc1J08"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="05`4`5TJpu$}+IV@$cS$"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="fy6%T):PZjx;n(O;C}m0"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="w[FsqEkCn;ja|ICc)VLc"> <field name="VAR" id="TEUua*0=^tiGLIHL=|Y5">Verbrauch</field> </block> </value> <value name="B"> <shadow type="math_number" id="7(mrM@PxUe)pC`zS;:+m"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="#)FQ@v!Pu}|RUA%O(DU="> <field name="VAR" id="VNxc,dD-gJfc(@ST7t-M">Bezug</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="PLjNbSF`ce=4%C5MA.Y}"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="ouvIIw9Y7*.SiPexd{N3"> <field name="VAR" id="TEUua*0=^tiGLIHL=|Y5">Verbrauch</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="/(X@y!c$LXymVF9S}3Ma"> <field name="NUM">100</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="$u7Ib2FA^}!0wn+Zqusj"> <field name="VAR" id="d$.qi,pw{?Lggjmkdf[c">Eigenverbrauch</field> <value name="VALUE"> <block type="math_rndfixed" id="G{6R2,qT~1jd/oSlHMQ#"> <field name="n">1</field> <value name="x"> <shadow type="math_number" id=":crt]Me3`_977A~6XC-w"> <field name="NUM">3.1234</field> </shadow> <block type="math_arithmetic" id="S:?)nBfIShb.DjA}RX]w" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="QFbG5N/xzm{|qMx|pJwz"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="6sv#EJ5f%8.Q5SGEbx(;" inline="false"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id=",oyui,Ih,b[J|k]/uBj:"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="jo~)zmr/ouQOC+wR9fPt"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="Hz3~8i.o~@eMmn*Mou3Q"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="?TNZ)N;wx(4Ea.Xy|biE"> <field name="VAR" id="/]}c)p@bn|7*}r0p!A2@">Ertrag</field> </block> </value> <value name="B"> <shadow type="math_number" id="Esn]]*J?TnqC4kd#wdBc"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="^!?wrKk{:Wek~;}oDU4("> <field name="VAR" id="I9s2^cRZs]azhb+^Lo(r">Einspeisung</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="DhF0bxxRu2#2SC5^%7Tr"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="T^j-+N.F4a95Ki6-nvT{"> <field name="VAR" id="/]}c)p@bn|7*}r0p!A2@">Ertrag</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="J*YuLZnvgqg+sW*9n5t6"> <field name="NUM">100</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="debug" id="i?(;idOI4^9U]F`wc+BO" collapsed="true" disabled="true"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="htaCgO7YgbZZ(ECGY!Rx"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id=";02?{83ub*3]gZIAPk*Q"> <field name="VAR" id="I9s2^cRZs]azhb+^Lo(r">Einspeisung</field> </block> </value> <next> <block type="debug" id="wQxx`HZDZM].?djd7=zh" collapsed="true" disabled="true"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="nH.B@does|pqohrCsjzx"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="RH*m20/UamG.$om}h__C"> <mutation items="5"></mutation> <value name="ADD0"> <block type="text" id="POJ:N{{.69[X8Q1!AeUb"> <field name="TEXT">Autarkie: </field> </block> </value> <value name="ADD1"> <block type="variables_get" id="tCVZ6Ai#pcel3IPEw,,A"> <field name="VAR" id="XHhvIYGNS1^~$xVm:d+/">Autarkie</field> </block> </value> <value name="ADD2"> <block type="text" id="]ZAHvA}Q;XQ[dkX3t~IC"> <field name="TEXT">%, Eigenverbrauch : </field> </block> </value> <value name="ADD3"> <block type="variables_get" id="G|IB(75#xodRFfaA-aKM"> <field name="VAR" id="d$.qi,pw{?Lggjmkdf[c">Eigenverbrauch</field> </block> </value> <value name="ADD4"> <block type="text" id="Q2OgU?TYULa.5`k*6c!4"> <field name="TEXT">%</field> </block> </value> </block> </value> <next> <block type="update" id="{x*Wbu]li@5fhYFK+~#r"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Messwerte.0.Solaranlage.Summenwerte.Autarkie</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="9Q6L-+GL,}7*Z:V_uq2d"> <field name="VAR" id="XHhvIYGNS1^~$xVm:d+/">Autarkie</field> </block> </value> <next> <block type="update" id=")uy;ut$w$Dv:84Q}k7iF"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Messwerte.0.Solaranlage.Summenwerte.Eigenverbrauch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="S_l_D/_q7psV[m$@dyZt"> <field name="VAR" id="d$.qi,pw{?Lggjmkdf[c">Eigenverbrauch</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="schedule" id=".-j`?I9^1#,j`!:3.:Cr"> <field name="SCHEDULE">30 59 23 * * *</field> <statement name="STATEMENT"> <block type="update" id="8uGLPM.Q.;eSpLR_5q1s"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Messwerte.0.Solaranlage.Summenwerte.Autarkie_Tag</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="N*cCw{=0WA@Bd6#wtu8~"> <field name="VAR" id="XHhvIYGNS1^~$xVm:d+/">Autarkie</field> </block> </value> <next> <block type="update" id="f|z7qPKK[b?mto-j`ezW"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Messwerte.0.Solaranlage.Summenwerte.Eigenverbrauch_Tag</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="Ty*$`TC:qokn0ZsuE[@]"> <field name="VAR" id="d$.qi,pw{?Lggjmkdf[c">Eigenverbrauch</field> </block> </value> <next> <block type="variables_set" id="SyLB%AKh|?0`ay-)oj.K"> <field name="VAR" id="TX:09OBUl~Mk`KY%*I=)">morgen</field> <value name="VALUE"> <block type="math_arithmetic" id=":mw:qPDpcvd`Wflq8831"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="PZgF#6^T#dHpN-b(s52P"> <field name="NUM">1</field> </shadow> <block type="time_get" id="x{^V6?99^T9-VCSUQ0.C"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">object</field> </block> </value> <value name="B"> <shadow type="math_number" id="Gv?CgqaN{Y]mJ:9UFK?-"> <field name="NUM">1</field> </shadow> <block type="math_number" id="5dlzm?F6@fOJac)XMN3g"> <field name="NUM">20000</field> </block> </value> </block> </value> <next> <block type="controls_if" id="^Ed/h8dA45uGXw]Y$jI:"> <value name="IF0"> <block type="logic_compare" id="22RX]R5C;o|Th0)U1%z,"> <field name="OP">EQ</field> <value name="A"> <block type="convert_from_date" id="jiu;^tBEf4DK=`vcg`s+"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">object</field> <value name="VALUE"> <block type="variables_get" id="MLIIa2m@hlyWN{J3O^x|"> <field name="VAR" id="TX:09OBUl~Mk`KY%*I=)">morgen</field> </block> </value> </block> </value> <value name="B"> <block type="math_number" id="]y_~`jfe$#EN=!0o8heV"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="r6x8ztSC_$KTC0x+.}UG"> <field name="VAR" id="WAX38}2Yc4Q-7=MA6O?9">Bez_month</field> <value name="VALUE"> <block type="get_value" id="Skjude(yC[i5o~!~Bg8^"> <field name="ATTR">val</field> <field name="OID">Messwerte.0.Stromzaehler.Summenwerte.Monatsbezug_kum</field> </block> </value> <next> <block type="variables_set" id="zDTcRBv1FmsQ9E.C_f7u"> <field name="VAR" id="a*^xfZk,dUWsa0*R,}lI">Einsp_month</field> <value name="VALUE"> <block type="math_arithmetic" id="s~KEXznD,bgHe9]NqYUZ"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id=").~,S9/e0O`nn/1?b4~)"> <field name="NUM">1</field> </shadow> <block type="get_value" id="+DPH~k_OU3wR%#fhZ6P;"> <field name="ATTR">val</field> <field name="OID">Messwerte.0.Stromzaehler.Summenwerte.Monatseinspeisung_kum</field> </block> </value> <value name="B"> <shadow type="math_number" id="RUKfS(#`e;*kH|:i_dm$"> <field name="NUM">1000</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="y]PdyXx}IA}8bCugc`(i"> <field name="VAR" id="BU#^e9=nt5R$ar8)TJUw">Ertrag_month</field> <value name="VALUE"> <block type="get_value" id="qQ;xjND?PX,KKjq!b_/v"> <field name="ATTR">val</field> <field name="OID">Messwerte.0.Solaranlage.Summenwerte.Jahresertrag_kum</field> </block> </value> <next> <block type="variables_set" id="EzZ?FpoT=P7Wi6X,4b$X"> <field name="VAR" id="*Wl,zTg~,(?jT$k6Ma?9">Verb_month</field> <value name="VALUE"> <block type="get_value" id="6OU{9o+AynhL2_9!x}ZE"> <field name="ATTR">val</field> <field name="OID">Messwerte.0.Stromzaehler.Summenwerte.Monatsverbrauch_kum</field> </block> </value> <next> <block type="variables_set" id="B:^=oahu$$VRH)?3{XD#"> <field name="VAR" id="I3j(,YP{|~O:;wep[Ps8">Aut_month</field> <value name="VALUE"> <block type="math_rndfixed" id="6|}8dceUq`7|$?3$VYH|"> <field name="n">1</field> <value name="x"> <shadow type="math_number" id="1uQ-VgKpk16+C7lR+0%b"> <field name="NUM">3.1234</field> </shadow> <block type="math_arithmetic" id="Q)0JgGxf!3Tf!c4=5j3L" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="JXfaqG,ZY8I2}r(6v$^H"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="cVG6XNAJTtL[6WA%s;kx" inline="false"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="{i[E*53Z1)|S/:_E3~n%"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="rlc3)+$1WEG-joXGXI,r"> <field name="VAR" id="*Wl,zTg~,(?jT$k6Ma?9">Verb_month</field> </block> </value> <value name="B"> <shadow type="math_number" id="MTeXB0szdHd^y]2EHB]j"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id=":mF5dX~$$YW,~SwVU?0E"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="*|:}ZkT!v}M%;$+I5?#v"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="NN66e@Vd:I+_}1O*p}k("> <field name="VAR" id="*Wl,zTg~,(?jT$k6Ma?9">Verb_month</field> </block> </value> <value name="B"> <shadow type="math_number" id="|_{tk,2RTe-~o/.@BS?N"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="BpW_,Hif8NwlZNeTZePX"> <field name="VAR" id="WAX38}2Yc4Q-7=MA6O?9">Bez_month</field> </block> </value> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="DP0[UU}ilb^LRomf0d0Z"> <field name="NUM">100</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="AfBE@A!zg0WgC**|Zsr~"> <field name="VAR" id="$`}hhN/|XNm8]ClCgLkc">EV_month</field> <value name="VALUE"> <block type="math_rndfixed" id=")lLT^$L].A^1@Og[mYF*"> <field name="n">1</field> <value name="x"> <shadow type="math_number" id="ccVWI(i!p]AC55lqiLq6"> <field name="NUM">3.1234</field> </shadow> <block type="math_arithmetic" id="^U.]x8(U52_[y,E/jP|=" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="BI}T^v{g@`MI.fww/?/K"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="6S?,JfXg%2/`$+mh[l=W" inline="false"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="cGh6TH3zikmawjE@z`n;"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="K,HS(IZFGe~QlA{)jP!i"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="8:Qnp,aXuGd,-]Vmdh*^"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="YG%DpJL)Gd5.r6m8aOOH"> <field name="VAR" id="BU#^e9=nt5R$ar8)TJUw">Ertrag_month</field> </block> </value> <value name="B"> <shadow type="math_number" id="6hiG8WHtUJb{0,B+g+lE"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="8Ja4](jl6CLi=gGwm72)"> <field name="VAR" id="a*^xfZk,dUWsa0*R,}lI">Einsp_month</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="j)}]HPC!r[V,YnT+e33q"> <field name="NUM">1</field> </shadow> <block type="variables_get" id=":)1z|%%[=D7.w5o#P-%c"> <field name="VAR" id="BU#^e9=nt5R$ar8)TJUw">Ertrag_month</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="7K2s_[Srf@c$--,Z7+ou"> <field name="NUM">100</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="update" id="Zr55!76u:diugI#JRb*x"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Messwerte.0.Solaranlage.Summenwerte.Autarkie_Monat</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="_J0]GeOm`S3]|bX-CB0x"> <field name="VAR" id="I3j(,YP{|~O:;wep[Ps8">Aut_month</field> </block> </value> <next> <block type="update" id="ss;;+K_0BY^GFR1rOwA#"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Messwerte.0.Solaranlage.Summenwerte.Eigenverbrauch_Monat</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="$5RHve-QnTE6j/rX5px)"> <field name="VAR" id="$`}hhN/|XNm8]ClCgLkc">EV_month</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="schedule" id="X?-iS2My|S_pVpMV9nS*"> <field name="SCHEDULE">30 59 23 31 12 *</field> <statement name="STATEMENT"> <block type="variables_set" id="Jc6(!}v?1=t]D*#fj|K9"> <field name="VAR" id="^JtSC/yiP8U2NJkVh=To">Bez_year</field> <value name="VALUE"> <block type="get_value" id="O.[!Za+Q]w{v~sNr1-/R"> <field name="ATTR">val</field> <field name="OID">Messwerte.0.Stromzaehler.Summenwerte.Jahresbezug_kum</field> </block> </value> <next> <block type="variables_set" id="w7HN5T@tV8XNS,]XaZMC"> <field name="VAR" id="axAlcx!xIoWfCe,m^2Ds">Einsp_year</field> <value name="VALUE"> <block type="math_arithmetic" id="qgR8mJN@CjU$|Y]e#u7~"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="*nhsbo:8``[Z!GnE`GW("> <field name="NUM">1</field> </shadow> <block type="get_value" id="8:2xbuLp?8FF%]d@L^aK"> <field name="ATTR">val</field> <field name="OID">Messwerte.0.Stromzaehler.Summenwerte.Jahreseinspeisung_kum</field> </block> </value> <value name="B"> <shadow type="math_number" id="8ROpdEFm^P7dC/]0$ckT"> <field name="NUM">1000</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="F4/@AZAoL_=gIgE~@Lus"> <field name="VAR" id="]I+|[({jm[}Qoo*7F``M">Ertrag_year</field> <value name="VALUE"> <block type="get_value" id="SY}-DKxNU:9Uw}uOa=S4"> <field name="ATTR">val</field> <field name="OID">Messwerte.0.Solaranlage.Summenwerte.Jahresertrag_kum</field> </block> </value> <next> <block type="variables_set" id="=Hy`sU6~W/,p/CEpN[PH"> <field name="VAR" id="JeRG~aGP8Q,y@ssTs5^q">Verb_year</field> <value name="VALUE"> <block type="get_value" id="[rLtr]^lCTkmv9d6T+!7"> <field name="ATTR">val</field> <field name="OID">Messwerte.0.Stromzaehler.Summenwerte.Jahresverbrauch_kum</field> </block> </value> <next> <block type="variables_set" id=")KH}34y:8;AASU0`_LHn"> <field name="VAR" id="5),6hf$g1Oz_D6)S@R}z">Aut_year</field> <value name="VALUE"> <block type="math_rndfixed" id="^vz*yZj}:^(V:X;uSk%d"> <field name="n">1</field> <value name="x"> <shadow type="math_number" id="$S^q7]c(*:xzd#-C+mQe"> <field name="NUM">3.1234</field> </shadow> <block type="math_arithmetic" id=".`sdXZ[+u|3jZc*h~r(3" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="mZ(t;Hmx(P|eefS.~2E*"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="(;FizPM^A)`WpZ/D?/nS" inline="false"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="5#vAAwED9b`r#7yZVHr!"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="b*jqRBOr7Bzw??@IW}Sb"> <field name="VAR" id="JeRG~aGP8Q,y@ssTs5^q">Verb_year</field> </block> </value> <value name="B"> <shadow type="math_number" id="X)=8h(F@Gr]Py:wom(EL"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="_V1:[MVz|W,6sW3g2Vy]"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="`{5R~fsy{|kV/nb{7rpy"> <field name="NUM">1</field> </shadow> <block type="variables_get" id=":p_ob~LuWfs,]:lJt?2t"> <field name="VAR" id="JeRG~aGP8Q,y@ssTs5^q">Verb_year</field> </block> </value> <value name="B"> <shadow type="math_number" id="8Mp!-w_Fs14AdQy)|HXO"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="?DEgEoc1umzcG$rBCKnN"> <field name="VAR" id="^JtSC/yiP8U2NJkVh=To">Bez_year</field> </block> </value> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="E)cPw@}ebJ-1}=Fa]#O$"> <field name="NUM">100</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="(!_TBM*S1I?3rzrZRS,O"> <field name="VAR" id="Wrks:]T`-A*|{J[pZ@2H">EV_year</field> <value name="VALUE"> <block type="math_rndfixed" id="F5LEfB2WS$-Bv)_S0MS;"> <field name="n">1</field> <value name="x"> <shadow type="math_number" id="IqCc93#8,Jj`yzgzucNO"> <field name="NUM">3.1234</field> </shadow> <block type="math_arithmetic" id="$`d.HJt|i=BH5:|@5HdZ" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="B#J.H.MkdS*^O)k^=b)I"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="rx2_rP1_)7NFD{J;*?ZN" inline="false"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="=`(J!@2Fv8TclQqxC^?-"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="B+ttm+HBD],!.{rl4-[Q"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="7P}gQ7mL9+@?+tE;MoD("> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Ob*3q{t0k]QHHY50+Q^g"> <field name="VAR" id="]I+|[({jm[}Qoo*7F``M">Ertrag_year</field> </block> </value> <value name="B"> <shadow type="math_number" id="~Q,.RndckYSK.W[[+H1L"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="$;r/YM1+.q_Q_ev+l)j["> <field name="VAR" id="axAlcx!xIoWfCe,m^2Ds">Einsp_year</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="|2ZQtja;#yJC_RHIdp??"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="NIGvY-03)h*]s%Q/?%}n"> <field name="VAR" id="]I+|[({jm[}Qoo*7F``M">Ertrag_year</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="d)1Ao4dQu~qZt%GTPj2h"> <field name="NUM">100</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="update" id="Py/K)VHGaF!5-@~cnmpM"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Messwerte.0.Solaranlage.Summenwerte.Autarkie_Jahr</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="4VkvO^=/0%Me#6Us1}[c"> <field name="VAR" id="5),6hf$g1Oz_D6)S@R}z">Aut_year</field> </block> </value> <next> <block type="update" id=".rgEqqss:U#x7jM5EB?f"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Messwerte.0.Solaranlage.Summenwerte.Eigenverbrauch_Jahr</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="eMhn9H:;XDrTu3Yq+^X6"> <field name="VAR" id="Wrks:]T`-A*|{J[pZ@2H">EV_year</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block>
            

            ich nehme aber an, dass du nicht die selben Datenpunkte hast

            wendy2702 2 Replies Last reply Reply Quote 0
            • wendy2702
              wendy2702 @Homoran last edited by

              @homoran Ne. Die kann ich aber anpassen.

              1 Reply Last reply Reply Quote 0
              • wendy2702
                wendy2702 @Homoran last edited by

                @homoran Habe dein Blockly jetzt mal Importiert.

                Kannst du mir noch sagen welche DPs du manuell angelegt hast und ob du die Messwerte Stromzähler so von deinem Zähler bekommst oder ebenfalls selber berechnest?

                Danke!

                Homoran 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @wendy2702 last edited by

                  @wendy2702 sagte in Ich rechne mit Blockly falsch?:

                  die Messwerte Stromzähler so von deinem Zähler bekommst oder ebenfalls selber berechnest?

                  welche?
                  das sind alles kumulietende Werte pber den Tag um die aktuellen Werte für Autarkiegrad und Eigenverbrauch zu berechnen.

                  Wenn du nur Tageswerte am Ende des Rages haben willst brauchst du das natürlich nur einmalig zu berechnen
                  Verbrauch wird ebenfalls berechnet aus Be oder Entladung, Produktion und Bezug

                  Dementsprechend sind das alles selbst angelegte Datenpunkte in die andere Skripte laufend z.b. (Zählerstand_aktuell - Zählerstand_0:00) eintragen

                  wendy2702 1 Reply Last reply Reply Quote 0
                  • wendy2702
                    wendy2702 @Homoran last edited by

                    @homoran moin,

                    Das Blockly das du gepostet hast enthält DPs mit Messwerten im Namen, die meine ich.

                    Das was du gepostet hast deckt sich übrigens nicht mit deinem Screenshot, ist das eine neuere Version?

                    Homoran 1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @wendy2702 last edited by

                      @wendy2702 sagte in Ich rechne mit Blockly falsch?:

                      die meine ich.

                      ich auch. Das sind die täglich hochlaufenden Werte ab 0:00

                      @wendy2702 sagte in Ich rechne mit Blockly falsch?:

                      Das was du gepostet hast deckt sich übrigens nicht mit deinem Screenshot, ist das eine neuere Version?

                      nein, ich hab genau diesn Block markiert und exportiert.
                      Allerdings nicht mehr irgendwie kontrolliert.

                      Wie sieht denn dein Import aus?

                      wendy2702 1 Reply Last reply Reply Quote 0
                      • wendy2702
                        wendy2702 @Homoran last edited by

                        @homoran Der Import sieht so aus:

                        51a49467-1a87-40f6-b7ce-725fde67e1f2-grafik.png

                        dein Bild so:

                        60bcbaf0-017f-49c3-8992-da852c0e773c-1690403413120-screenshot_20230726-222951_firefox.jpg

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @wendy2702 last edited by

                          @wendy2702 sagte in Ich rechne mit Blockly falsch?:

                          Der Import sieht so aus:

                          dann hat er doch alles exportiert. sollte nur der obere Teil sein

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          1.2k
                          Online

                          31.7k
                          Users

                          79.7k
                          Topics

                          1.3m
                          Posts

                          3
                          14
                          632
                          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