Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Was spare ich durch das Balkonkraftwerk. Berechnung

    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

    Was spare ich durch das Balkonkraftwerk. Berechnung

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

      @homoran said in Was spare ich durch das Balkonkraftwerk. Berechnung:

      Alles was der Shelly auf dieser Phase als Einspeisung erfasst, ist perdu!
      da braucht es keine Saldierung.

      Für eine grobe Abschätzung mag das passen, eine Messung ist das nicht.

      Damit zieh ich mich hier dann mal zurück. M.E. ist zum Thema Saldierung alles gesagt und außerdem hat das schon länger nichts mehr mit Bockly zu tun.

      1 Reply Last reply Reply Quote 1
      • G
        Gonzokalle last edited by

        @paul53
        Ist schon ganz schön kompliziert.
        Habe jetzt den richtigen Zählerstand vom Stromzähler mit dem AI on the edge.
        Hilft das bei der Berechnung?

        Habe das jetzt mal nachgebaut.
        Was muss den PV-Ertrag rein?
        eb22a4b3-8693-410e-a44f-77ee8055a3a5-image.png

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

          @gonzokalle sagte: Was muss den PV-Ertrag rein?

          Ich kenne die Datenpunkte von OpenDTU nicht. Es muss die kumulierte PV-Produktion (in kWh) sein. "total.yieldtotal"?

          Blockly_temp.JPG

          Links muss vorherige letzte Änderung rein.

          Übrigens: Ersparnis kommt von sparen.

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

            @paul53
            Morgen geht's weiter.
            Vielleicht kommt es mir spanis(ch) vor. 😂

            G 1 Reply Last reply Reply Quote 0
            • G
              Gonzokalle @Gonzokalle last edited by Gonzokalle

              @gonzokalle
              Habe das mal geändert. total.yieldtotal müsste passen.
              Morgen mal auf die Sonne warten.
              b17a1b1f-8705-46bd-a5fd-55ae25321384-image.png

              Kann man so mit dem 3EM auch den richtigen Zählerstand errechnen, also saldiert?

              G 1 Reply Last reply Reply Quote 0
              • G
                Gonzokalle @Gonzokalle last edited by

                @gonzokalle
                Ich bin etwas weiter gekommen. Den Bezug (180) vom EVU bekomme ich jetzt direkt vom Zähler. 280 bekomme ich nicht.

                Heute haben sich die DP gefüllt.
                Das sollen sicher Wh sein. Die Werte sind doch viel zu hoch?

                5179614e-0762-46e0-ba63-75da0cc5e2a4-image.png

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

                  @gonzokalle sagte: Die Werte sind doch viel zu hoch?

                  Ja. Was wurde als Anfangswert verwendet? Es müssen kWh sein.

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

                    @paul53
                    Erstmal Danke, dass du mir bei der komplizierten Berechnung hilfst.

                    EVU-Einspeisung ist mit 0 gestartet.
                    InstantPower ist ja akuelle Leistung (W) vom 3EM.
                    Yieldtotal steht aktuell auf 11.304 kWh

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

                      @gonzokalle
                      Wenn das Skript so aufgebaut ist wie hier gezeigt, verstehe ich nicht, wie es zu so hohen Werten kommen kann.
                      Poste bitte den erzeugten Javascript-Code in Code tags.

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

                        @paul53

                        Ist das so richtig?
                        Zeile 22 war ganz lang. Habe ich erstmal weggelassen.

                        var Einspeiseenergie, Erspanis;
                        
                        
                        Einspeiseenergie = getState('0_userdata.0.Photovoltaik.EVU-Einspeisung').val;
                        // Watt vom Shelly 3EM
                        on({ id: 'shelly.0.SHEM-3#3494547B6CA9#1.Total.InstantPower' /* InstantPower */, change: 'ne' }, async (obj) => {
                          let value = obj.state.val;
                          let oldValue = obj.oldState.val;
                          if ((obj.oldState ? obj.oldState.val : '') < 0) {
                            Einspeiseenergie = (typeof Einspeiseenergie === 'number' ? Einspeiseenergie : 0) + ((obj.oldState ? obj.oldState.val : '') * ((obj.oldState ? obj.oldState.lc : '') - (obj.state ? obj.state.lc : ''))) / 3600000000;
                            setState('0_userdata.0.Photovoltaik.EVU-Einspeisung' /* EVU-Einspeisung */, Math.round(Einspeiseenergie * 100) / 100, true);
                          }
                        });
                        // Gesamte PV-Produktion (kWh) AC von OpenDTU
                        on({ id: 'opendtu.0.total.yieldtotal' /* Total energy converted to AC since reset on specific input */, change: 'ne' }, async (obj) => {
                          let value = obj.state.val;
                          let oldValue = obj.oldState.val;
                          Erspanis = (obj.state ? obj.state.val : '') - Einspeiseenergie;
                          setState('0_userdata.0.Photovoltaik.Erspanis_(kWh)' /* Erspanis (kWh) */, Math.round(Erspanis * 100) / 100, true);
                        });
                        
                        
                        paul53 1 Reply Last reply Reply Quote 0
                        • paul53
                          paul53 @Gonzokalle last edited by

                          @gonzokalle sagte: Ist das so richtig?

                          Danke. Der Code ist korrekt. Hat evtl. "InstantPower" große Ausreiser?

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

                            @paul53
                            Sieht ganz normal aus.

                            Letzte 24 Stunden.
                            1e3d5a88-5a2a-416d-a52e-7388baf0396e-image.png

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

                              @gonzokalle sagte: Sieht ganz normal aus.

                              Dann habe ich die für die hohen Werte keine Erklärung. Setze mal den Wert für "EVU-Einspeisung" manuell auf 0 zurück, starte anschließend das Skript neu und beobachte morgen weiter.

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

                                @paul53
                                Das mache ich. Danke

                                G 1 Reply Last reply Reply Quote 0
                                • G
                                  Gonzokalle @Gonzokalle last edited by

                                  @gonzokalle
                                  Heute sieht das schon viel besser aus. Das müsste passen. Danke

                                  42bfcfb9-4df6-4351-aacb-944558dcfd14-image.png

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

                                  Support us

                                  ioBroker
                                  Community Adapters
                                  Donate

                                  944
                                  Online

                                  31.9k
                                  Users

                                  80.1k
                                  Topics

                                  1.3m
                                  Posts

                                  6
                                  38
                                  2049
                                  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