Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Victron Photovoltaik Anlage Daten für ioBroker auslesen!

    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

    UNSOLVED Victron Photovoltaik Anlage Daten für ioBroker auslesen!

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

      @homoran bin nicht zuhause im Moment. Heute Abend stelle ich ein Bild dazu ein. Versuche vom Handy aus gerade das Problem zu lösen und habe hier dein Beitrag gefunden.
      Habe mich verdrückt Habs wieder geändert 🙂

      S 1 Reply Last reply Reply Quote 0
      • S
        siporax @siporax last edited by

        @siporax forum 1.JPG
        forum 2.JPG

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

          @siporax sagte in Victron Photovoltaik Anlage Daten für ioBroker auslesen!:

          @siporax forum 1.JPG
          forum 2.JPG

          geht das auch lesbar?
          Screenshot_20230621-173314_Firefox.jpg

          du hast anscheinend eine andere "Unit ID", wenn ich das richtig entziffern kann.

          Header fehlen auch

          1 Reply Last reply Reply Quote 0
          • S
            siporax last edited by siporax

            Mit welcher ID kann ich mir die Gesamtleitung aller Strings in Watt anzeigen lassen.
            Einzeln habe ich sie schon mal,das geht.
            Im GX werden sie ja auch Angezeigt als ein Gesamter Wert.

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

              @siporax sagte in Victron Photovoltaik Anlage Daten für ioBroker auslesen!:

              Im GX werden sie ja auch Angezeigt.

              und berechnet

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

                @homoran Verstehe.
                geht das mit node red mit dem zusammenzählen ?
                Habt da noch kein Plan mit dem Programm.

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

                  @siporax sagte in Victron Photovoltaik Anlage Daten für ioBroker auslesen!:

                  geht das mit node red mit dem zusammenzählen ?

                  ja, bestimmt.
                  oder mit javascript, oder blockly

                  was immer deine bevorzugte Logikmaschine ist.

                  Wahrscheinlich gehtces sogar mit Alias.

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

                    Bin bestimmt nicht der erste weiter oben habe ich was mit Blockly gesehen.
                    Da muss ich mich noch reinfuchsen wie das geht.
                    Wenn mir einer helfen könnte würde ich nicht nein sagen dazu 🙂

                    1 Reply Last reply Reply Quote 0
                    • hg6806
                      hg6806 Most Active last edited by hg6806

                      Vor einigen Tagen habe ich auch einen MultiPlus-II GX mit Pylontech Batterie bekommen.
                      Modbus auslesen klappt soweit.

                      Jedoch habe ich leider noch keinen Wert für Sourceanalytix gefunden, um die geladene und entladene Energie darstellen zu können.

                      545debc8-d334-4b57-9980-1e01d4312a8e-image.png
                      bleiben bei mir immer 0. Warum auch immer.

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

                        @hg6806 nimm battery.power o.ä.
                        dort wo die Lade und Entladeleistung angezeigt wird

                        EDIT:
                        Die must du noch per skript splitten in Ladung (=positive Werte) und Entladung (=negative Werte)

                        diese Datenpunkte dann in SA
                        Screenshot_20230722-155551_Firefox.jpg

                        hg6806 D 2 Replies Last reply Reply Quote 0
                        • hg6806
                          hg6806 Most Active @Homoran last edited by hg6806

                          @homoran

                          Du meinst wahrscheinlich
                          ee2162f3-0070-42d9-a00e-72675d518201-image.png

                          Den Wert habe ich schon, dachte es gibt was besseres, alleine auch wegen dem Vorzeichen und weil es nur Leistung und nicht "Energie" ist.
                          D.h. wenn das System mal stehe, zählt Soureanalytix nicht weiter.

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

                            @hg6806 sagte in Victron Photovoltaik Anlage Daten für ioBroker auslesen!:

                            weil es nur Leistung

                            das ist gut so

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

                              @hg6806 sagte in Victron Photovoltaik Anlage Daten für ioBroker auslesen!:

                              bleiben bei mir immer 0.

                              welche client id?

                              edit:

                              das hier zu Ende gelesen?
                              Screenshot_20230722-162138_Polaris Office.jpg

                              hg6806 1 Reply Last reply Reply Quote 0
                              • hg6806
                                hg6806 Most Active @Homoran last edited by

                                @homoran sagte in Victron Photovoltaik Anlage Daten für ioBroker auslesen!:

                                das hier zu Ende gelesen?

                                Nöö! 🙄

                                1 Reply Last reply Reply Quote 0
                                • hg6806
                                  hg6806 Most Active last edited by hg6806

                                  Sollte so funktionieren, oder?

                                  ee238347-6c30-4de0-9f6a-436f9b39beb6-image.png

                                  Homoran 1 Reply Last reply Reply Quote 0
                                  • O
                                    oxident last edited by

                                    Denkt aber daran, dass die Batteriewerte nach einem Neustart vom VenusOS zurückgesetzt werden. Vielleicht wäreves besser, das über die VRM-API aus der Cloud zu lesen?

                                    hg6806 Homoran 2 Replies Last reply Reply Quote 0
                                    • hg6806
                                      hg6806 Most Active @oxident last edited by

                                      @oxident

                                      Geht das?

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

                                        @hg6806

                                        @hg6806 sagte in Victron Photovoltaik Anlage Daten für ioBroker auslesen!:

                                        wenn das System mal stehe, zählt Soureanalytix nicht weiter.

                                        und die Energiewerte im Multiplus sind "volatil"!
                                        nach einem Neustart sind die weg!

                                        @hg6806 sagte in Victron Photovoltaik Anlage Daten für ioBroker auslesen!:

                                        Sollte so funktionieren, oder?

                                        Triggern auf Leistung ist ok

                                        dann einfach
                                        falls |> wert > 0
                                        aktualisiere ID laden mit |>Wert
                                        sonst
                                        aktualisiere ID entladen mit |>Wert

                                        |>Wert soll den Baustein aus Trigger darstellen

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

                                          @oxident sagte in Victron Photovoltaik Anlage Daten für ioBroker auslesen!:

                                          Vielleicht wäreves besser, das über die VRM-API aus der Cloud zu lesen?

                                          aber nur wenn man in der cloud hängt.

                                          1 Reply Last reply Reply Quote 0
                                          • O
                                            oxident @hg6806 last edited by

                                            @hg6806 Ja, klar. Musst im VRM-Portal ein Token für den Zugriff erstellen (Geht auf der Hauptseite unter Präferenzen/Integration/Zugangs-Token) und die Instanz-ID Deiner Installation kennen (steht in der VRM-Url).

                                            Dann schnell mal zusammengeschustert (TOKEN und INSTANZID austauschen):

                                            var fromBattery;
                                            var toBattery;
                                            
                                            function getVRMStats() {  
                                                var d = new Date();
                                                d.setHours(0,0,0,0);
                                                fromBattery = 0.0;
                                                toBattery = 0.0;
                                                
                                                //console.log(d.getTime());
                                            
                                                var request = require('request');
                                                    var options;
                                                        options = {
                                                            url: 'https://vrmapi.victronenergy.com/v2/installations/INSTANZID/stats?start=' + d.getTime()/1000 + '&type=kwh',
                                                            method: 'GET',
                                                            json: true,
                                                            headers: {
                                                                'x-authorization': 'Token TOKEN',
                                                            }
                                                        };
                                            
                                                    //log(JSON.stringify(options));
                                                    
                                                    request(options,function (error, response, body){
                                                    
                                                        //log(JSON.stringify(response));
                                                        if((body.success)==true) {
                                                            try {
                                                                toBattery = body.totals.Pb;
                                                                setState("0_userdata.0.PV.Victron.VictronLadungHeute", parseFloat(toBattery.toFixed(2)), true);
                                                            } catch {
                                                                setState("0_userdata.0.PV.Victron.VictronLadungHeute", 0, true);
                                                            }
                                                            
                                                            try {
                                                                fromBattery = body.totals.Gb;
                                                                setState("0_userdata.0.PV.Victron.VictronEntladungHeute", parseFloat(fromBattery.toFixed(2)), true);
                                                            } catch {
                                                                setState("0_userdata.0.PV.Victron.VictronEntladungHeute", 0, true);
                                                            }
                                                            
                                                            //log(toBattery.toFixed(2));
                                                            
                                                        //        token = body.object_result["x-token"];
                                                            
                                                           
                                                        //} else {
                                                            // Login-Fehler
                                                            //log("Login-Fehler in updateToken(): " + response.body);
                                                        }
                                                        
                                                    });
                                            
                                                    
                                            }
                                            
                                            getVRMStats();
                                            schedule("*/5 * * * *", function () {
                                                getVRMStats();
                                            });
                                            
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            906
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            45
                                            229
                                            56468
                                            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