Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Was spare ich durch das Balkonkraftwerk. Berechnung

NEWS

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

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

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

Was spare ich durch das Balkonkraftwerk. Berechnung

Scheduled Pinned Locked Moved Blockly
38 Posts 6 Posters 4.4k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • paul53P 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 Online
    G Online
    Gonzokalle
    wrote on last edited by
    #27

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

    G 1 Reply Last reply
    0
    • G Gonzokalle

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

      G Online
      G Online
      Gonzokalle
      wrote on last edited by Gonzokalle
      #28

      @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
      0
      • G 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 Online
        G Online
        Gonzokalle
        wrote on last edited by
        #29

        @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

        paul53P 1 Reply Last reply
        0
        • G Gonzokalle

          @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

          paul53P Offline
          paul53P Offline
          paul53
          wrote on last edited by paul53
          #30

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

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

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

          G 1 Reply Last reply
          0
          • paul53P paul53

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

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

            G Online
            G Online
            Gonzokalle
            wrote on last edited by
            #31

            @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

            paul53P 1 Reply Last reply
            0
            • G Gonzokalle

              @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

              paul53P Offline
              paul53P Offline
              paul53
              wrote on last edited by paul53
              #32

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

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

              G 1 Reply Last reply
              0
              • paul53P 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 Online
                G Online
                Gonzokalle
                wrote on last edited by
                #33

                @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);
                });
                
                
                paul53P 1 Reply Last reply
                0
                • G Gonzokalle

                  @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);
                  });
                  
                  
                  paul53P Offline
                  paul53P Offline
                  paul53
                  wrote on last edited by
                  #34

                  @gonzokalle sagte: Ist das so richtig?

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

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

                  G 1 Reply Last reply
                  0
                  • paul53P paul53

                    @gonzokalle sagte: Ist das so richtig?

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

                    G Online
                    G Online
                    Gonzokalle
                    wrote on last edited by
                    #35

                    @paul53
                    Sieht ganz normal aus.

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

                    paul53P 1 Reply Last reply
                    0
                    • G Gonzokalle

                      @paul53
                      Sieht ganz normal aus.

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

                      paul53P Offline
                      paul53P Offline
                      paul53
                      wrote on last edited by paul53
                      #36

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

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

                      G 1 Reply Last reply
                      0
                      • paul53P 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 Online
                        G Online
                        Gonzokalle
                        wrote on last edited by
                        #37

                        @paul53
                        Das mache ich. Danke

                        G 1 Reply Last reply
                        0
                        • G Gonzokalle

                          @paul53
                          Das mache ich. Danke

                          G Online
                          G Online
                          Gonzokalle
                          wrote on last edited by
                          #38

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

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

                          1 Reply Last reply
                          0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          281

                          Online

                          32.8k

                          Users

                          82.7k

                          Topics

                          1.3m

                          Posts
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                          ioBroker Community 2014-2025
                          logo
                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Home
                          • Recent
                          • Tags
                          • Unread 0
                          • Categories
                          • Unreplied
                          • Popular
                          • GitHub
                          • Docu
                          • Hilfe