Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. [Tutorial] SolarEdge -> Modbus -> ioBroker -> Grafana

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [Tutorial] SolarEdge -> Modbus -> ioBroker -> Grafana

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

      @longbow sagte in [Tutorial] SolarEdge -> Modbus -> ioBroker -> Grafana:

      dass die PV Anlage produziert.

      Deshalb ziehe ich mit einem Script die Batterie ab , dann ist nur die die aktuelle PV Leistung zu sehen .

      javascript.0.Solar.Wechselrichter.PVLeistungAktuell - javascript.0.Solar.Wechselrichter.Batterie Entlade-Leistung = javascript.0.Solar.Wechselrichter.PVLeistungAktuell_ohneSpeicher

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

        Weiß keiner das oder so? 😞 keiner der untersützen mag?

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

          @glasfaser Kannst du mir dein Script mal zukommen lassen ?
          Also ich habe es so lösen wollen, geht nicht :
          Greenshot 2023-06-03 12.59.15.png

          Glasfaser 1 Reply Last reply Reply Quote -1
          • Glasfaser
            Glasfaser @Longbow last edited by

            @longbow

            Einmal die Berechnung wie schon oben erwähnt und der Hauptteil um es zu trennen .

            4b9b33e8-a137-49fc-b99f-b6023cfc1136-grafik.png

            <xml xmlns="https://developers.google.com/blockly/xml">
             <block type="procedures_defcustomnoreturn" id="Yo~vdCDoW+:y6C:Z%jLM" x="363" y="-87">
               <mutation statements="false"></mutation>
               <field name="NAME">etwas tun</field>
               <field name="SCRIPT">Y3JlYXRlU3RhdGUoJ1NvbGFyLldlY2hzZWxyaWNodGVyLlBWTGVpc3R1bmdBa3R1ZWxsX29obmVTcGVpY2hlcicsIHsNCg0KCW5hbWU6ICdQVkxlaXN0dW5nQWt0dWVsbF9vaG5lU3BlaWNoZXInLA0KDQoJdW5pdDogJ1cnLA0KDQoJbWluOiAgMCwNCg0KCXR5cGU6ICdudW1iZXInLA0KDQoJcm9sZTogJ3ZhbHVlLmVuZXJneScNCn0pOw0K</field>
               <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
             </block>
             <block type="on_ext" id="0WNw^]CyfADZ9h[46/yr" x="88" y="113">
               <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
               <field name="CONDITION">any</field>
               <field name="ACK_CONDITION"></field>
               <value name="OID0">
                 <shadow type="field_oid" id="aHInbBr3)gU07u~$!]S=">
                   <field name="oid">javascript.0.Solar.Wechselrichter.PVLeistungAktuell</field>
                 </shadow>
               </value>
               <statement name="STATEMENT">
                 <block type="update" id="=U8B5_HREC.%ywC@*NUX">
                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                   <field name="OID">javascript.0.Solar.Wechselrichter.PVLeistungAktuell_ohneSpeicher</field>
                   <field name="WITH_DELAY">FALSE</field>
                   <value name="VALUE">
                     <block type="math_arithmetic" id="k1ql[z$jjxr4y2epe^yv">
                       <field name="OP">MINUS</field>
                       <value name="A">
                         <shadow type="math_number" id="sJp~@vx71!N=60lSV@tn">
                           <field name="NUM">1</field>
                         </shadow>
                         <block type="on_source" id="veT._9tKCvSl?bikEiqC">
                           <field name="ATTR">state.val</field>
                         </block>
                       </value>
                       <value name="B">
                         <shadow type="math_number" id="Npe:FP|KT.MC?$=;iBKQ">
                           <field name="NUM">1</field>
                         </shadow>
                         <block type="get_value" id="t;_RJ9`t0KjSVRPVS#lg">
                           <field name="ATTR">val</field>
                           <field name="OID">javascript.0.Solar.Wechselrichter.Batterie Entlade-Leistung</field>
                         </block>
                       </value>
                     </block>
                   </value>
                 </block>
               </statement>
             </block>
            </xml>
            


            ...

            4817d200-68fc-4b2d-8aac-06cd81e50245-grafik.png
            .

            <xml xmlns="https://developers.google.com/blockly/xml">
             <block type="on_ext" id="k45?g2mKWmgfdq7;,dPT" x="25" y="-361">
               <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
               <field name="CONDITION">ne</field>
               <field name="ACK_CONDITION"></field>
               <value name="OID0">
                 <shadow type="field_oid" id="b=h=4l_d/L.t^2xVlW{w">
                   <field name="oid">modbus.3.holdingRegisters.57722_Battery_1_Lifetime_Import_Energy_Counter</field>
                 </shadow>
               </value>
               <value name="OID1">
                 <shadow type="field_oid" id="`G_.p|N^6?HKSmHdu:d7">
                   <field name="oid">modbus.3.holdingRegisters.57718_Battery_1_Lifetime_Export_Energy_Counter</field>
                 </shadow>
               </value>
               <statement name="STATEMENT">
                 <block type="controls_if" id="zoPV5Y;ayeDo`9Md{5Jl">
                   <mutation else="1"></mutation>
                   <value name="IF0">
                     <block type="logic_compare" id="FZ.$pBN9%8g:nQ,4-UBH">
                       <field name="OP">EQ</field>
                       <value name="A">
                         <block type="get_value" id="gDKsLDA+oomqdmT4$*O_">
                           <field name="ATTR">val</field>
                           <field name="OID">modbus.3.holdingRegisters.57734_Battery_1_Status</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="math_number" id="grmYB/^YD_we.HUD?fHq">
                           <field name="NUM">3</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="update" id="$/tKM:#f=E|SakpP@5Jf">
                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                       <field name="OID">javascript.0.Solar.Wechselrichter.Batterie Lade-Leistung</field>
                       <field name="WITH_DELAY">FALSE</field>
                       <value name="VALUE">
                         <block type="get_value" id="hIg8K`UH5DrkS;W}^GGE">
                           <field name="ATTR">val</field>
                           <field name="OID">modbus.3.holdingRegisters.57716_Battery_1_Instantaneous_Power</field>
                         </block>
                       </value>
                     </block>
                   </statement>
                   <statement name="ELSE">
                     <block type="update" id="#vn-5e-d9Oi=xJW9;EV9">
                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                       <field name="OID">javascript.0.Solar.Wechselrichter.Batterie Lade-Leistung</field>
                       <field name="WITH_DELAY">FALSE</field>
                       <value name="VALUE">
                         <block type="math_number" id="nInZPnS5nZ].qC#5QgA}">
                           <field name="NUM">0</field>
                         </block>
                       </value>
                     </block>
                   </statement>
                 </block>
               </statement>
               <next>
                 <block type="on_ext" id="IYUoYtHY#:$j42W4$52T">
                   <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                   <field name="CONDITION">ne</field>
                   <field name="ACK_CONDITION"></field>
                   <value name="OID0">
                     <shadow type="field_oid" id="qB5J{KMn!Pi`P$)7*_a6">
                       <field name="oid">modbus.3.holdingRegisters.57718_Battery_1_Lifetime_Export_Energy_Counter</field>
                     </shadow>
                   </value>
                   <value name="OID1">
                     <shadow type="field_oid" id="8JrVVmBx:))bQh(P+EJG">
                       <field name="oid">modbus.3.holdingRegisters.57722_Battery_1_Lifetime_Import_Energy_Counter</field>
                     </shadow>
                   </value>
                   <statement name="STATEMENT">
                     <block type="controls_if" id="=O?ZxB:x9Dp-6KF[9SaP">
                       <mutation else="1"></mutation>
                       <value name="IF0">
                         <block type="logic_compare" id="Z%%c?(bX!S]cXE!QG1}O">
                           <field name="OP">EQ</field>
                           <value name="A">
                             <block type="get_value" id="@S+7kZzCI#oocHBd_IOx">
                               <field name="ATTR">val</field>
                               <field name="OID">modbus.3.holdingRegisters.57734_Battery_1_Status</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="V*e~V8NRtAlq.?d1tf(S">
                               <field name="NUM">4</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="update" id="2hGqM}FPzMh.mKJ[*Hp`">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">javascript.0.Solar.Wechselrichter.Batterie Entlade-Leistung</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="math_arithmetic" id="DinQ%]SCa4xep[8$l=xA">
                               <field name="OP">MULTIPLY</field>
                               <value name="A">
                                 <shadow type="math_number" id="9/Lb{:E41Fv/V$,g6pU:">
                                   <field name="NUM">1</field>
                                 </shadow>
                                 <block type="get_value" id="bPpe:so:?[e1wW`.HEND">
                                   <field name="ATTR">val</field>
                                   <field name="OID">modbus.3.holdingRegisters.57716_Battery_1_Instantaneous_Power</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <shadow type="math_number" id="D6/-%3x8U1%bNh]N{Fik">
                                   <field name="NUM">1</field>
                                 </shadow>
                                 <block type="math_number" id="h(MF*U8_7T}mN`?^84!L">
                                   <field name="NUM">-1</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </statement>
                       <statement name="ELSE">
                         <block type="update" id="u*7N6fSCWh/-lJN|/+Fm">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">javascript.0.Solar.Wechselrichter.Batterie Entlade-Leistung</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="math_number" id=",~yC~+^(CJ`{1]Zb:T7l">
                               <field name="NUM">0</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                     </block>
                   </statement>
                   <next>
                     <block type="on_ext" id="BIpz4MNqK/131l(^or2*">
                       <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                       <field name="CONDITION">ne</field>
                       <field name="ACK_CONDITION"></field>
                       <value name="OID0">
                         <shadow type="field_oid" id="l01KdIA4%L[oEbTfl6Uq">
                           <field name="oid">modbus.3.holdingRegisters.57734_Battery_1_Status</field>
                         </shadow>
                       </value>
                       <statement name="STATEMENT">
                         <block type="comment" id="y=8J39[C8RX1HzEe[sL6">
                           <field name="COMMENT">10 dazu bei Leerlauf 6</field>
                           <next>
                             <block type="controls_if" id="Gn7qIJD2Tho~Td{bA6($">
                               <value name="IF0">
                                 <block type="logic_operation" id="e*!S|Ef$A#DS[};W#HN{" inline="false">
                                   <field name="OP">OR</field>
                                   <value name="A">
                                     <block type="logic_compare" id="b*-M-%0!}n,`FPNc/ihm">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="on_source" id="JN,/%O8[=ZW%kqSDfF|]">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="1Z^`AQHD=fT+7,JGt_pw">
                                           <field name="NUM">6</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="logic_compare" id="{_GCnEG]krZnG}%a.wna">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="on_source" id="2ieUK{V!UM]rt7oyGzU#">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="(0rP!KYw~b@]g{!9U3no">
                                           <field name="NUM">10</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="update" id="nb:]?y2e5OH)0?lUC~oR">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                   <field name="OID">javascript.0.Solar.Wechselrichter.Batterie Entlade-Leistung</field>
                                   <field name="WITH_DELAY">TRUE</field>
                                   <field name="DELAY_MS">1000</field>
                                   <field name="UNIT">ms</field>
                                   <field name="CLEAR_RUNNING">FALSE</field>
                                   <value name="VALUE">
                                     <block type="math_number" id="mj$wkgX8qd;vH?`#i!Tf">
                                       <field name="NUM">0</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="update" id="?4S5eZ0;hW!*Z#tk~8Qh">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                       <field name="OID">javascript.0.Solar.Wechselrichter.Batterie Lade-Leistung</field>
                                       <field name="WITH_DELAY">TRUE</field>
                                       <field name="DELAY_MS">1000</field>
                                       <field name="UNIT">ms</field>
                                       <field name="CLEAR_RUNNING">FALSE</field>
                                       <value name="VALUE">
                                         <block type="math_number" id="=4sQbPv*bjFl4HG7db8p">
                                           <field name="NUM">0</field>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
             <block type="procedures_defcustomnoreturn" id="Yo~vdCDoW+:y6C:Z%jLM" x="513" y="-287">
               <mutation statements="false"></mutation>
               <field name="NAME">etwas tun</field>
               <field name="SCRIPT">Y3JlYXRlU3RhdGUoJ1NvbGFyLldlY2hzZWxyaWNodGVyLkJhdHRlcmllIEVudGxhZGUtTGVpc3R1bmcnLCB7DQoNCgluYW1lOiAnQmF0dGVyaWUgRW50bGFkZS1MZWlzdHVuZycsDQoNCgl1bml0OiAnVycsDQoNCgltaW46ICAwLA0KDQoJdHlwZTogJ251bWJlcicsDQoNCglyb2xlOiAndmFsdWUuZW5lcmd5Jw0KfSk7DQpjcmVhdGVTdGF0ZSgnU29sYXIuV2VjaHNlbHJpY2h0ZXIuQmF0dGVyaWUgTGFkZS1MZWlzdHVuZycsIHsNCg0KCW5hbWU6ICdCYXR0ZXJpZSBMYWRlLUxlaXN0dW5nJywNCg0KCXVuaXQ6ICdXJywNCg0KCW1pbjogIDAsDQoNCgl0eXBlOiAnbnVtYmVyJywNCg0KCXJvbGU6ICd2YWx1ZS5lbmVyZ3knDQp9KTsNCg0K</field>
               <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
             </block>
            </xml>
            

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

              @glasfaser
              Vielen Dank, aber irgendwie klappt das bei mir nicht.

              Update, gelöst

              Longbow Glasfaser 2 Replies Last reply Reply Quote 0
              • Longbow
                Longbow @Longbow last edited by

                @Glasfaser Danke, habe es nochmals kopiert und die Datenpunkte angepasst, jetzt geht es wohl...

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

                  @longbow sagte in [Tutorial] SolarEdge -> Modbus -> ioBroker -> Grafana:

                  @glasfaser aber irgendwie klappt das bei mir nicht.

                  jetzt geht es wohl...

                  freut mich das ich helfen konnte 🙂

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

                    @glasfaser Ja vielen Dank... Hab gerade nur gesehen, dass der Akku geladen wird, PV Leitung bei 1,75kw liegt, der Datenpunkt PV Leistung ohne Speicher aber das gleich anzeigt wie das normal Script.
                    Beim Entladen stimmt es, was ich gestern beobachtet habe. Wo könnte hier der Fehler liegen?

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

                      @Glasfaser Ja, leider stimmt es wenn, wie jetzt die PV Anlage produziert, das dies mit den Werten nicht stimmt.

                      z.b. PV produziert 1,17kw, Haus verbraucht 0,35kw, Akku wird geladen mit 0,85kw. Wir der Datenpunkt PV Leistung ohne Akku nur mit ca. 0.300kw berechnet. Was in etwa den Hausverbrauch entsprechen könnte. Da ist noch ein Fehler dring, nur weiß ich kein Ansatz.

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

                        @longbow

                        Bei mir passt es :

                        020088dc-54d2-4db3-ab70-629dc6fafb61-grafik.png

                        Bedenke ... Modbus ist schneller in der Abfrage , die Online WebGui ist träge !

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

                          @glasfaser komisch... bei mir stimmt es nicht...

                          IMG_1869A89F5E71-1.jpeg
                          Greenshot 2023-06-08 19.04.53.png

                          Woran kann das hängen, das dies nicht klappt. Kann bei dem Datenpunkt ,,PVLeistungAktuell'' was damit zu tun haben, denn der wert dort wird ja dann abgezogen.

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

                            @longbow sagte in [Tutorial] SolarEdge -> Modbus -> ioBroker -> Grafana:

                            bei dem Datenpunkt ,,PVLeistungAktuell'

                            da sollte eigentlich ..

                            ohne Akkunutzung :

                            901e1743-68f4-472c-a2d5-8914ce400d43-grafik.png

                            mit Akkunutzung :
                            .
                            958354cc-9598-4eba-abd5-48c1315c43fd-grafik.png

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

                              Moin,
                              gibt es auch eine Möglichkeit über die Register die einzelnen Optimierer abzufragen? Status, Anzahl oder Fehler ?

                              Glasfaser 1 Reply Last reply Reply Quote 0
                              • Glasfaser
                                Glasfaser @lesiflo last edited by

                                @lesiflo sagte in [Tutorial] SolarEdge -> Modbus -> ioBroker -> Grafana:

                                die einzelnen Optimierer abzufragen

                                nur per python Skript

                                sieht so aus :
                                36e91a25-c8e5-40c6-a3b8-805dba98351c-grafik.png

                                Status, Anzahl oder Fehler ?

                                das kann man auch bauen / abfragen ... nutze ich aber nicht .

                                M 1 Reply Last reply Reply Quote 0
                                • M-A Hueb
                                  M-A Hueb last edited by

                                  Mal ne doofe Frage, warum sind bei manchen die Mod-Bus Adressen für den Akku bei 50000 und bei manchen im 100000 er Bereich? Wonach richtet sich das?

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

                                    @longbow sagte in [Tutorial] SolarEdge -> Modbus -> ioBroker -> Grafana:

                                    dort wird ja dann abgezogen.

                                    Nimm nochmal diese Script zusätzlich

                                    <xml xmlns="https://developers.google.com/blockly/xml">
                                     <block type="procedures_defcustomnoreturn" id="Yo~vdCDoW+:y6C:Z%jLM" x="363" y="-87">
                                       <mutation statements="false"></mutation>
                                       <field name="NAME">etwas tun</field>
                                       <field name="SCRIPT">Y3JlYXRlU3RhdGUoJ1NvbGFyLldlY2hzZWxyaWNodGVyLlBWTGVpc3R1bmdBa3R1ZWxsX2JlaVNwZWljaGVybGFkdW5nJywgew0KDQoJbmFtZTogJ1BWTGVpc3R1bmdBa3R1ZWxsX2JlaVNwZWljaGVybGFkdW5nJywNCg0KCXVuaXQ6ICdXJywNCg0KCW1pbjogIDAsDQoNCgl0eXBlOiAnbnVtYmVyJywNCg0KCXJvbGU6ICd2YWx1ZS5lbmVyZ3knDQp9KTsNCg==</field>
                                       <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                     </block>
                                     <block type="on_ext" id="0WNw^]CyfADZ9h[46/yr" x="88" y="113">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                       <field name="CONDITION">any</field>
                                       <field name="ACK_CONDITION"></field>
                                       <value name="OID0">
                                         <shadow type="field_oid" id="aHInbBr3)gU07u~$!]S=">
                                           <field name="oid">javascript.0.Solar.Wechselrichter.PVLeistungAktuell</field>
                                         </shadow>
                                       </value>
                                       <statement name="STATEMENT">
                                         <block type="controls_if" id="eEZ^;:%^di=,nx/+1pa:">
                                           <mutation else="1"></mutation>
                                           <value name="IF0">
                                             <block type="logic_compare" id="YF9_}bG6}dO/o^2wBUu$">
                                               <field name="OP">EQ</field>
                                               <value name="A">
                                                 <block type="get_value" id="lZVMH870OLT)=jiM(:J*">
                                                   <field name="ATTR">val</field>
                                                   <field name="OID">modbus.3.holdingRegisters.57734_Battery_1_Status</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="math_number" id="E=,rcU`PAPqzGdD;z#ph">
                                                   <field name="NUM">3</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <statement name="DO0">
                                             <block type="update" id="=U8B5_HREC.%ywC@*NUX">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">javascript.0.Solar.Wechselrichter.PVLeistungAktuell_Dachflaeche</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="math_arithmetic" id="k1ql[z$jjxr4y2epe^yv">
                                                   <field name="OP">ADD</field>
                                                   <value name="A">
                                                     <shadow type="math_number" id="sJp~@vx71!N=60lSV@tn">
                                                       <field name="NUM">1</field>
                                                     </shadow>
                                                     <block type="on_source" id="veT._9tKCvSl?bikEiqC">
                                                       <field name="ATTR">state.val</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <shadow type="math_number" id="Npe:FP|KT.MC?$=;iBKQ">
                                                       <field name="NUM">1</field>
                                                     </shadow>
                                                     <block type="get_value" id="t;_RJ9`t0KjSVRPVS#lg">
                                                       <field name="ATTR">val</field>
                                                       <field name="OID">javascript.0.Solar.Wechselrichter.Batterie Lade-Leistung</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                             </block>
                                           </statement>
                                           <statement name="ELSE">
                                             <block type="update" id="f%6W0:Whp*sI$jQnfGq[">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">javascript.0.Solar.Wechselrichter.PVLeistungAktuell_Dachflaeche</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="get_value" id="vcJf8wafqvdEnyO*zP10">
                                                   <field name="ATTR">val</field>
                                                   <field name="OID">javascript.0.Solar.Wechselrichter.PVLeistungAktuell_ohneSpeicher</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </statement>
                                         </block>
                                       </statement>
                                     </block>
                                    </xml>
                                    

                                    javascript.0.Solar.Wechselrichter.PVLeistungAktuell_Dachflaeche , mußt du noch selber anlegen
                                    Die anderen Datenpunkte auf deine ändern

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

                                      @glasfaser Danke, habe ich soweit gemacht... bekomme aber diese Fehlermeldung.

                                      
                                      javascript.0
                                      2023-06-13 19:13:03.378	error	at processImmediate (node:internal/timers:468:21)
                                      
                                      javascript.0
                                      2023-06-13 19:13:03.378	error	at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.javascript/main.js:1527:17)
                                      
                                      javascript.0
                                      2023-06-13 19:13:03.378	error	at /opt/iobroker/node_modules/iobroker.javascript/main.js:2053:17
                                      
                                      javascript.0
                                      2023-06-13 19:13:03.377	error	at prepareScript (/opt/iobroker/node_modules/iobroker.javascript/main.js:1955:37)
                                      
                                      javascript.0
                                      2023-06-13 19:13:03.377	error	at createVM (/opt/iobroker/node_modules/iobroker.javascript/main.js:1702:21)
                                      
                                      javascript.0
                                      2023-06-13 19:13:03.377	error	at new Script (node:vm:100:7)
                                      
                                      javascript.0
                                      2023-06-13 19:13:03.377	error	SyntaxError: Unexpected token '<'
                                      
                                      javascript.0
                                      2023-06-13 19:13:03.377	error	^
                                      
                                      javascript.0
                                      2023-06-13 19:13:03.377	error	<xml xmlns="https://developers.google.com/blockly/xml">
                                      
                                      javascript.0
                                      2023-06-13 19:13:03.377	error	script.js.common.PV-SolarEgde.PVLeistungAktuelle_Dachflaeche compile failed: at script.js.common.PV-SolarEgde.PVLeistungAktuelle_Dachflaeche:1
                                      
                                      Glasfaser 1 Reply Last reply Reply Quote 0
                                      • Glasfaser
                                        Glasfaser @Longbow last edited by

                                        @longbow

                                        Beim einfügen schon diese Meldung ...

                                        Das Blockly funktioniert , gerade mal neu eingefügt in Js .

                                        Da ist nicht viel drin ...

                                        .
                                        1120bc12-0b88-4eac-a2da-9a18a8fbc4b0-grafik.png

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

                                          @glasfaser Guten Morgen, keine Ahnung warum auch immer, hab es gelöscht, erneut und wieder importiert und es klappt nun. Vielen Dank aber jetzt... So langsam verstehe ich auch das was man mit Scripts machen kann. 🙂

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            Apfel85 last edited by

                                            Hallo zusammen,

                                            ich bin neu hier und verfolge mit großem Interesse dem Thema. An dieser Stelle vielen Dank für all die Infos, welche bereits im Thread gesammelt wurden.

                                            Leider stehe ich vor einem kleinen Batterieproblem..... Ich besitze eine PV-Anlage mit 2 SE Wechselrichtern. Am Hybridwechselrichter ist ein Batteriespeicher angeschlossen. Diesen kann ich mitterweile sehr gut auslesen mit ein paar Ausnahmen. Hat jemand dieses Problem schonmal gehabt bzw. wenn es bei euch nicht existiert, wie sind die Modbuseinstellungen zu sezten?

                                            1. Die max. Temperatur bleibt immer bei 0°C - hat sich auch noch nie geändert
                                            2. Die TotalExport Werte schwanken stark - setzen sich auch immer wieder auf 0 zurück. Habe die Adresse mit 2 unterschiedlichen Typen zum Test gepflegt
                                            3. Selbiges hab ich mit den TotalImport Werten

                                            Hier ein Auszug aus meinen Ergebnissen
                                            2023-07-17_14-08-42.jpg

                                            Hier die Total Import und Export Werte in kWh
                                            2023-07-17_14-21-10.jpg

                                            Hier die angelegten Adressen:

                                            _address	deviceId	name	description	unit	type	len	factor	offset	formula	role	room	poll	wp	cw	isScale
                                            97601	1	Batt1_Manufacturer			string	8	1	0				true	false	false	false
                                            97617	1	Batt1_Model			string	16	1	0				true	false	false	false
                                            97633	1	Batt1_Firmware			string	16	1	0				true	false	false	false
                                            97649	1	Batt1_Serial			string	16	1	0				true	false	false	false
                                            97665	1	Batt1_ID	Device ID		uint16be	1	1	0				true	false	false	false
                                            97667	1	Batt1_RatedEnergy	Nennenergie	kWh	floatsw	2	1	0	x * Math.pow(10, -3)			true	false	false	false
                                            97669	1	Batt1_MaxChargeConPower	Max. Ladeleistung Fortlaufend	W	floatsw	2	1	0				true	false	false	false
                                            97671	1	Batt1_MaxDischargeConPower	 Max. Entladeleistung Fortlaufend	W	floatsw	2	1	0				true	false	false	false
                                            97673	1	Batt1_MaxChargePower	Max. Ladeleistung	W	floatsw	2	1	0				true	false	false	false
                                            97675	1	Batt1_MaxDischargePower	Max. Entladeleistung	W	floatsw	2	1	0				true	false	false	false
                                            97709	1	Batt1_AverageTemp	Durchschnittstemperatur	°C	floatsw	2	1	0				true	false	false	false
                                            97711	1	Batt1_MaxTemp	Maximale Temperatur	°C	floatsw	2	1	0				true	false	false	false
                                            97713	1	Batt1_Voltage	Aktuelle Spannung	V	floatsw	2	1	0				true	false	false	false
                                            97715	1	Batt1_Current	Aktueller Strom Minus = Laden; Plus = Entladen	A	floatsw	2	1	0				true	false	false	false
                                            97717	1	Batt1_Power	Aktuelle Leistung Minus = Entladen; Plus = Laden	W	floatsw	2	1	0				true	false	false	false
                                            97719	1	Batt1_TotalExport	gesamt Exportierte Energie - heute?	kWh	uint32sw	2	1	0	x * Math.pow(10, -3)			true	false	false	false
                                            97719	1	Batt1_TestExport		kWh	uint64le	4	1	0	x * Math.pow(10, -3)			true	false	false	false
                                            97723	1	Batt1_TotalImport	gesamt Importierte Energie - heute?	kWh	uint32sw	2	1	0	x * Math.pow(10, -3)			true	false	false	false
                                            97723	1	Batt1_TestImport		kWh	uint64le	4	1	0	x * Math.pow(10, -3)			true	false	false	false
                                            97727	1	Batt1_MaxEnergy	Maximale Ladung	kWh	floatsw	2	1	0	x * Math.pow(10, -3)			true	false	false	false
                                            97729	1	Batt1_AvailableEnergy	Nutzbare Ladung	kWh	floatsw	2	1	0	x * Math.pow(10, -3)			true	false	false	false
                                            97731	1	Batt1_StateOfHealth	Lebenszustand	%	floatsw	2	1	0				true	false	false	false
                                            97733	1	Batt1_StateOfCharge	Ladezustand	%	floatsw	2	1	0				true	false	false	false
                                            97735	1	Batt1_Status	Battery operating state: 0 – Off; 1 – Standby; 2 – Init; 3 – Charge; 4 – Discharge; 5 – Fault; 7 - Idle		uint32sw	2	1	0				true	false	false	false
                                            97737	1	Batt1_StatusIntern	Vendor-defined status codes.		uint32sw	2	1	0				true	false	false	false
                                            97739	1	Batt1_EventLog	Battery vendor's last fault ID		uint16le	1	1	0				true	false	false	false
                                            40001	1	C_SunSpec_ID	"Wert = ""SunS"" (0x53756e53). Identifiziert dies eindeutig als eine SunSpec Modbus-Karte"		uint32be	2	1	0				true	false	false	false
                                            40003	1	C_SunSpec_DID	Wert = 0x0001. Identifiziert dies eindeutig als einen SunSpec “Common Block“		uint16be	1	1	0				true	false	false	false
                                            40004	1	C_SunSpec_Length	65 = Länge eines Blocks in 16-bit Registern		uint16be	1	1	0				true	false	false	false
                                            40005	1	C_Manufacturer	"Bei SunSpec eingetragener Wert = ""SolarEdge"""		string	16	1	0				true	false	false	false
                                            40021	1	C_Model	Spezifischer SolarEdge Wert		string	16	1	0				true	false	false	false
                                            40045	1	C_Version	Spezifischer SolarEdge Wert		string	8	1	0				true	false	false	false
                                            40053	1	C_SerialNumber	Eindeutiger SolarEdge Wert		string	16	1	0				true	false	false	false
                                            40069	1	C_DeviceAddress 	Modbus-ID der entsprechenden Einheit		uint16be	1	1	0				true	false	false	false
                                            40070	1	C_SunSpec_DID	101 = Einphasig, 102 = Spaltphase, 103 = Dreiphasig		uint16be	1	1	0				true	false	false	false
                                            40072	1	I_AC_Current	AC-Strom Gesamtstromwert	A	uint16be	1	1	0	x * Math.pow(10, sf['40076'])			true	false	false	false
                                            40073	1	I_AC_CurrentA	AC-Strom Phase A (L1) Stromwert	A	uint16be	1	1	0	x * Math.pow(10, sf['40076'])			true	false	false	false
                                            40074	1	I_AC_CurrentB	AC-Strom Phase B (L2) Stromwert	A	uint16be	1	1	0	x * Math.pow(10, sf['40076'])			true	false	false	false
                                            40075	1	I_AC_CurrentC	AC-Strom Phase C (L3) Stromwert	A	uint16be	1	1	0	x * Math.pow(10, sf['40076'])			true	false	false	false
                                            40076	1	I_AC_Current_SF	AC-Strom Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40084	1	I_AC_Power	AC-Leistung Leistungswert	W	int16be	1	1	0	x * Math.pow(10, sf['40085'])			true	false	false	false
                                            40085	1	I_AC_Power_SF	AC-Leistung Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40088	1	I_AC_VA	Scheinleistung	VA	int16be	1	1	0	x * Math.pow(10, sf['40089'])			true	false	false	false
                                            40089	1	I_AC_VA_SF	Scheinleistung Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40090	1	I_AC_VAR	Blindleistung	VAR	int16be	1	1	0	x * Math.pow(10, sf['40091'])			true	false	false	false
                                            40091	1	I_AC_VAR_SF	Blindleistung Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40092	1	I_AC_PF	Leistungsfaktor %	%	int16be	1	1	0	x * Math.pow(10, sf['40093'])			true	false	false	false
                                            40093	1	I_AC_PF_SF	Leistungsfaktor Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40094	1	I_AC_Energy_WH	AC Energie Gesamt-Energieproduktion	kWh	uint32be	2	1	0	x * Math.pow(10, sf['40096'] - 3)			true	false	false	false
                                            40096	1	I_AC_Energy_WH_SF	AC Energie Gesamtenergie Skalierungsfaktor	SF	uint16be	1	1	0				true	false	false	true
                                            40097	1	I_DC_Current	DC-Strom Stromwert	A	uint16be	1	1	0	x * Math.pow(10, sf['40098'])			true	false	false	false
                                            40098	1	I_DC_Current_SF	DC-Strom Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40099	1	I_DC_Voltage	DC-Spannung Spannungswert	V	uint16be	1	1	0	x * Math.pow(10, sf['40100'])			true	false	false	false
                                            40100	1	I_DC_Voltage_SF	DC-Spannung Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40101	1	I_DC_Power	DC-Leistung Leistungswert	W	int16be	1	1	0	x * Math.pow(10, sf['40102'])			true	false	false	false
                                            40102	1	I_DC_Power_SF	DC-Leistung Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40104	1	I_Temp_Sink	Kühlkörpertemperatur	°C	int16be	1	1	0	x * Math.pow(10, sf['40107'])			true	false	false	false
                                            40107	1	I_Temp_SF	Kühlkörpertemperatur Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40108	1	I_Status	Betriebszustand (1 = Aus, 2 = Schlafen (Automatisches Herunterfahren) – Nachtmodus, 3 = Aufwachen/Starten, 4 = Wechselrichter ist AN und wandelt Energie, 5 = Begrenzte Produktion, 6 = Herunterfahren, 7 = Fehler, 8 = Wartung/Setup)		uint16be	1	1	0				true	false	false	false
                                            40109	1	I_Status_Vendor	Anbieter-spezifischer Betriebszustand sowie Fehlercodes: 1 = Aus, 2 = Schlafen (Automatisches Herunterfahren) – Nachtmodus, 3 = Aufwachen/Starten, 4 = Wechselrichter ist AN und wandelt Energie, 5 = Begrenzte Produktion, 6 = Herunterfahren, 7 = Fehler, 8 = Wartung/Setup		uint16be	1	1	0				true	false	false	false
                                            40124	1	C_Manufacturer	Meter manufacturer		string	16	1	0				true	false	false	false
                                            40140	1	C_Model	Meter model		string	16	1	0				true	false	false	false
                                            40156	1	C_Option	Export + Import, Production, consumption		string	8	1	0				true	false	false	false
                                            40164	1	C_Version	Meter version		string	8	1	0				true	false	false	false
                                            40191	1	M_AC_Current	AC Current (sum of active phases)	A	int16be	1	1	0	x * Math.pow(10, sf['40195'])			true	false	false	false
                                            40192	1	M_AC_Current_A	Phase A AC Current	A	int16be	1	1	0	x * Math.pow(10, sf['40195'])			true	false	false	false
                                            40193	1	M_AC_Current_B	Phase B AC Current	A	int16be	1	1	0	x * Math.pow(10, sf['40195'])			true	false	false	false
                                            40194	1	M_AC_Current_C	Phase C AC Current	A	int16be	1	1	0	x * Math.pow(10, sf['40195'])			true	false	false	false
                                            40195	1	M_AC_Current_S F	AC Current Scale Factor	SF	int16be	1	1	0				true	false	false	true
                                            40207	1	M_AC_Power	Total real power (sum of active phases) Minus = Bezug; Plus = Einspeisung	W	int16be	1	1	0	x * Math.pow(10, sf['40211'])			true	false	false	false
                                            40211	1	M_AC_Power_SF	AC Real Power Scale Factor	SF	int16be	1	1	0				true	false	false	true
                                            40222	1	M_AC_PF	Average Power Factor (average of active phases)	%	int16be	1	1	0	x * Math.pow(10, sf['40226'])			true	false	false	false
                                            40226	1	M_AC_PF_SF	AC Power Factor Scale Factor	SF	int16be	1	1	0				true	false	false	true
                                            40227	1	M_Exported	Total Exported Real Energy	kWh	uint32be	2	1	0	x * Math.pow(10, sf['40243'] -3)			true	false	false	false
                                            40235	1	M_Imported	Total Imported Real Energy	kWh	uint32be	2	1	0	x * Math.pow(10, sf['40243'] -3)			true	false	false	false
                                            40243	1	M_Energy_W_SF	Real Energy Scale Factor	SF	int16be	1	1	0				true	false	false	true
                                            40005	2	C_Manufacturer	"Bei SunSpec eingetragener Wert = ""SolarEdge"""		string	16	1	0				true	false	false	false
                                            40021	2	C_Model	Spezifischer SolarEdge Wert		string	16	1	0				true	false	false	false
                                            40045	2	C_Version	Spezifischer SolarEdge Wert		string	8	1	0				true	false	false	false
                                            40053	2	C_SerialNumber	Eindeutiger SolarEdge Wert		string	16	1	0				true	false	false	false
                                            40069	2	C_DeviceAddress 	Modbus-ID der entsprechenden Einheit		uint16be	1	1	0				true	false	false	false
                                            40070	2	C_SunSpec_DID	101 = Einphasig, 102 = Spaltphase, 103 = Dreiphasig		uint16be	1	1	0				true	false	false	false
                                            40072	2	I_AC_Current	AC-Strom Gesamtstromwert	A	uint16be	1	1	0	x * Math.pow(10, sf['40076'])			true	false	false	false
                                            40073	2	I_AC_CurrentA	AC-Strom Phase A (L1) Stromwert	A	uint16be	1	1	0	x * Math.pow(10, sf['40076'])			true	false	false	false
                                            40074	2	I_AC_CurrentB	AC-Strom Phase B (L2) Stromwert	A	uint16be	1	1	0	x * Math.pow(10, sf['40076'])			true	false	false	false
                                            40075	2	I_AC_CurrentC	AC-Strom Phase C (L3) Stromwert	A	uint16be	1	1	0	x * Math.pow(10, sf['40076'])			true	false	false	false
                                            40076	2	I_AC_Current_SF	AC-Strom Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40084	2	I_AC_Power	AC-Leistung Leistungswert	W	int16be	1	1	0	x * Math.pow(10, sf['40085'])			true	false	false	false
                                            40085	2	I_AC_Power_SF	AC-Leistung Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40088	2	I_AC_VA	Scheinleistung	VA	int16be	1	1	0	x * Math.pow(10, sf['40089'])			true	false	false	false
                                            40089	2	I_AC_VA_SF	Scheinleistung Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40090	2	I_AC_VAR	Blindleistung	VAR	int16be	1	1	0	x * Math.pow(10, sf['40091'])			true	false	false	false
                                            40091	2	I_AC_VAR_SF	Blindleistung Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40092	2	I_AC_PF	Leistungsfaktor %	%	int16be	1	1	0	x * Math.pow(10, sf['40093'])			true	false	false	false
                                            40093	2	I_AC_PF_SF	Leistungsfaktor Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40094	2	I_AC_Energy_WH	AC Energie Gesamt-Energieproduktion	kWh	uint32be	2	1	0	x * Math.pow(10, sf['40096'] - 3)			true	false	false	false
                                            40096	2	I_AC_Energy_WH_SF	AC Energie Gesamtenergie Skalierungsfaktor	SF	uint16be	1	1	0				true	false	false	true
                                            40097	2	I_DC_Current	DC-Strom Stromwert	A	uint16be	1	1	0	x * Math.pow(10, sf['40098'])			true	false	false	false
                                            40098	2	I_DC_Current_SF	DC-Strom Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40099	2	I_DC_Voltage	DC-Spannung Spannungswert	V	uint16be	1	1	0	x * Math.pow(10, sf['40100'])			true	false	false	false
                                            40100	2	I_DC_Voltage_SF	DC-Spannung Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40101	2	I_DC_Power	DC-Leistung Leistungswert	W	int16be	1	1	0	x * Math.pow(10, sf['40102'])			true	false	false	false
                                            40102	2	I_DC_Power_SF	DC-Leistung Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40104	2	I_Temp_Sink	Kühlkörpertemperatur	°C	int16be	1	1	0	x * Math.pow(10, sf['40107'])			true	false	false	false
                                            40107	2	I_Temp_SF	Kühlkörpertemperatur Skalierungsfaktor	SF	int16be	1	1	0				true	false	false	true
                                            40108	2	I_Status	Betriebszustand (1 = Aus, 2 = Schlafen (Automatisches Herunterfahren) – Nachtmodus, 3 = Aufwachen/Starten, 4 = Wechselrichter ist AN und wandelt Energie, 5 = Begrenzte Produktion, 6 = Herunterfahren, 7 = Fehler, 8 = Wartung/Setup)		uint16be	1	1	0				true	false	false	false
                                            40109	2	I_Status_Vendor	Anbieter-spezifischer Betriebszustand sowie Fehlercodes: 1 = Aus, 2 = Schlafen (Automatisches Herunterfahren) – Nachtmodus, 3 = Aufwachen/Starten, 4 = Wechselrichter ist AN und wandelt Energie, 5 = Begrenzte Produktion, 6 = Herunterfahren, 7 = Fehler, 8 = Wartung/Setup		uint16be	1	1	0				true	false	false	false
                                            

                                            Ich danke schonmal im Voraus,
                                            Apfel

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.1k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            grafana modbus solaredge
                                            90
                                            603
                                            148447
                                            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