Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Errechnen Verbrauch Strom

    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

    Errechnen Verbrauch Strom

    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      warp735 @Longbow last edited by

      @longbow sagte in Errechnen Verbrauch Strom:

      denn so habe ich mehr verbrauch als die APP es sagt..

      Das wird niemals gleich sein. Deine App schwindelt bzw. behält dir sicher den Eigenverbrauch der Anlage und auch die Verluste vor. Also bitte nicht erschrecken 😉

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

        Hab es nach gebaut... nur die Wert sind gleich oder ?

        Hier ein Update:

        bild01.png

        avascript.0
        2025-02-05 20:24:28.111	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.2354ACTotalRewalPower-Netz-1.2324000000000002-1232.4PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1231.9
        
        javascript.0
        2025-02-05 20:24:26.583	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.2227000000000001ACTotalRewalPower-Netz-1.2354-1235.4PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1234.9
        
        javascript.0
        2025-02-05 20:24:25.011	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.2253ACTotalRewalPower-Netz-1.2227000000000001-1222.7PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1222.2
        
        javascript.0
        2025-02-05 20:24:23.487	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.2266000000000001ACTotalRewalPower-Netz-1.2253-1225.3PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1224.8
        
        javascript.0
        2025-02-05 20:24:21.836	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.2197ACTotalRewalPower-Netz-1.2266000000000001-1226.6000000000001PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1226.1000000000001
        
        javascript.0
        2025-02-05 20:24:20.224	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.2156000000000002ACTotalRewalPower-Netz-1.2197-1219.7PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1219.2
        
        javascript.0
        2025-02-05 20:24:18.733	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.2227000000000001ACTotalRewalPower-Netz-1.2156000000000002-1215.6000000000001PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1215.1000000000001
        
        javascript.0
        2025-02-05 20:24:17.182	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.2254ACTotalRewalPower-Netz-1.2227000000000001-1222.7PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1222.2
        
        javascript.0
        2025-02-05 20:24:15.381	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.2125ACTotalRewalPower-Netz-1.2254-1225.4PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1224.9
        
        javascript.0
        2025-02-05 20:24:13.829	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.2251ACTotalRewalPower-Netz-1.2125-1212.5PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1212
        
        javascript.0
        2025-02-05 20:24:12.226	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.2366000000000001ACTotalRewalPower-Netz-1.2251-1225.1000000000001PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1224.6000000000001
        
        javascript.0
        2025-02-05 20:24:10.755	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.2493ACTotalRewalPower-Netz-1.2366000000000001-1236.6000000000001PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1
        
        Homoran 1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @Longbow last edited by

          @longbow sagte in Errechnen Verbrauch Strom:

          Hab es nach gebaut..

          zeigen!

          auch den debug block und dessen Ausgabe

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

            Hier die Daten:

            Bild-02.png Bild-01.png

            javascript.0
            2025-02-05 21:27:11.265	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.7414ACTotalRewalPower-Netz-1.7364000000000002-1736.4PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1735.9
            
            javascript.0
            2025-02-05 21:27:09.475	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.7478000000000002ACTotalRewalPower-Netz-1.7414-1741.4PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1740.9
            
            javascript.0
            2025-02-05 21:27:07.966	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.762ACTotalRewalPower-Netz-1.7478000000000002-1747.8000000000002PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1747.3000000000002
            
            javascript.0
            2025-02-05 21:27:06.441	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.7449000000000001ACTotalRewalPower-Netz-1.762-1762PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1761.5
            
            javascript.0
            2025-02-05 21:27:04.963	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.7464000000000002ACTotalRewalPower-Netz-1.7449000000000001-1744.9PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1744.4
            
            javascript.0
            2025-02-05 21:27:03.397	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.7658000000000003ACTotalRewalPower-Netz-1.7464000000000002-1746.4PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1745.9
            
            javascript.0
            2025-02-05 21:27:01.837	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.7436ACTotalRewalPower-Netz-1.7658000000000003-1765.8000000000002PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1765.3000000000002
            
            javascript.0
            2025-02-05 21:27:01.389	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung1.7302ACTotalRewalPower-Netz-1.7436-1743.6000000000001PV-Leistung 0.60536Batterie0Wallbox0LWWP0.5hausverbauch1743.1000000000001
            
            javascript.0
            2025-02-05 21:27:01.281	info	script.js.common.Scripte.SolarEdge.SolarEdge_Scripte_gross: Die aktuelle Lesitung der Anlag
            
            paul53 1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @Longbow last edited by paul53

              @longbow sagte: ACTotalRewalPower-Netz-1.7464000000000002-1746.4

              Wert (vom Trigger-Datenpunkt) enthält offenbar die Leistung in W.
              Wieder alles ohne Leerzeichen und unstrukturiert. Vergleiche mal:

              Blockly_temp.JPG

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

                @paul53

                Jetzt besser ?

                javascript.0
                2025-02-05 22:26:32.636	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung KW: 0Kw- Netzeinspeisung: -614.7Batterieladung, KW: 0Wallbox KW: 0LWWP KW: 0hausverbauch: KW615.3147
                
                javascript.0
                2025-02-05 22:26:30.925	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung KW: 0Kw- Netzeinspeisung: -617.7Batterieladung, KW: 0Wallbox KW: 0LWWP KW: 0hausverbauch: KW618.3177000000001
                
                javascript.0
                2025-02-05 22:26:27.502	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung KW: 0Kw- Netzeinspeisung: -612.1Batterieladung, KW: 0Wallbox KW: 0LWWP KW: 0hausverbauch: KW612.7121000000001
                
                javascript.0
                2025-02-05 22:26:25.823	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung KW: 0Kw- Netzeinspeisung: -616.8000000000001Batterieladung, KW: 0Wallbox KW: 0LWWP KW: 0hausverbauch: KW617.4168000000001
                
                javascript.0
                2025-02-05 22:26:24.192	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung KW: 0Kw- Netzeinspeisung: -613.4Batterieladung, KW: 0Wallbox KW: 0LWWP KW: 0hausverbauch: KW614.0133999999999
                
                javascript.0
                2025-02-05 22:26:22.497	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung KW: 0Kw- Netzeinspeisung: -615.6Batterieladung, KW: 0Wallbox KW: 0LWWP KW: 0hausverbauch: KW616.2156
                
                javascript.0
                2025-02-05 22:26:20.727	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung KW: 0Kw- Netzeinspeisung: -629.4000000000001Batterieladung, KW: 0Wallbox KW: 0LWWP KW: 0hausverbauch: KW630.0294000000001
                
                javascript.0
                2025-02-05 22:26:18.932	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung KW: 0Kw- Netzeinspeisung: -636Batterieladung, KW: 0Wallbox KW: 0LWWP KW: 0hausverbauch: KW636.636
                
                javascript.0
                2025-02-05 22:26:17.153	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung KW: 0Kw- Netzeinspeisung: -616.9000000000001Batterieladung, KW: 0Wallbox KW: 0LWWP KW: 0hausverbauch: KW617.5169000000001
                
                javascript.0
                2025-02-05 22:26:15.361	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung KW: 0Kw- Netzeinspeisung: -629.8000000000001Batterieladung, KW: 0Wallbox KW: 0LWWP KW: 0hausverbauch: KW630.4298000000001
                
                javascript.0
                2025-02-05 22:26:13.356	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung KW: 0Kw- Netzeinspeisung: -637.4000000000001Batterieladung, KW: 0Wallbox KW: 0LWWP KW: 0hausverbauch: KW638.0374
                
                javascript.0
                2025-02-05 22:26:11.637	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung KW: 0Kw- Netzeinspeisung: -621.3000000000001Batterieladung, KW: 0Wallbox KW: 0LWWP KW: 0hausverbauch: KW621.9213000000001
                
                javascript.0
                2025-02-05 22:26:09.975	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung KW: 0Kw- Netzeinspeisung: -609.9Batterieladung, KW: 0Wallbox KW: 0LWWP KW: 0hausverbauch: KW610.5099
                
                javascript.0
                2025-02-05 22:26:08.324	info	script.js.common.PV-Anlage.Hausverbrauch_ohne_Verbraucher: PV-Leistung KW: 0Kw- Netzeinspeisung: -612.1Batterieladung, KW: 0Wallbox KW: 0LWWP KW: 0hausverbauch: KW612.7121000000001
                

                Bild-01.png Bild-02.png

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

                  @longbow sagte: Jetzt besser ?

                  Etwas.

                  Kw- Netzeinspeisung: -614.7
                  

                  Das sind W - keine kW!

                  Exportiere mal dein Blockly (XML in Code tags).

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

                    Guten Morgen,

                    Ja das schein so zu sein, das das im Hintergrund Watt ist, wobei ich es aber ja auf KW in Alias umrechne, im DP wird es mir somit ja richtig angezeigt. 0.614kw, wie kann das sein?

                    Hier das Blockly

                    <xml xmlns="https://developers.google.com/blockly/xml">
                      <variables>
                        <variable id="}y`OG6D6.lqQ[QItW{Ls">Hausverbrauch</variable>
                      </variables>
                      <block type="on_ext" id="*/a~9Zo@-3H*Z6E$:j*`" x="-1037" y="-437">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                        <field name="CONDITION">ne</field>
                        <field name="ACK_CONDITION"></field>
                        <value name="OID0">
                          <shadow type="field_oid" id="ry|uGe,MYdItlR8Hu@Vc">
                            <field name="oid">javascript.0.Solar.Wechselrichter.ACTotalRealPower</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="variables_set" id="XtW!H9C5I(Z{]k|W=n|P">
                            <field name="VAR" id="}y`OG6D6.lqQ[QItW{Ls">Hausverbrauch</field>
                            <value name="VALUE">
                              <block type="math_arithmetic" id="N5XZnoEUm{3Kzm-/]B@/" inline="false">
                                <field name="OP">MINUS</field>
                                <value name="A">
                                  <shadow type="math_number" id="!{7/(]DX3lGP@Il`Y=E1">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="get_value" id="@j]2A2`r_g^v${clrdFs">
                                    <field name="ATTR">val</field>
                                    <field name="OID">javascript.0.Solar.Wechselrichter.PVLeistungAktuell</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow type="math_number" id="M:s(2P888iDd:XzoTo4p">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="math_arithmetic" id="ngTV:8QOi-~cdc8UW%aF" inline="false">
                                    <field name="OP">ADD</field>
                                    <value name="A">
                                      <shadow type="math_number" id="|/!5O?;K8I4fF1As*YP*">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="math_arithmetic" id="X%/@=_m|-`Tz+00]%@^j" inline="false">
                                        <field name="OP">ADD</field>
                                        <value name="A">
                                          <shadow type="math_number" id="X0w?-b?ZcTjiI$E~qPjG">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="on_source" id="f$rWT:]F|}eLi(Q7sOTg">
                                            <field name="ATTR">state.val</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow type="math_number" id="as3GHvOMC1gAw@Z{mQ5%">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="get_value" id="5p/4/2{,A[Y#Dg{,irn#">
                                            <field name="ATTR">val</field>
                                            <field name="OID">alias.0.Umberechnungen.PV-Anlage.ACTotalRealPower</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow type="math_number" id="puKBcubIR5^lu8i{4ID2">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="math_arithmetic" id="pPS9Q|FPM[=:k#IKs:M0" inline="false">
                                        <field name="OP">ADD</field>
                                        <value name="A">
                                          <shadow type="math_number" id="(k)vI26ct|!ksUHMiY)/">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="get_value" id="lRlK/(JG2h6ah4p[GmMo">
                                            <field name="ATTR">val</field>
                                            <field name="OID">alias.0.Umberechnungen.PV-Anlage.Batterie</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow type="math_number" id="v$(zREF2oQSW/_n_[^i#">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="math_arithmetic" id="t*nIC$W@U^iKalnn8!NY" inline="false">
                                            <field name="OP">ADD</field>
                                            <value name="A">
                                              <shadow type="math_number" id="(k)vI26ct|!ksUHMiY)/">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="get_value" id="c)(KS~-(f!1iY+!5V_cQ">
                                                <field name="ATTR">val</field>
                                                <field name="OID">alias.0.Umberechnungen.PV-Anlage.Wallbox</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id="v$(zREF2oQSW/_n_[^i#">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="get_value" id="~0K74lh8t@Ngmu3=NNb^">
                                                <field name="ATTR">val</field>
                                                <field name="OID">alias.0.Umberechnungen.PV-Anlage.LWWP</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="update" id="`;mQmtF)|O{la2q5vXHZ">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">0_userdata.0.Systemdaten.PV-Anlage.Hausverbrauch_test</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_rndfixed" id="}wfR`3D=#1Aje/$d7,FL">
                                    <field name="n">2</field>
                                    <value name="x">
                                      <shadow type="math_number" id="k7b(7;THR^fJV56$rumV">
                                        <field name="NUM">3.1234</field>
                                      </shadow>
                                      <block type="variables_get" id="DBWqFv9!)7#7}GFggnR~">
                                        <field name="VAR" id="}y`OG6D6.lqQ[QItW{Ls">Hausverbrauch</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="debug" id="#TIp!^qwB`nd$P~Y0TJI">
                                    <field name="Severity">info</field>
                                    <value name="TEXT">
                                      <shadow type="text" id="5c?r`IfsCW*`TCCObFd{">
                                        <field name="TEXT">test</field>
                                      </shadow>
                                      <block type="text_join" id=".gjE+9KPmNd)XLq0rjs6">
                                        <mutation items="15"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="Gg`Cl8~$3Wz,38/Q3(;_">
                                            <field name="TEXT">PV-Leistung KW: </field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="get_value" id="_QAt=%g}:@aj`0s;2OO:">
                                            <field name="ATTR">val</field>
                                            <field name="OID">alias.0.Umberechnungen.PV-Anlage.PVLeistungAktuell</field>
                                          </block>
                                        </value>
                                        <value name="ADD2">
                                          <block type="text" id="HZhwn-4b(y3[qEX7uVm_">
                                            <field name="TEXT">Kw- Netzeinspeisung: </field>
                                          </block>
                                        </value>
                                        <value name="ADD3">
                                          <block type="on_source" id="62qpg5-eU=JPVqAWM3BI">
                                            <field name="ATTR">state.val</field>
                                          </block>
                                        </value>
                                        <value name="ADD4">
                                          <block type="text" id="(@~#(W7VG):`4y!2oK-j">
                                            <field name="TEXT">Batterieladung, KW: </field>
                                          </block>
                                        </value>
                                        <value name="ADD5">
                                          <block type="get_value" id="dCN,2u*%su[u.tzCq=n$">
                                            <field name="ATTR">val</field>
                                            <field name="OID">alias.0.Umberechnungen.PV-Anlage.Batterie</field>
                                          </block>
                                        </value>
                                        <value name="ADD6">
                                          <block type="text" id="E?]}X2wY15n8`dU)g{V}">
                                            <field name="TEXT">Wallbox KW:  </field>
                                          </block>
                                        </value>
                                        <value name="ADD7">
                                          <block type="get_value" id="x;;e_k:7tmP[|zszVZTB">
                                            <field name="ATTR">val</field>
                                            <field name="OID">alias.0.Umberechnungen.PV-Anlage.Wallbox</field>
                                          </block>
                                        </value>
                                        <value name="ADD8">
                                          <block type="text" id="Tqi,eXs6GGSkW1xQe-L%">
                                            <field name="TEXT">LWWP KW: </field>
                                          </block>
                                        </value>
                                        <value name="ADD9">
                                          <block type="get_value" id="p0iCO@]zEWB@QEEdnJi3">
                                            <field name="ATTR">val</field>
                                            <field name="OID">alias.0.Umberechnungen.PV-Anlage.LWWP</field>
                                          </block>
                                        </value>
                                        <value name="ADD10">
                                          <block type="text" id="3|.jlM+ifcc9A#0gZ((h">
                                            <field name="TEXT">hausverbauch: KW</field>
                                          </block>
                                        </value>
                                        <value name="ADD11">
                                          <block type="variables_get" id="ud*#10kWp1IraxGH},Nb">
                                            <field name="VAR" id="}y`OG6D6.lqQ[QItW{Ls">Hausverbrauch</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </xml>
                    
                    paul53 1 Reply Last reply Reply Quote 0
                    • Longbow
                      Longbow last edited by

                      Keine Ahnung was und wie, jetzt stimmen die Werte auf einmal... Ich beobachte das mal, gibt Euch mal bescheid.
                      Danke aber für die Unterstützung

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

                        @longbow sagte: Hier das Blockly

                        Ich habe es korrigiert, denn vor allem war der Trigger-DP falsch.

                        <xml xmlns="https://developers.google.com/blockly/xml">
                         <variables>
                           <variable id="}y`OG6D6.lqQ[QItW{Ls">Hausverbrauch</variable>
                         </variables>
                         <block type="on_ext" id="*/a~9Zo@-3H*Z6E$:j*`" x="-1037" y="-437">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                           <field name="CONDITION">ne</field>
                           <field name="ACK_CONDITION"></field>
                           <value name="OID0">
                             <shadow type="field_oid" id="ry|uGe,MYdItlR8Hu@Vc">
                               <field name="oid">javascript.0.Solar.Wechselrichter.ACTotalRealPower</field>
                             </shadow>
                             <block type="text" id="S49lvn]Vbyu7xav@wYC2">
                               <field name="TEXT">alias.0.Umberechnungen.PV-Anlage.ACTotalRealPower</field>
                             </block>
                           </value>
                           <statement name="STATEMENT">
                             <block type="variables_set" id="XtW!H9C5I(Z{]k|W=n|P">
                               <field name="VAR" id="}y`OG6D6.lqQ[QItW{Ls">Hausverbrauch</field>
                               <value name="VALUE">
                                 <block type="math_arithmetic" id="N5XZnoEUm{3Kzm-/]B@/" inline="false">
                                   <field name="OP">MINUS</field>
                                   <value name="A">
                                     <shadow type="math_number" id="!{7/(]DX3lGP@Il`Y=E1">
                                       <field name="NUM">1</field>
                                     </shadow>
                                     <block type="get_value" id="c9E0=Moc!Jnp!lXzf[89">
                                       <field name="ATTR">val</field>
                                       <field name="OID">alias.0.Umberechnungen.PV-Anlage.PVLeistungAktuell</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <shadow type="math_number" id="M:s(2P888iDd:XzoTo4p">
                                       <field name="NUM">1</field>
                                     </shadow>
                                     <block type="math_arithmetic" id="ngTV:8QOi-~cdc8UW%aF" inline="false">
                                       <field name="OP">ADD</field>
                                       <value name="A">
                                         <shadow type="math_number" id="|/!5O?;K8I4fF1As*YP*">
                                           <field name="NUM">1</field>
                                         </shadow>
                                         <block type="math_arithmetic" id="X%/@=_m|-`Tz+00]%@^j" inline="false">
                                           <field name="OP">ADD</field>
                                           <value name="A">
                                             <shadow type="math_number" id="X0w?-b?ZcTjiI$E~qPjG">
                                               <field name="NUM">1</field>
                                             </shadow>
                                             <block type="on_source" id="f$rWT:]F|}eLi(Q7sOTg">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <shadow type="math_number" id="as3GHvOMC1gAw@Z{mQ5%">
                                               <field name="NUM">1</field>
                                             </shadow>
                                             <block type="get_value" id="lRlK/(JG2h6ah4p[GmMo">
                                               <field name="ATTR">val</field>
                                               <field name="OID">alias.0.Umberechnungen.PV-Anlage.Batterie</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <shadow type="math_number" id="puKBcubIR5^lu8i{4ID2">
                                           <field name="NUM">1</field>
                                         </shadow>
                                         <block type="math_arithmetic" id="t*nIC$W@U^iKalnn8!NY" inline="false">
                                           <field name="OP">ADD</field>
                                           <value name="A">
                                             <shadow type="math_number" id="(k)vI26ct|!ksUHMiY)/">
                                               <field name="NUM">1</field>
                                             </shadow>
                                             <block type="get_value" id="c)(KS~-(f!1iY+!5V_cQ">
                                               <field name="ATTR">val</field>
                                               <field name="OID">alias.0.Umberechnungen.PV-Anlage.Wallbox</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <shadow type="math_number" id="v$(zREF2oQSW/_n_[^i#">
                                               <field name="NUM">1</field>
                                             </shadow>
                                             <block type="get_value" id="~0K74lh8t@Ngmu3=NNb^">
                                               <field name="ATTR">val</field>
                                               <field name="OID">alias.0.Umberechnungen.PV-Anlage.LWWP</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <next>
                                 <block type="update" id="`;mQmtF)|O{la2q5vXHZ">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                   <field name="OID">0_userdata.0.Systemdaten.PV-Anlage.Hausverbrauch_test</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="math_rndfixed" id="}wfR`3D=#1Aje/$d7,FL">
                                       <field name="n">2</field>
                                       <value name="x">
                                         <shadow type="math_number" id="k7b(7;THR^fJV56$rumV">
                                           <field name="NUM">3.1234</field>
                                         </shadow>
                                         <block type="variables_get" id="DBWqFv9!)7#7}GFggnR~">
                                           <field name="VAR" id="}y`OG6D6.lqQ[QItW{Ls">Hausverbrauch</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="debug" id="#TIp!^qwB`nd$P~Y0TJI">
                                       <field name="Severity">info</field>
                                       <value name="TEXT">
                                         <shadow type="text" id="5c?r`IfsCW*`TCCObFd{">
                                           <field name="TEXT">test</field>
                                         </shadow>
                                         <block type="text_join" id=".gjE+9KPmNd)XLq0rjs6">
                                           <mutation items="13"></mutation>
                                           <value name="ADD0">
                                             <block type="text" id="Gg`Cl8~$3Wz,38/Q3(;_">
                                               <field name="TEXT">PV-Leistung: </field>
                                             </block>
                                           </value>
                                           <value name="ADD1">
                                             <block type="get_value" id="_QAt=%g}:@aj`0s;2OO:">
                                               <field name="ATTR">val</field>
                                               <field name="OID">alias.0.Umberechnungen.PV-Anlage.PVLeistungAktuell</field>
                                             </block>
                                           </value>
                                           <value name="ADD2">
                                             <block type="text" id="HZhwn-4b(y3[qEX7uVm_">
                                               <field name="TEXT"> kW, Netzeinspeisung: </field>
                                             </block>
                                           </value>
                                           <value name="ADD3">
                                             <block type="on_source" id="62qpg5-eU=JPVqAWM3BI">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                           <value name="ADD4">
                                             <block type="text" id="(@~#(W7VG):`4y!2oK-j">
                                               <field name="TEXT"> kW, Batterieladung: </field>
                                             </block>
                                           </value>
                                           <value name="ADD5">
                                             <block type="get_value" id="dCN,2u*%su[u.tzCq=n$">
                                               <field name="ATTR">val</field>
                                               <field name="OID">alias.0.Umberechnungen.PV-Anlage.Batterie</field>
                                             </block>
                                           </value>
                                           <value name="ADD6">
                                             <block type="text" id="E?]}X2wY15n8`dU)g{V}">
                                               <field name="TEXT"> kW, Wallbox: </field>
                                             </block>
                                           </value>
                                           <value name="ADD7">
                                             <block type="get_value" id="x;;e_k:7tmP[|zszVZTB">
                                               <field name="ATTR">val</field>
                                               <field name="OID">alias.0.Umberechnungen.PV-Anlage.Wallbox</field>
                                             </block>
                                           </value>
                                           <value name="ADD8">
                                             <block type="text" id="Tqi,eXs6GGSkW1xQe-L%">
                                               <field name="TEXT"> kW, LWWP: </field>
                                             </block>
                                           </value>
                                           <value name="ADD9">
                                             <block type="get_value" id="p0iCO@]zEWB@QEEdnJi3">
                                               <field name="ATTR">val</field>
                                               <field name="OID">alias.0.Umberechnungen.PV-Anlage.LWWP</field>
                                             </block>
                                           </value>
                                           <value name="ADD10">
                                             <block type="text" id="3|.jlM+ifcc9A#0gZ((h">
                                               <field name="TEXT"> kW, Hausverbauch: </field>
                                             </block>
                                           </value>
                                           <value name="ADD11">
                                             <block type="variables_get" id="ud*#10kWp1IraxGH},Nb">
                                               <field name="VAR" id="}y`OG6D6.lqQ[QItW{Ls">Hausverbrauch</field>
                                             </block>
                                           </value>
                                           <value name="ADD12">
                                             <block type="text" id="r(eUCGhBi)FX.tK`h2@f">
                                               <field name="TEXT"> kW</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </statement>
                         </block>
                        </xml>
                        

                        Es sieht jetzt so aus:

                        Blockly_temp.JPG

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

                          @paul53 Danke, nutze ich gleich mal.

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          560
                          Online

                          31.9k
                          Users

                          80.2k
                          Topics

                          1.3m
                          Posts

                          4
                          43
                          1523
                          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