Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Status vom Kostal Wechselrichter auslesen?

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Status vom Kostal Wechselrichter auslesen?

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

      @Homoran
      Also mir raucht die Birne.... Da hab ich zu wenig Ahnung....Bitte morgen um Hilfe
      Mercy

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

        @scout1978 sagte in Status vom Kostal Wechselrichter auslesen?:

        @Homoran
        Also mir raucht die Birne.... Da hab ich zu wenig Ahnung....Bitte morgen um Hilfe
        Mercy

        Gerne!
        Mach dir schon mal Gedanken, welche Werte du überhaupt brauchst.

        Erhol dich bis dahin 😂

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

          @Homoran
          Guten Morgen
          Also DC Eingang Gesammt,Ausgangsleistung,Betriebsstatus,Tagesertrag,Gesammtertrag,Betriebszeit.
          Das würde für den Moment reichen.
          Ich hoffe demnächst einen Speicher zu bekommen, und die Solaranlage zu vergößern. Gibts da erfahrungen was man kaufen sollte?
          Dankeschön!!!!!!

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

            @scout1978 sagte in Status vom Kostal Wechselrichter auslesen?:

            ich hoffe demnächst einen Speicher zu bekommen, und die Solaranlage zu vergößern. Gibts da erfahrungen was man kaufen sollte?

            Da sind wir schon 2 😉

            Das was bisher an meine Vorstellungen am nächsten kam war E3DC mit seinen verschiedenen Modellen.
            Inzwischen scheinen aber auch andere Hersteller nachzuziehen.

            Für mich war/ist entscheidend:

            • Li-Batterien - auf keinen Fall Blei!
            • dreiphasig
            • Notstromfähig (nicht unbedingt USV, sondern Funktionsfähigkeit auch bei fehlender Natzanbindung)

            Bin auch für aktuelle Informationen dankbar

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

              @scout1978 sagte in Status vom Kostal Wechselrichter auslesen?:

              Das würde für den Moment reichen.

              Ich habe "mal eben" das Skript trocken im Editor umgeschrieben.
              Ich bin kein Entwickler und Programmierer!
              Ich lerne auch nur durch Try and Error.

              Deswegen denke ich dass du, wenn du meinst

              @scout1978 sagte in Status vom Kostal Wechselrichter auslesen?:

              Will ja was lernen.

              auch die notwendige Unterstützung bekommen sollst und

              @scout1978 sagte in Status vom Kostal Wechselrichter auslesen?:

              Bin geplättet wie freundlich hier geholfen wird

              das auch verdienst.

              User die hier immer wieder aufschlagen und quasi Programmieraufträge vergeben ohne selber auch nur das geringste Anzeichen von Eigeninitiative zu zeigen sind mir ein Graus

              Bitte folgendermaßen vorgehen:

              • aktuelles Skript stoppen
              • aktuellen Objektbaum löschen (wird ein neuer, anderer angelegt!)
              • neues Skript unter anderem Namen anlegen , IP Adresse eingeben (habe ich ganz nach oben verlegt) und speichern
              • Skript starten und hoffen.

              Mögliche Fehlermeldungen dann hier posten, wir schaffen das schon!
              Ich habe das Skript im Prinzip so gelassen, die Pfade etwas verkürzt und die "uninteressanten" Teile nur auskommentiert.
              Zumindest hoffe ich das so.

              // Ausleseskript Wechselrichter Kostal Piko ab Firmware v05.31 (12.10.2015)
              
              //Variable
              
              var IPAnlage = 'IP_eingeben/api/dxs.json';   // IP der Photovoltaik-Anlage
              
              //Leistungswerte
                 ID_DCEingangGesamt = 33556736;         // in W
                 ID_Ausgangsleistung = 67109120;        // in W
                 ID_Eigenverbrauch = 83888128;          // in W
                 
                 //Status
                 ID_Status = 16780032;                  // 0:Off
                 
                 //Statistik - Tag
                 ID_Ertrag_d = 251658754;               // in Wh
                 ID_Hausverbrauch_d = 251659010;        // in Wh
                 ID_Eigenverbrauch_d = 251659266;       // in Wh
                 ID_Eigenverbrauchsquote_d = 251659278; // in %
                 ID_Autarkiegrad_d = 251659279;         // in %
                 
                 //Statistik - Gesamt
                 ID_Ertrag_G = 251658753;               // in kWh
                 ID_Hausverbrauch_G = 251659009;        // in kWh
                 ID_Eigenverbrauch_G = 251659265;       // in kWh
                 ID_Eigenverbrauchsquote_G = 251659280; // in %
                 ID_Autarkiegrad_G = 251659281;         // in %
                 ID_Betriebszeit = 251658496;           // in h
                 
                 //Momentanwerte - PV Generator
                 ID_DC1Spannung = 33555202;             // in V
                 ID_DC1Strom = 33555201;                // in A
                 ID_DC1Leistung = 33555203;             // in W
                 ID_DC2Spannung = 33555458;             // in V
                 ID_DC2Strom = 33555457;                // in A
                 ID_DC2Leistung = 33555459;             // in W
                 
                 //Momentanwerte Haus
                 ID_HausverbrauchSolar = 83886336;      // in W
                 ID_HausverbrauchBatterie = 83886592;   // in W
                 ID_HausverbrauchNetz = 83886848;       // in W
                 ID_HausverbrauchPhase1 = 83887106;     // in W
                 ID_HausverbrauchPhase2 = 83887362;     // in W
                 ID_HausverbrauchPhase3 = 83887618;     // in W
                 
                 //Netz Netzparameter
                 ID_NetzAusgangLeistung = 67109120;     // in W
                 ID_NetzFrequenz = 67110400;            // in Hz
                 ID_NetzCosPhi = 67110656;
                 
                 //Netz Phase 1
                 ID_P1Spannung = 67109378;              // in V
                 ID_P1Strom = 67109377;                 // in A
                 ID_P1Leistung = 67109379;              // in W
                 
                 //Netz Phase 2
                 ID_P2Spannung = 67109634;              // in V
                 ID_P2Strom = 67109633;                 // in A
                 ID_P2Leistung = 67109635;              // in W
                 
                 //Netz Phase 3
                 ID_P3Spannung = 67109890;              // in V
                 ID_P3Strom = 67109889;                 // in A
                 ID_P3Leistung = 67109891;              // in W
              
              
              
              
              
              
              
              createState('Solaranlage.Momentanwerte.Leistung_AC_aktuell', 0);
              //createState('Solaranlage.Summenwerte.Autarkiegrad_d',0);
              //createState('Solaranlage.Summenwerte.Autarkiegrad_G',0);
              createState('Solaranlage.Summenwerte.Betriebszeit',0);
              createState('Solaranlage.Momentanwerte.Status',0);
              createState('Solaranlage.Momentanwerte.Leistung_DC_aktuell',0);
              //createState('Solaranlage.Momentanwerte.Eigenverbrauch',0);
              //createState('Solaranlage.Summenwerte.Eigenverbrauch_d');
              //createState('Solaranlage.Summenwerte.Eigenverbrauch_G', 0);
              //createState('Solaranlage.Summenwerte.Eigenverbrauchsquote_d', 0);
              //createState('Solaranlage.Summenwerte.Eigenverbrauchsquote_G', 0);
              createState('Solaranlage.Summenwerte.Tagesertrag', 0);
              createState('Solaranlage.Summenwerte.Gesamtertrag', 0);
              //createState('Solaranlage.Summenwerte.Hausverbrauch_d', 0);
              //createState('Solaranlage.Summenwerte.Hausverbrauch_G', 0);
              //createState('Solaranlage.Momentanwerte.P1Spannung');
              //createState('Solaranlage.Momentanwerte.P2Spannung');
              //createState('Solaranlage.Momentanwerte.P1Strom');
              //createState('Solaranlage.Momentanwerte.P2Strom');
              //createState('Solaranlage.Momentanwerte.P1Leistung');
              //createState('Solaranlage.Momentanwerte.P2Leistung');
              //createState('Solaranlage.Momentanwerte.Leistung_String1');
              //createState('Solaranlage.Momentanwerte.Leistung_String2');
              
              
              var logging = false;
              var request = require('request');
              
              function Piko() {
                 if (logging) log("Piko 5.5 auslesen");
                 request('http://' + IPAnlage + 
                 '?dxsEntries=' + ID_DCEingangGesamt +
                 '&dxsEntries=' + ID_Ausgangsleistung +
                 '&dxsEntries=' + ID_Eigenverbrauch +
                 '&dxsEntries=' + ID_Eigenverbrauch_d +
                 '&dxsEntries=' + ID_Eigenverbrauch_G +
                 '&dxsEntries=' + ID_Eigenverbrauchsquote_d +
                 '&dxsEntries=' + ID_Eigenverbrauchsquote_G +
                 '&dxsEntries=' + ID_Ertrag_d +
                 '&dxsEntries=' + ID_Ertrag_G +
                 '&dxsEntries=' + ID_Hausverbrauch_d +
                 '&dxsEntries=' + ID_Hausverbrauch_G +
                 '&dxsEntries=' + ID_Autarkiegrad_G +
                 '&dxsEntries=' + ID_Autarkiegrad_d +
                 '&dxsEntries=' + ID_Betriebszeit +
                 '&dxsEntries=' + ID_P1Spannung +
                 '&dxsEntries=' + ID_P2Spannung +
                 '&dxsEntries=' + ID_P1Strom +
                 '&dxsEntries=' + ID_P2Strom +
                 '&dxsEntries=' + ID_P1Leistung +
                 '&dxsEntries=' + ID_P2Leistung +
                 '&dxsEntries=' + ID_Status +
                 '&dxsEntries=' + ID_DC1Leistung +
                 '&dxsEntries=' + ID_DC2Leistung,
                 
                 function (error, response, body) {
                     if(!error && response.statusCode ==200) {
                         if(logging) log(body);
                         var result = JSON.parse(body).dxsEntries;
                         setState('Solaranlage.Momentanwerte.Leistung_DC_aktuell', result[0].value || 0, true);
                         setState('Solaranlage.Momentanwerte.Leistung_AC_aktuell', result[1].value || 0, true);
                         //setState('Solaranlage.Momentanwerte.Eigenverbrauch', result[2].value || 0, true);
                         //setState('Solaranlage.Summenwerte.Eigenverbrauch_d', result[3].value || 0, true);
                         //setState('Solaranlage.Summenwerte.Eigenverbrauch_G', result[4].value || 0, true);
                         //setState('Solaranlage.Summenwerte.Eigenverbrauchsquote_d', result[5].value || 0, true);
                         //setState('Solaranlage.Summenwerte.Eigenverbrauchsquote_G', result[6].value || 0, true);
                         setState('Solaranlage.Summenwerte.Tagesertrag', result[7].value || 0, true);
                         setState('Solaranlage.Summenwerte.Gesamtertrag', result[8].value || 0, true);
                         //setState('Solaranlage.Summenwerte.Hausverbrauch_d', result[9].value || 0, true);
                         //setState('Solaranlage.Summenwerte.Hausverbrauch_G', result[10].value || 0, true);
                         //setState('Solaranlage.Summenwerte.Autarkiegrad_G', result[11].value || 0, true);
                         //setState('Solaranlage.Summenwerte.Autarkiegrad_d', result[12].value || 0, true);
                         setState('Solaranlage.Summenwerte.Betriebszeit', result[13].value || 0, true);
                         //setState('Solaranlage.Momentanwerte.P1Spannung', result[14].value || 0, true);
                         //setState('Solaranlage.Momentanwerte.P2Spannung', result[15].value || 0, true);
                         //setState('Solaranlage.Momentanwerte.P1Strom', result[16].value || 0, true);
                         //setState('Solaranlage.Momentanwerte.P2Strom', result[17].value || 0, true);
                         //setState('Solaranlage.Momentanwerte.P1Leistung', result[18].value || 0, true);
                         //setState('Solaranlage.Momentanwerte.P2Leistung', result[19].value || 0, true);
                         setState('Solaranlage.Momentanwerte.Status', result[20].value || 0, true);
                         //setState('Solaranlage.Momentanwerte.Leistung_String1', result[21].value || 0, true);
                         //setState('Solaranlage.Momentanwerte.Leistung_String2', result[22].value || 0, true);
                     } else {
                         log("Fehler: " + error + " bei Abfrage von: " + url, "warn");
                     }
                 });
              }
              
              schedule("*/11 * 5-23 * * *", Piko);
              //on('smartmeter.0.1-0:16_7_0__255.value', Piko); // triggert bei Wertänderung;
              

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

                @scout1978

                Habe mich jetzt doch nicht bremsen können und mich getraut das Skript aif meinem Testsystem parallel zum laufenden System zu starten.

                Es klappt (wenn man die IP nicht vergisst einzugeben 😉 )

                Piko_auslesen_neu.png

                Sind das die Werte, die du brauchst?

                EDIT:
                sehe gerade dass der Status ja hier als numerischer Wert ausgegeben wird.
                Habe mir das damals mit einem Blockly ind Klartext umgewandelt:

                Piko_Status_Klartext.png

                <xml xmlns="http://www.w3.org/1999/xhtml">
                 <block type="on_ext" id="U6uIvYGIpS7D!x+,Vpmv" x="-12" y="-262">
                   <mutation items="1"></mutation>
                   <field name="CONDITION">ne</field>
                   <field name="ACK_CONDITION"></field>
                   <value name="OID0">
                     <shadow type="field_oid" id="f3:wR1WhrJPqZgwmNbPk">
                       <field name="oid">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                     </shadow>
                   </value>
                   <statement name="STATEMENT">
                     <block type="controls_if" id="bBj8AObw9sx4)m0n}f/S">
                       <mutation elseif="5" else="1"></mutation>
                       <value name="IF0">
                         <block type="logic_compare" id="H6]r}ZBdyT@h*O*d342W">
                           <field name="OP">EQ</field>
                           <value name="A">
                             <block type="get_value" id="y8hIoJi+.f{rIBOqj3tn">
                               <field name="ATTR">val</field>
                               <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="8]UnDq3#x@l7rDYMx6*Z">
                               <field name="NUM">0</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="update" id="RJxZ*6B#F3=eLOXL)MCs">
                           <mutation delay_input="false"></mutation>
                           <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status_Klartext</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="text" id=",uLUmes+.g=M9CHIW%fY">
                               <field name="TEXT">aus</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                       <value name="IF1">
                         <block type="logic_compare" id="[n-xyV|w!m:)pMs5}U2=">
                           <field name="OP">EQ</field>
                           <value name="A">
                             <block type="get_value" id="G1I,6t).Xe123VJpod!#">
                               <field name="ATTR">val</field>
                               <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id=".~oDxm8eZDWRc{V![?Q{">
                               <field name="NUM">1</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO1">
                         <block type="update" id="ZzWupPP1+1}.JJ5O~?[~">
                           <mutation delay_input="false"></mutation>
                           <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status_Klartext</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="text" id="cTE?).qfsKqw}IaEO2.7">
                               <field name="TEXT">Leerlauf</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                       <value name="IF2">
                         <block type="logic_compare" id="2gEG8![5]C=n/7jd{eeG">
                           <field name="OP">EQ</field>
                           <value name="A">
                             <block type="get_value" id="5*PP](Pg94v;gRkAWe+@">
                               <field name="ATTR">val</field>
                               <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="*yp-@9hBBh(FRm~7W=e;">
                               <field name="NUM">2</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO2">
                         <block type="update" id="7ba*nde2NH^V39s{Fz]b">
                           <mutation delay_input="false"></mutation>
                           <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status_Klartext</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="text" id="cL)v4[?xZk2aXS`TNDQF">
                               <field name="TEXT">Anfahren</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                       <value name="IF3">
                         <block type="logic_compare" id="TjBZhe2vOY_;516v!KBY">
                           <field name="OP">EQ</field>
                           <value name="A">
                             <block type="get_value" id="z=5gjgq_td56^~jO/k|K">
                               <field name="ATTR">val</field>
                               <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="FmK!DKwU7C46D/MpJg@n">
                               <field name="NUM">3</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO3">
                         <block type="update" id="oJ_I%UOkQ1Rs%/H_A:uN">
                           <mutation delay_input="false"></mutation>
                           <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status_Klartext</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="text" id="ynuL`[+15s,5a[D^v?/0">
                               <field name="TEXT">Einspeisen MPP</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                       <value name="IF4">
                         <block type="logic_compare" id="MKqAQ8!DD.Ig)Tv@k}d)">
                           <field name="OP">EQ</field>
                           <value name="A">
                             <block type="get_value" id="i+[|iN=pc^84D3!-Mcm5">
                               <field name="ATTR">val</field>
                               <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="9sRqn(m?uLLQosp}j/nT">
                               <field name="NUM">4</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO4">
                         <block type="update" id="E;Xy,YAbG7Tx1%_#Kv~H">
                           <mutation delay_input="false"></mutation>
                           <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status_Klartext</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="text" id="Hg{?ADUX2!gLmx1*arsf">
                               <field name="TEXT">Einspeisen abgeregelt</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                       <value name="IF5">
                         <block type="logic_compare" id="oD[`+`/Vo=ola}rlCu;-">
                           <field name="OP">EQ</field>
                           <value name="A">
                             <block type="get_value" id="3Zwc^N_lkGV2h@Hp6P!T">
                               <field name="ATTR">val</field>
                               <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="#4nBQwS9OWSP]R-eJNIn">
                               <field name="NUM">7</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO5">
                         <block type="update" id="9.Bz:D)(cy(Bl{`Ax#ec">
                           <mutation delay_input="false"></mutation>
                           <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status_Klartext</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="text" id="JLdKs=lDv.D|!+@cAaF3">
                               <field name="TEXT">Isolationsmessung</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                       <statement name="ELSE">
                         <block type="update" id="dmn?]^E`me_zDZ,zj~+p">
                           <mutation delay_input="false"></mutation>
                           <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status_Klartext</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="text_join" id="muH4Du32mGvss_4`jz7q">
                               <mutation items="2"></mutation>
                               <value name="ADD0">
                                 <block type="text" id=":7VU7X9Rh[9OR2LIe.Uh">
                                   <field name="TEXT">Code </field>
                                 </block>
                               </value>
                               <value name="ADD1">
                                 <block type="convert_tostring" id="e:Ff5Hh]3dQ6;KnCRoXp">
                                   <value name="VALUE">
                                     <block type="get_value" id="xCt:yn77@(hX6Iv.521a">
                                       <field name="ATTR">val</field>
                                       <field name="OID">Messwerte.0.Solaranlage.Momentanwerte.Status</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </statement>
                     </block>
                   </statement>
                 </block>
                </xml>
                

                Dazu musst du noch einen Datenpunkt anlegen und da hineinschreiben

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

                  Ich lerne ja auch noch und habe das jetzt mal zum Anlass genommen zu versuchen die Klartextumwandlung des Status' mit in das Skript zu übernehemn. Das war/ist fast mein erster Versuch mit nativem JS - ohne Blockly.

                  Leider geht es nicht ganz so wie ich wollte - den letzten Fehler bekomme ich nicht weg.

                  // Ausleseskript Wechselrichter Kostal Piko ab Firmware v05.31 (12.10.2015)
                  
                  //Variable
                  
                  var IPAnlage = '192.168.xxx.yyy/api/dxs.json';   // IP der Photovoltaik-Anlage
                  
                  //Leistungswerte
                     ID_DCEingangGesamt = 33556736;         // in W
                     ID_Ausgangsleistung = 67109120;        // in W
                     ID_Eigenverbrauch = 83888128;          // in W
                     
                     //Status
                     ID_Status = 16780032;                  // 0:Off
                     
                     //Statistik - Tag
                     ID_Ertrag_d = 251658754;               // in Wh
                     ID_Hausverbrauch_d = 251659010;        // in Wh
                     ID_Eigenverbrauch_d = 251659266;       // in Wh
                     ID_Eigenverbrauchsquote_d = 251659278; // in %
                     ID_Autarkiegrad_d = 251659279;         // in %
                     
                     //Statistik - Gesamt
                     ID_Ertrag_G = 251658753;               // in kWh
                     ID_Hausverbrauch_G = 251659009;        // in kWh
                     ID_Eigenverbrauch_G = 251659265;       // in kWh
                     ID_Eigenverbrauchsquote_G = 251659280; // in %
                     ID_Autarkiegrad_G = 251659281;         // in %
                     ID_Betriebszeit = 251658496;           // in h
                     
                     //Momentanwerte - PV Generator
                     ID_DC1Spannung = 33555202;             // in V
                     ID_DC1Strom = 33555201;                // in A
                     ID_DC1Leistung = 33555203;             // in W
                     ID_DC2Spannung = 33555458;             // in V
                     ID_DC2Strom = 33555457;                // in A
                     ID_DC2Leistung = 33555459;             // in W
                     
                     //Momentanwerte Haus
                     ID_HausverbrauchSolar = 83886336;      // in W
                     ID_HausverbrauchBatterie = 83886592;   // in W
                     ID_HausverbrauchNetz = 83886848;       // in W
                     ID_HausverbrauchPhase1 = 83887106;     // in W
                     ID_HausverbrauchPhase2 = 83887362;     // in W
                     ID_HausverbrauchPhase3 = 83887618;     // in W
                     
                     //Netz Netzparameter
                     ID_NetzAusgangLeistung = 67109120;     // in W
                     ID_NetzFrequenz = 67110400;            // in Hz
                     ID_NetzCosPhi = 67110656;
                     
                     //Netz Phase 1
                     ID_P1Spannung = 67109378;              // in V
                     ID_P1Strom = 67109377;                 // in A
                     ID_P1Leistung = 67109379;              // in W
                     
                     //Netz Phase 2
                     ID_P2Spannung = 67109634;              // in V
                     ID_P2Strom = 67109633;                 // in A
                     ID_P2Leistung = 67109635;              // in W
                     
                     //Netz Phase 3
                     ID_P3Spannung = 67109890;              // in V
                     ID_P3Strom = 67109889;                 // in A
                     ID_P3Leistung = 67109891;              // in W
                  
                  
                  
                  
                  
                  
                  
                  createState('Solaranlage.Momentanwerte.Leistung_AC_aktuell', 0);
                  //createState('Solaranlage.Summenwerte.Autarkiegrad_d',0);
                  //createState('Solaranlage.Summenwerte.Autarkiegrad_G',0);
                  createState('Solaranlage.Summenwerte.Betriebszeit',0);
                  createState('Solaranlage.Momentanwerte.Status','aus');
                  createState('Solaranlage.Momentanwerte.Leistung_DC_aktuell',0);
                  //createState('Solaranlage.Momentanwerte.Eigenverbrauch',0);
                  //createState('Solaranlage.Summenwerte.Eigenverbrauch_d');
                  //createState('Solaranlage.Summenwerte.Eigenverbrauch_G', 0);
                  //createState('Solaranlage.Summenwerte.Eigenverbrauchsquote_d', 0);
                  //createState('Solaranlage.Summenwerte.Eigenverbrauchsquote_G', 0);
                  createState('Solaranlage.Summenwerte.Tagesertrag', 0);
                  createState('Solaranlage.Summenwerte.Gesamtertrag', 0);
                  //createState('Solaranlage.Summenwerte.Hausverbrauch_d', 0);
                  //createState('Solaranlage.Summenwerte.Hausverbrauch_G', 0);
                  //createState('Solaranlage.Momentanwerte.P1Spannung');
                  //createState('Solaranlage.Momentanwerte.P2Spannung');
                  //createState('Solaranlage.Momentanwerte.P1Strom');
                  //createState('Solaranlage.Momentanwerte.P2Strom');
                  //createState('Solaranlage.Momentanwerte.P1Leistung');
                  //createState('Solaranlage.Momentanwerte.P2Leistung');
                  //createState('Solaranlage.Momentanwerte.Leistung_String1');
                  //createState('Solaranlage.Momentanwerte.Leistung_String2');
                  
                  
                  var logging = false;
                  var request = require('request');
                  
                  function Piko() {
                     if (logging) log("Piko 5.5 auslesen");
                     request('http://' + IPAnlage + 
                     '?dxsEntries=' + ID_DCEingangGesamt +
                     '&dxsEntries=' + ID_Ausgangsleistung +
                     '&dxsEntries=' + ID_Eigenverbrauch +
                     '&dxsEntries=' + ID_Eigenverbrauch_d +
                     '&dxsEntries=' + ID_Eigenverbrauch_G +
                     '&dxsEntries=' + ID_Eigenverbrauchsquote_d +
                     '&dxsEntries=' + ID_Eigenverbrauchsquote_G +
                     '&dxsEntries=' + ID_Ertrag_d +
                     '&dxsEntries=' + ID_Ertrag_G +
                     '&dxsEntries=' + ID_Hausverbrauch_d +
                     '&dxsEntries=' + ID_Hausverbrauch_G +
                     '&dxsEntries=' + ID_Autarkiegrad_G +
                     '&dxsEntries=' + ID_Autarkiegrad_d +
                     '&dxsEntries=' + ID_Betriebszeit +
                     '&dxsEntries=' + ID_P1Spannung +
                     '&dxsEntries=' + ID_P2Spannung +
                     '&dxsEntries=' + ID_P1Strom +
                     '&dxsEntries=' + ID_P2Strom +
                     '&dxsEntries=' + ID_P1Leistung +
                     '&dxsEntries=' + ID_P2Leistung +
                     '&dxsEntries=' + ID_Status +
                     '&dxsEntries=' + ID_DC1Leistung +
                     '&dxsEntries=' + ID_DC2Leistung,
                     
                     function (error, response, body) {
                         if(!error && response.statusCode ==200) {
                             if(logging) log(body);
                             var result = JSON.parse(body).dxsEntries;
                     		
                     		var Zustand = 'aus';
                  
                     		if (result[20] == 0) {
                             Zustand == 'aus';
                             } else if (result[20]== 1) {
                             Zustand == 'Leerlauf';
                             } else if (result[20] == 2) {
                             Zustand == 'Anfahren';
                             } else if (result[20] == 3) {
                             Zustand == 'Einspeisen MPP';
                             } else if (result[20] == 4) {
                             Zustand == 'Einspeisen abgeregelt';
                             } else if (result[20] == 7) {
                             Zustand == 'Isolationsmessung';
                             } else {
                             Zustand == (String('Code ') + String('' + result[20]));
                             }
                         };
                     		
                     		
                             setState('Solaranlage.Momentanwerte.Leistung_DC_aktuell', result[0].value || 0, true);
                             setState('Solaranlage.Momentanwerte.Leistung_AC_aktuell', result[1].value || 0, true);
                             //setState('Solaranlage.Momentanwerte.Eigenverbrauch', result[2].value || 0, true);
                             //setState('Solaranlage.Summenwerte.Eigenverbrauch_d', result[3].value || 0, true);
                             //setState('Solaranlage.Summenwerte.Eigenverbrauch_G', result[4].value || 0, true);
                             //setState('Solaranlage.Summenwerte.Eigenverbrauchsquote_d', result[5].value || 0, true);
                             //setState('Solaranlage.Summenwerte.Eigenverbrauchsquote_G', result[6].value || 0, true);
                             setState('Solaranlage.Summenwerte.Tagesertrag', result[7].value || 0, true);
                             setState('Solaranlage.Summenwerte.Gesamtertrag', result[8].value || 0, true);
                             //setState('Solaranlage.Summenwerte.Hausverbrauch_d', result[9].value || 0, true);
                             //setState('Solaranlage.Summenwerte.Hausverbrauch_G', result[10].value || 0, true);
                             //setState('Solaranlage.Summenwerte.Autarkiegrad_G', result[11].value || 0, true);
                             //setState('Solaranlage.Summenwerte.Autarkiegrad_d', result[12].value || 0, true);
                             setState('Solaranlage.Summenwerte.Betriebszeit', result[13].value || 0, true);
                             //setState('Solaranlage.Momentanwerte.P1Spannung', result[14].value || 0, true);
                             //setState('Solaranlage.Momentanwerte.P2Spannung', result[15].value || 0, true);
                             //setState('Solaranlage.Momentanwerte.P1Strom', result[16].value || 0, true);
                             //setState('Solaranlage.Momentanwerte.P2Strom', result[17].value || 0, true);
                             //setState('Solaranlage.Momentanwerte.P1Leistung', result[18].value || 0, true);
                             //setState('Solaranlage.Momentanwerte.P2Leistung', result[19].value || 0, true);
                             setState('Solaranlage.Momentanwerte.Status', Zustand || 0,true);
                             //setState('Solaranlage.Momentanwerte.Leistung_String1', result[21].value || 0, true);
                             //setState('Solaranlage.Momentanwerte.Leistung_String2', result[22].value || 0, true);
                         } else {
                             log("Fehler: " + error + " bei Abfrage von: " + url, "warn");
                         }
                     });
                  }
                  
                  schedule("*/11 * 5-23 * * *", Piko);
                  //on('smartmeter.0.1-0:16_7_0__255.value', Piko); // triggert bei Wertänderung;
                  

                  Jetzt benötige ich auch Hilfe. Vielleicht liest @paul53 hier "zufällig" mit.
                  In Zeile 174 kommt Komma erwartet - das übersteigt meine Kenntnisse und ist der Grund warum ich mit Blockly arbeite, da gibt es keine Kommata und Semikola 😉

                  Zur Erklärung:
                  Ich wollte nach dem parsen des json das 20. Ergebnis im Array (müsste der Status als Ziffer sein) abfangen in Text wandeln, in eine Variable schreiben und den Wert dann in den Datenpunkt schreiben.

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

                    Hab's gefunden, da war noch eine geschweifte Klammer und ein Semikolon zu viel.
                    Dann gab es noch den ein oder anderen kleinen Fehler.
                    Habe jetzt alles korrigiert. Bei mir läuft es jetzt so:

                    Piko_Status_Klartext_objects.png

                    // Ausleseskript Wechselrichter Kostal Piko ab Firmware v05.31 (12.10.2015)
                    
                    //Variable
                    
                    var url = '192.168.xxx.yyy'; // IP der Photovoltaik-Anlage eintragen
                    var IPAnlage = url + '/api/dxs.json'; 
                    
                    //Leistungswerte
                       ID_DCEingangGesamt = 33556736;         // in W
                       ID_Ausgangsleistung = 67109120;        // in W
                       ID_Eigenverbrauch = 83888128;          // in W
                       
                       //Status
                       ID_Status = 16780032;                  // 0:Off
                       
                       //Statistik - Tag
                       ID_Ertrag_d = 251658754;               // in Wh
                       ID_Hausverbrauch_d = 251659010;        // in Wh
                       ID_Eigenverbrauch_d = 251659266;       // in Wh
                       ID_Eigenverbrauchsquote_d = 251659278; // in %
                       ID_Autarkiegrad_d = 251659279;         // in %
                       
                       //Statistik - Gesamt
                       ID_Ertrag_G = 251658753;               // in kWh
                       ID_Hausverbrauch_G = 251659009;        // in kWh
                       ID_Eigenverbrauch_G = 251659265;       // in kWh
                       ID_Eigenverbrauchsquote_G = 251659280; // in %
                       ID_Autarkiegrad_G = 251659281;         // in %
                       ID_Betriebszeit = 251658496;           // in h
                       
                       //Momentanwerte - PV Generator
                       ID_DC1Spannung = 33555202;             // in V
                       ID_DC1Strom = 33555201;                // in A
                       ID_DC1Leistung = 33555203;             // in W
                       ID_DC2Spannung = 33555458;             // in V
                       ID_DC2Strom = 33555457;                // in A
                       ID_DC2Leistung = 33555459;             // in W
                       
                       //Momentanwerte Haus
                       ID_HausverbrauchSolar = 83886336;      // in W
                       ID_HausverbrauchBatterie = 83886592;   // in W
                       ID_HausverbrauchNetz = 83886848;       // in W
                       ID_HausverbrauchPhase1 = 83887106;     // in W
                       ID_HausverbrauchPhase2 = 83887362;     // in W
                       ID_HausverbrauchPhase3 = 83887618;     // in W
                       
                       //Netz Netzparameter
                       ID_NetzAusgangLeistung = 67109120;     // in W
                       ID_NetzFrequenz = 67110400;            // in Hz
                       ID_NetzCosPhi = 67110656;
                       
                       //Netz Phase 1
                       ID_P1Spannung = 67109378;              // in V
                       ID_P1Strom = 67109377;                 // in A
                       ID_P1Leistung = 67109379;              // in W
                       
                       //Netz Phase 2
                       ID_P2Spannung = 67109634;              // in V
                       ID_P2Strom = 67109633;                 // in A
                       ID_P2Leistung = 67109635;              // in W
                       
                       //Netz Phase 3
                       ID_P3Spannung = 67109890;              // in V
                       ID_P3Strom = 67109889;                 // in A
                       ID_P3Leistung = 67109891;              // in W
                    
                    
                    
                    
                    
                    
                    
                    createState('Solaranlage.Momentanwerte.Leistung_AC_aktuell', 0);
                    //createState('Solaranlage.Summenwerte.Autarkiegrad_d',0);
                    //createState('Solaranlage.Summenwerte.Autarkiegrad_G',0);
                    createState('Solaranlage.Summenwerte.Betriebszeit',0);
                    createState('Solaranlage.Momentanwerte.Status','aus');
                    createState('Solaranlage.Momentanwerte.Leistung_DC_aktuell',0);
                    //createState('Solaranlage.Momentanwerte.Eigenverbrauch',0);
                    //createState('Solaranlage.Summenwerte.Eigenverbrauch_d');
                    //createState('Solaranlage.Summenwerte.Eigenverbrauch_G', 0);
                    //createState('Solaranlage.Summenwerte.Eigenverbrauchsquote_d', 0);
                    //createState('Solaranlage.Summenwerte.Eigenverbrauchsquote_G', 0);
                    createState('Solaranlage.Summenwerte.Tagesertrag', 0);
                    createState('Solaranlage.Summenwerte.Gesamtertrag', 0);
                    //createState('Solaranlage.Summenwerte.Hausverbrauch_d', 0);
                    //createState('Solaranlage.Summenwerte.Hausverbrauch_G', 0);
                    //createState('Solaranlage.Momentanwerte.P1Spannung');
                    //createState('Solaranlage.Momentanwerte.P2Spannung');
                    //createState('Solaranlage.Momentanwerte.P1Strom');
                    //createState('Solaranlage.Momentanwerte.P2Strom');
                    //createState('Solaranlage.Momentanwerte.P1Leistung');
                    //createState('Solaranlage.Momentanwerte.P2Leistung');
                    //createState('Solaranlage.Momentanwerte.Leistung_String1');
                    //createState('Solaranlage.Momentanwerte.Leistung_String2');
                    
                    
                    var logging = false;
                    var request = require('request');
                    
                    function Piko() {
                       if (logging) log("Piko 5.5 auslesen");
                       request('http://' + IPAnlage + 
                       '?dxsEntries=' + ID_DCEingangGesamt +
                       '&dxsEntries=' + ID_Ausgangsleistung +
                       '&dxsEntries=' + ID_Eigenverbrauch +
                       '&dxsEntries=' + ID_Eigenverbrauch_d +
                       '&dxsEntries=' + ID_Eigenverbrauch_G +
                       '&dxsEntries=' + ID_Eigenverbrauchsquote_d +
                       '&dxsEntries=' + ID_Eigenverbrauchsquote_G +
                       '&dxsEntries=' + ID_Ertrag_d +
                       '&dxsEntries=' + ID_Ertrag_G +
                       '&dxsEntries=' + ID_Hausverbrauch_d +
                       '&dxsEntries=' + ID_Hausverbrauch_G +
                       '&dxsEntries=' + ID_Autarkiegrad_G +
                       '&dxsEntries=' + ID_Autarkiegrad_d +
                       '&dxsEntries=' + ID_Betriebszeit +
                       '&dxsEntries=' + ID_P1Spannung +
                       '&dxsEntries=' + ID_P2Spannung +
                       '&dxsEntries=' + ID_P1Strom +
                       '&dxsEntries=' + ID_P2Strom +
                       '&dxsEntries=' + ID_P1Leistung +
                       '&dxsEntries=' + ID_P2Leistung +
                       '&dxsEntries=' + ID_Status +
                       '&dxsEntries=' + ID_DC1Leistung +
                       '&dxsEntries=' + ID_DC2Leistung,
                       
                       function (error, response, body) {
                           if(!error && response.statusCode ==200) {
                               if(logging) log(body);
                               var result = JSON.parse(body).dxsEntries;
                       		
                       		var Zustand = 'aus';
                    
                       		if (result[20].val == 0) {
                               Zustand = 'aus';
                               } else if (result[20].value== 1) {
                               Zustand = 'Leerlauf';
                               } else if (result[20].value == 2) {
                               Zustand = 'Anfahren';
                               } else if (result[20].value == 3) {
                               Zustand = 'Einspeisen MPP';
                               } else if (result[20].value == 4) {
                               Zustand = 'Einspeisen abgeregelt';
                               } else if (result[20].value == 7) {
                               Zustand = 'Isolationsmessung';
                               } else {
                               Zustand = (String('Code ') + String('' + result[20].value));
                               }
                           
                       		
                       		
                               setState('Solaranlage.Momentanwerte.Leistung_DC_aktuell', result[0].value || 0, true);
                               setState('Solaranlage.Momentanwerte.Leistung_AC_aktuell', result[1].value || 0, true);
                               //setState('Solaranlage.Momentanwerte.Eigenverbrauch', result[2].value || 0, true);
                               //setState('Solaranlage.Summenwerte.Eigenverbrauch_d', result[3].value || 0, true);
                               //setState('Solaranlage.Summenwerte.Eigenverbrauch_G', result[4].value || 0, true);
                               //setState('Solaranlage.Summenwerte.Eigenverbrauchsquote_d', result[5].value || 0, true);
                               //setState('Solaranlage.Summenwerte.Eigenverbrauchsquote_G', result[6].value || 0, true);
                               setState('Solaranlage.Summenwerte.Tagesertrag', result[7].value || 0, true);
                               setState('Solaranlage.Summenwerte.Gesamtertrag', result[8].value || 0, true);
                               //setState('Solaranlage.Summenwerte.Hausverbrauch_d', result[9].value || 0, true);
                               //setState('Solaranlage.Summenwerte.Hausverbrauch_G', result[10].value || 0, true);
                               //setState('Solaranlage.Summenwerte.Autarkiegrad_G', result[11].value || 0, true);
                               //setState('Solaranlage.Summenwerte.Autarkiegrad_d', result[12].value || 0, true);
                               setState('Solaranlage.Summenwerte.Betriebszeit', result[13].value || 0, true);
                               //setState('Solaranlage.Momentanwerte.P1Spannung', result[14].value || 0, true);
                               //setState('Solaranlage.Momentanwerte.P2Spannung', result[15].value || 0, true);
                               //setState('Solaranlage.Momentanwerte.P1Strom', result[16].value || 0, true);
                               //setState('Solaranlage.Momentanwerte.P2Strom', result[17].value || 0, true);
                               //setState('Solaranlage.Momentanwerte.P1Leistung', result[18].value || 0, true);
                               //setState('Solaranlage.Momentanwerte.P2Leistung', result[19].value || 0, true);
                               setState('Solaranlage.Momentanwerte.Status', Zustand || 0, true);
                               //setState('Solaranlage.Momentanwerte.Leistung_String1', result[21].value || 0, true);
                               //setState('Solaranlage.Momentanwerte.Leistung_String2', result[22].value || 0, true);
                           } else {
                               log("Fehler: " + error + " bei Abfrage von: " + url, "warn");
                           }
                       });
                    }
                    
                    schedule("*/11 * 5-23 * * *", Piko);
                    //on('smartmeter.0.1-0:16_7_0__255.value', Piko); // triggert bei Wertänderung;
                    

                    PS auch bei mir lief ein Skript noch, das gar nicht mehr existierte.
                    restart der js-Instanz hat geholfen

                    S M 3 Replies Last reply Reply Quote 0
                    • S
                      scout1978 @Homoran last edited by

                      @Homoran
                      wow was für ein Aufand.... Gerade zurück vom Spielplatz....
                      versuche das später in einer ruhigen Minute alles zu verstehen und zu testen....
                      Habe demnächst Termin mit unserer Solarfirma... Meine Anforderungen sind identisch.... Ich gebe dann laut wenn ich da mehr weis.
                      Bis Später
                      Grüße Gernot

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

                        @Homoran
                        Bei mir klappts noch nicht...
                        Objekte.png ```
                        javascript.0 2020-08-13 20:53:18.021 info (5941) script.js.Piko_Neu: registered 0 subscriptions and 1 schedule
                        javascript.0 2020-08-13 20:53:17.945 info (5941) Start javascript script.js.Piko_Neu
                        javascript.0 2020-08-13 20:53:17.426 info (5941) received all states
                        javascript.0 2020-08-13 20:53:17.302 info (5941) received all objects
                        javascript.0 2020-08-13 20:53:16.534 info (5941) requesting all objects
                        javascript.0 2020-08-13 20:53:16.531 info (5941) requesting all states
                        javascript.0 2020-08-13 20:53:16.448 info (5941) starting. Version 4.6.17 in /opt/iobroker/node_modules/iobroker.javascript, node: v10.22.0, js-controller: 3.1.6
                        javascript.0 2020-08-13 20:53:09.962 info (2592) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                        javascript.0 2020-08-13 20:53:09.960 info (2592) terminating
                        javascript.0 2020-08-13 20:53:09.958 info (2592) Stop script script.js.Piko_Neu
                        javascript.0 2020-08-13 20:53:09.957 info (2592) Got terminate signal TERMINATE_YOURSELF
                        javascript.0 2020-08-13 20:50:26.259 info (2592) script.js.Piko_Neu: registered 0 subscriptions and 1 schedule
                        javascript.0 2020-08-13 20:50:26.243 info (2592) Start javascript script.js.Piko_Neu
                        javascript.0 2020-08-13 20:50:20.612 info (2592) Stop script script.js.Piko_Neu
                        javascript.0 2020-08-13 20:46:40.994 info (2592) Stop script script.js.Skript_1
                        javascript.0 2020-08-13 20:46:38.134 info (2592) Stop script script.js.Skript_1
                        javascript.0 2020-08-13 20:46:37.474 info (2592) script.js.Skript_1: registered 0 subscriptions and 1 schedule
                        javascript.0 2020-08-13 20:46:37.334 info (2592) Start javascript script.js.Skript_1

                        Habe das Skript 1 gelöscht.... Dann das Piko Neu erstellt..ip eingefügt....instanz neu gestartet....Momentanwerte kommen nicht...weil dunkel?

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

                          @scout1978 objekte 2.png
                          Da ist was aufgetaucht

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

                            @scout1978 sagte in Status vom Kostal Wechselrichter auslesen?:

                            Momentanwerte kommen nicht...weil dunkel?

                            Natürlich! Momentan wird nichts erzeugt.
                            Ist das alles was nicht funktioniert?
                            Dann musst du ein paar Solarmodule gegen Lunarmodule tauschen.

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

                              @scout1978 sagte in Status vom Kostal Wechselrichter auslesen?:

                              Da ist was aufgetaucht

                              Code 0 sollte "aus" heißen.
                              Da ist noch ein Fehler

                              Da muss statt

                              function (error, response, body) {
                                     if(!error && response.statusCode ==200) {
                                         if(logging) log(body);
                                         var result = JSON.parse(body).dxsEntries;
                                 		
                                 		var Zustand = 'aus';
                              
                                 		if (result[20].val == 0) {
                                         Zustand = 'aus';
                                         } else if (result[20].value== 1) {
                                         Zustand = 'Leerlauf';
                                         } else if (result[20].value == 2) {
                                         Zustand = 'Anfahren';
                                         } else if (result[20].value == 3) {
                                         Zustand = 'Einspeisen MPP';
                                         } else if (result[20].value == 4) {
                                         Zustand = 'Einspeisen abgeregelt';
                                         } else if (result[20].value == 7) {
                                         Zustand = 'Isolationsmessung';
                                         } else {
                                         Zustand = (String('Code ') + String('' + result[20].value));
                                         }
                              

                              In der Zeile mit result[20].val == 0 richtig heißen result[20].value == 0, so wie in den anderen Zeilen danach

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

                                @Homoran
                                Wow
                                Es klappt alles!!!! Vielen Dank!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                                1 Reply Last reply Reply Quote 0
                                • K
                                  kaybau last edited by

                                  Hallo zusammen,
                                  ich nutze auch seit gut 6 Monaten das Javascript zum Auslesen der Werte.
                                  Hat schon mal jemand die Events aus dem Piko BA ausgelesen? Mir dauert die Alarmierung aus dem Support-Portal von Kostal eindeutig zu lange.

                                  http://<IP>/#/info/events

                                  Viele Grüße,
                                  Kay

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

                                    @kaybau sagte in Status vom Kostal Wechselrichter auslesen?:

                                    Hat schon mal jemand die Events aus dem Piko BA ausgelesen? Mir dauert die Alarmierung aus dem Support-Portal von Kostal eindeutig zu lange.
                                    http://<IP>/#/info/events

                                    für welche Version soll das gelten?
                                    sieht für mich nicht aus wie Ausleseskript Wechselrichter Kostal Piko ab Firmware v05.31

                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      kaybau last edited by kaybau

                                      Piko BA 8 mit FW 2.32 UI 06.41

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

                                        @kaybau dann gehört das hier nicht in den Thread.
                                        Mach bitte einen neuen auf mit deutlichem Hinweis auf die alte FW

                                        1 Reply Last reply Reply Quote 0
                                        • K
                                          kaybau last edited by

                                          Hi @Homoran , Ich nutze das skript "// Ausleseskript Wechselrichter Kostal Piko ab Firmware v05.31 (12.10.2015)" aus dem Anfang von diesem Thread.
                                          Und es ist die neueste FW , die für den Piko 8 BA verfügbar ist.
                                          Wie liest Du bei deiner FW die Events aus?
                                          76f2469e-ca3f-4737-a611-7880bf12ad52-grafik.png

                                          VG,
                                          Kay

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

                                            @kaybau sagte in Status vom Kostal Wechselrichter auslesen?:

                                            Wie liest Du bei deiner FW die Events aus?

                                            gar nicht

                                            Das ist unheimlich komplex, da du in der api erstmal sämtliche IDs der Events identifizieren musst und dann abfragen.

                                            var msgs = [
                                            {"code":"3000","type":"Störung Updateprozess","description":"Interne Systemstörung","action":"Update des Wechselrichters durchführen."},
                                            {"code":"3003","type":"Interne Kommunikationsstörung","description":"Interne Kommunikationsstörung","action":"zwischen Netzüberwachung und Steuerung Internen Kommunikationsleitungen zwischen den einzelnen Leiterplatten kontrollieren"},
                                            {"code":"3006","type":"Interne Systemstörung ","description":"Interne Systemstörung bzgl. Leistungsabregelung","action":"Gerät führt mehrfach eine Prüfung durch und schaltet generell auf. Support"},
                                            {"code":"3010","type":"Interne Kommunikationsstörung","description":"Interne Kommunikationsstörung","action":"zwischen Steuerung und Kommunkationsplatine Kontrollieren Sie die Uhrzeiteinstellung, Funktionalität der Kommunikationsplatine und weiterer Kommunikationseinstellungen. Wechselrichter schaltet trotz fehlerhaftem Zeitstempel auf"},
                                            {"code":"3011","type":"Interne Temperaturstörung","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"3012","type":"Störung Varistor","description":"DC-Varistor defekt","action":"Defekten Varistor tauschen"},
                                            {"code":"3013","type":"Interne Temperaturstörung","description":"Übertemperatur AC/DC an Leistungsstufe","action":"Installationsbedingungen und Lüfter kontrollieren"},
                                            {"code":"3014","type":"Interne Temperaturstörung","description":"Übertemperatur Prozessor","action":"Installationsbedingungen und Lüfter kontrollieren"},
                                            {"code":"3017","type":"Externe Generatorstörung","description":"Überspannung am PV-Generator","action":"Generatorinstallation/ -auslegung kontrollieren"},
                                            {"code":"3018","type":"Information","description":"Leistungsabregelung durch externe Vorgaben (Netzbetreiber)","action":"Keine Maßnahme notwendig"},
                                            {"code":"3019","type":"Externe Netzstörung","description":"Leistungsabregelung aufgrund eines Netzfehlers (erhöhte Netzfrequenz)","action":"Support"},
                                            {"code":"3020","type":"Externe Generatorstörung","description":"Überstrom am PV-Generator","action":"Generatorinstallation/ -auslegung kontrollieren"},
                                            {"code":"3021","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"3022","type":"Externe Generatorstörung","description":"Überspannung am PV-Generator","action":"Generatorinstallation/ -auslegung kontrollieren"},
                                            {"code":"3023","type":"Externe Generatorstörung","description":"Überstrom am PV-Generator","action":"Generatorinstallation/ -auslegung kontrollieren"},
                                            {"code":"3024","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"3025","type":"Externe Generatorstörung","description":"Überspannung am PV-Generator","action":"Generatorinstallation/ -auslegung kontrollieren"},
                                            {"code":"3026","type":"Externe Generatorstörung","description":"Überstrom am PV-Generator","action":"Generatorinstallation/ -auslegung kontrollieren"},
                                            {"code":"3027","type":"Interne Temperaturstörung","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"3028","type":"Externe Generatorstörung","description":"Überspannung am PV-Generator","action":"Generatorinstallation/ -auslegung kontrollieren"},
                                            {"code":"3029","type":"Externe Generatorstörung","description":"Überstrom am PV-Generator","action":"Generatorinstallation/ -auslegung kontrollieren"},
                                            {"code":"3030","type":"Interne Temperaturstörung","description":"Übertemperatur AC/DC an Leistungsstufe","action":"Installationsbedingungen und Lüfter kontrollieren"},
                                            {"code":"3031","type":"Interne Systemstörung ","description":"Interne AC-Systemstörung","action":"Gerät führt mehrfach Prüfung durch und schaltet generell auf"},
                                            {"code":"3032","type":"Externe Generatorstörung","description":"Überstrom am PV-Generator","action":"Generatorinstallation/ -auslegung kontrollieren"},
                                            {"code":"3033","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"3034","type":"Interne Systemstörung ","description":"Interner Zwischenkreisfehler","action":"Das Gerät neu starten"},
                                            {"code":"3035","type":"Interne Systemstörung ","description":"Interner Zwischenkreisfehler","action":"Das Gerät neu starten"},
                                            {"code":"3036","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support kontaktieren"},
                                            {"code":"3037","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support kontaktieren"},
                                            {"code":"3038","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support kontaktieren"},
                                            {"code":"3039","type":"Interne Parametrierungsstörung","description":"Interne Systemstörung","action":"Support kontaktieren"},
                                            {"code":"3045","type":"Interne Systemstörung ","description":"Interne AC-Systemstörung","action":"Gerät führt mehrfach Prüfung durch und schaltet generell auf"},
                                            {"code":"3046","type":"Interne Systemstörung ","description":"Interne AC-Systemstörung","action":"Gerät führt mehrfach Prüfung durch und schaltet generell auf"},
                                            {"code":"3047","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"3048","type":"Interne Kommunikationsstörung","description":"Interner Kommunikationsfehler","action":"Kontrollieren Sie die internen Kommunikationsleitungen zwischen den einzelnen Leiterplatten"},
                                            {"code":"3049","type":"Interne Kommunikationsstörung","description":"Interner Kommunikationsfehler","action":"Kontrollieren Sie die internen Kommunikationsleitungen zwischen den einzelnen Leiterplatten"},
                                            {"code":"3050","type":"Interne Kommunikationsstörung","description":"Interner Kommunikationsfehler","action":"Kontrollieren Sie die internen Kommunikationsleitungen zwischen den einzelnen Leiterplatten"},
                                            {"code":"3051","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"3052","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"3053","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"3054","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"3055","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Das Gerät neu starten"},
                                            {"code":"3056","type":"Interne Parametrierungsstörung","description":"Interne Systemstörung","action":"Support kontaktieren"},
                                            {"code":"3057","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Generatorinstallation/ -auslegung kontrollieren"},
                                            {"code":"3059","type":"Interne Parametrierungsstörung","description":"Falsche Parametrierung","action":"Ggf. falsche Ländereinstellung. Support kontaktieren"},
                                            {"code":"3060","type":"Interne Parametrierungsstörung","description":"Falsche Parametrierung","action":"Support kontaktiere"},
                                            {"code":"3061","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Keine Maßnahme notwendig"},
                                            {"code":"3062","type":"Interne Temperaturstörung","description":"Interne Systemstörung","action":"Keine Maßnahme notwendig"},
                                            {"code":"3063","type":"Interne Parametrierungsstörung","description":"Interne Systemstörung","action":"Support kontaktieren"},
                                            {"code":"3064","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Keine Maßnahme notwendig"},
                                            {"code":"3065","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Keine Maßnahme notwendig"},
                                            {"code":"3066","type":"Interne Parametrierungsstörung","description":"Interne Systemstörung","action":"Support kontaktiere"},
                                            {"code":"3068","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Das Gerät neu starten"},
                                            {"code":"3070","type":"Interne Systemstörung ","description":"Interne AC-Systemstörung","action":"Gerät führt mehrfach eine Prüfung durch und schaltet generell auf"},
                                            {"code":"3071","type":"Interne Systemstörung ","description":"Interne AC-Systemstörung","action":"Gerät führt mehrfach eine Prüfung durch und schaltet generell auf"},
                                            {"code":"3072","type":"Interne Systemstörung ","description":"Interne AC-Systemstörung","action":"Gerät führt mehrfach eine Prüfung durch und schaltet generell auf"},
                                            {"code":"3073","type":"Interne Systemstörung ","description":"Interne AC-Systemstörung","action":"Gerät führt mehrfach eine Prüfung durch und schaltet generell auf"},
                                            {"code":"3074","type":"Interne Systemstörung ","description":"Interne AC-Systemstörung","action":"Gerät führt mehrfach eine Prüfung durch und schaltet generell auf"},
                                            {"code":"3075","type":"Interne Systemstörung ","description":"Interne AC-Systemstörung","action":"Gerät führt mehrfach eine Prüfung durch und schaltet generell auf"},
                                            {"code":"3076","type":"Interne Systemstörung ","description":"Interne AC-Systemstörung","action":"Die AC-Spannung ist gegebenenfalls zu niedrig"},
                                            {"code":"3079","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Das Gerät neu starten"},
                                            {"code":"3080","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Das Gerät neu starten"},
                                            {"code":"3082","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support kontaktieren"},
                                            {"code":"3083","type":"Information","description":"Interne Systemstörung","action":"Keine Maßnahme notwendig1"},
                                            {"code":"3084","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support kontaktieren"},
                                            {"code":"3085","type":"Interne Temperaturstörung","description":"Übertemperatur Prozessor","action":"Installationsbedingungen und Lüfter kontrollieren1 "},
                                            {"code":"3086","type":"Information","description":"Leistungsabregelung aufgrund eines Netzfehlers (erhöhte AC-Spannung)","action":"Support"},
                                            {"code":"3087","type":"Interne Systemstörung ","description":"Interner Systemfehler","action":"Support kontaktieren"},
                                            {"code":"3088","type":"Interne Systemstörung ","description":"Lüftereinheit verschmutzt","action":"Lüftereinheit reinigen"},
                                            {"code":"3089","type":"Interne Systemstörung ","description":"Lüftereinheit verschmutzt","action":"Lüftereinheit reinigen"},
                                            {"code":"3090","type":"Interne Systemstörung ","description":"Interner Systemfehler","action":"Support kontaktieren"},
                                            {"code":"3091","type":"Interne Systemstörung ","description":"Lüfter nicht korrekt angeschlossen","action":"Lüfter-Steckverbindungen prüfe"},
                                            {"code":"3092","type":"Interne Systemstörung ","description":"Lüfter nicht korrekt angeschlossen","action":"Lüfter-Steckverbindungen prüfe"},
                                            {"code":"3093","type":"Interne Parametrierungsstörung","description":"Falsche Parametrierung","action":"Support kontaktiere"},
                                            {"code":"3094","type":"Interne Parametrierungsstörung","description":"Falsche Parametrierung","action":"Support kontaktiere"},
                                            {"code":"3095","type":"Interne Parametrierungsstörung","description":"Falsche Kalibrierung","action":"Support kontaktiere"},
                                            {"code":"3096","type":"Information","description":"Falsche Dimensionierung der PV-Generator","action":"Generatorinstallation/ -auslegung kontrolliere"},
                                            {"code":"3097","type":"Interne Parametrierungsstörung","description":"Falsche Parametrierung","action":"Support kontaktiere"},
                                            {"code":"3098","type":"Information","description":"Netz nicht vorhanden","action":"Keine Maßnahme notwendig"},
                                            {"code":"3101","type":"Information","description":"Interne Systemstörung","action":"Keine Maßnahme notwendig"},
                                            {"code":"3102","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Keine Maßnahme notwendig"},
                                            {"code":"3103","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Keine Maßnahme notwendig"},
                                            {"code":"3104","type":"Interne Systemstörung ","description":"Interne AC-Systemstörung","action":"Gerät führt mehrfach eine Prüfung durch und schaltet generell auf"},
                                            {"code":"3105","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Keine Maßnahme notwendig"},
                                            {"code":"3106","type":"Information","description":"Falsche Eingabe am KomBoard oder falsche Verdrahtung","action":"Eingabe oder Verdrahtung korriegieren"},
                                            {"code":"4100","type":"Interne Systemstörung ","description":"Interner Softwarefehler","action":"Support"},
                                            {"code":"4101","type":"Interne Systemstörung ","description":"Erhöhter DC-Strom L1","action":"Support"},
                                            {"code":"4102","type":"Interne Systemstörung ","description":"Erhöhter DC-Strom L2","action":"Support"},
                                            {"code":"4103","type":"Interne Systemstörung ","description":"Erhöhter DC-Strom L3","action":"Support"},
                                            {"code":"4104","type":"Interne Systemstörung ","description":"Erhöhter DC-Strom L1","action":"Support"},
                                            {"code":"4105","type":"Interne Systemstörung ","description":"Erhöhter DC-Strom L2","action":"Support"},
                                            {"code":"4106","type":"Interne Systemstörung ","description":"Erhöhter DC-Strom L3","action":"Support"},
                                            {"code":"4110","type":"Interne Systemstörung ","description":"Interner Softwarefehler","action":"Support"},
                                            {"code":"4121","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"4122","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"4130","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"4131","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"4150","type":"Information","description":"Erhöhte Netzfrequenz. Oft gehäuftes Auftreten am Morgen und am Abend.","action":"Installation kontrollieren"},
                                            {"code":"4151","type":"Externe Netzstörung","description":"Zu niedrige Netzfrequenz","action":"Installation kontrollieren"},
                                            {"code":"4157","type":"Externe Netzstörung","description":"Erhöhte Netzfrequenz","action":"Keine Maßnahme notwendig"},
                                            {"code":"4158","type":"Externe Netzstörung","description":"Erhöhte Netzfrequenz","action":"Installation kontrollieren"},
                                            {"code":"4159","type":"Externe Netzstörung","description":"Erhöhte Netzfrequenz","action":"Installation kontrollieren"},
                                            {"code":"4160","type":"Externe Netzstörung","description":"Erhöhte Netzfrequenz","action":"Installation kontrollieren"},
                                            {"code":"4161","type":"Externe Netzstörung","description":"Zu niedrige Netzfrequenz","action":"Installation kontrollieren"},
                                            {"code":"4170","type":"Information","description":"Eine Phase ist nicht angeschlossen. Ein Sicherungsautomat wurde nicht eingeschaltet.","action":"Installation kontrollieren"},
                                            {"code":"4180","type":"Externe Netzstörung","description":"PE-Leitung nicht angeschlossen","action":"Installation kontrollieren"},
                                            {"code":"4181","type":"Externe Netzstörung","description":"PE-Leitung nicht angeschlossen","action":"Installation kontrollieren "},
                                            {"code":"4185","type":"Interne Systemstörung ","description":"Interner Softwarefehler","action":"Support1 "},
                                            {"code":"4200","type":"Externe Netzstörung","description":"Erhöhte Netzspannung","action":"Installation kontrollieren "},
                                            {"code":"4201","type":"Externe Netzstörung","description":"Zu niedrige Netzspannung","action":"Installation kontrollieren "},
                                            {"code":"4210","type":"Externe Netzstörung","description":"Erhöhte Netzspannung","action":"Installation kontrollieren "},
                                            {"code":"4211","type":"Externe Netzstörung","description":"Zu niedrige Netzspannung","action":"Installation kontrollieren "},
                                            {"code":"4220","type":"Externe Netzstörung","description":"Spannungsmittelwert der letzten 10 Min. zu groß","action":"Installation kontrollieren "},
                                            {"code":"4221","type":"Externe Netzstörung","description":"Spannungsmittelwert der letzten 10 Min. zu groß","action":"Installation kontrollieren "},
                                            {"code":"4290","type":"Externe Netzstörung","description":"Die Netzfrequenz hat sich zu schnell verändert.","action":"Generatorinstallation kontrollieren "},
                                            {"code":"4300","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"4301","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"4302","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"4303","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"4304","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"4321","type":"Interne Parametrierungsstörung","description":"Defektes EEPROM unerlaubte Speicherzugriffe","action":"Support"},
                                            {"code":"4322","type":"Interne Parametrierungsstörung","description":"Softwarefehler","action":"Support kontaktieren"},
                                            {"code":"4323","type":"Interne Parametrierungsstörung","description":"Fehlerstrom","action":"Support"},
                                            {"code":"4324","type":"Interne Parametrierungsstörung","description":"Parameterfehler","action":"Support"},
                                            {"code":"4325","type":"Interne Parametrierungsstörung","description":"Parameterfehler","action":"Support"},
                                            {"code":"4340","type":"-","description":"","action":""},
                                            {"code":"4354","type":"Externer Fehlerstrom","description":"Fehlerstrom","action":"Generatorinstallation kontrollieren "},
                                            {"code":"4360","type":"-","description":"","action":""},
                                            {"code":"4421","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support "},
                                            {"code":"4422","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support kontaktieren. "},
                                            {"code":"4424","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support"},
                                            {"code":"4425","type":"Interne Parametrierungsstörung","description":"Parameterfehler","action":"Support "},
                                            {"code":"4450","type":"Externe Isolationsfehler","description":"Isolationsfehler","action":"Generatorinstallation kontrollieren "},
                                            {"code":"4451","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support kontaktieren "},
                                            {"code":"4475","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support "},
                                            {"code":"4476","type":"Information","description":"Schwache PV-Versorgung (z.B. morgens)","action":"Keine Maßnahme notwendig "},
                                            {"code":"4800","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support "},
                                            {"code":"4801","type":"Interne Systemstörung ","description":"Isolationsfehler","action":"Support "},
                                            {"code":"4802","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support "},
                                            {"code":"4803","type":"Interne Systemstörung ","description":"Isolationsfehler","action":"Support "},
                                            {"code":"4804","type":"Interne Systemstörung ","description":"Isolationsfehler","action":"Support "},
                                            {"code":"4805","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support "},
                                            {"code":"4810","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support "},
                                            {"code":"4850","type":"Interne Systemstörung ","description":"EVU","action":"Support "},
                                            {"code":"4870","type":"-","description":"","action":""},
                                            {"code":"7500","type":"Interne Systemstörung ","description":"Interne Systemstörung","action":"Support "},
                                            {"code":"7503","type":"Information","description":"Interne Systemstörung","action":"Keine Maßnahme notwendig"}
                                            ];
                                            

                                            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

                                            661
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            35
                                            331
                                            57090
                                            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