Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. GoodWe Wechselrichter und ioBroker

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    GoodWe Wechselrichter und ioBroker

    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      V8Turbo @Chr.Hu last edited by V8Turbo

      @chr-hu
      Danke, es war zwar drin aber vor dem # war ein leerzeichen ^^

      1 Reply Last reply Reply Quote 0
      • V
        V8Turbo last edited by

        Jetzt wäre nur noch mein Problem... Ich habe 2 WR einen GW30K-ET und einen GW30K-MT. Der ET ist klar, der MT hat einiges nicht was ausgelesen werden kann. z.b. Strom gesamt und Strom heute, da kommt als Wert {"ack":true} was bedeutet das ?

        V 1 Reply Last reply Reply Quote 0
        • V
          V8Turbo @V8Turbo last edited by

          @v8turbo

          So nachdem ich nun alle 3min den Cron laufen lasse kommt

          javascript.0
          	2024-03-06 09:15:37.993	warn	script.js.pv-1: Fehler Python: ERROR:root:Failed to call GoodWe API url='https://eu.semsportal.com/api/v2/PowerStation/GetMonitorDetailByPowerstationId' ERROR:root:no inverter data, try 1, trying again in 30 seconds Traceback (most recent call last): File "/opt/pygoodsems/pygoodwe-main1/allinone.py", line 8, in <module> gw = SingleInverter( File "/usr/local/lib/python3.9/dist-packages/pygoodwe/__init__.py", line 432, in __init__ super().__init__( File "/usr/local/lib/python3.9/dist-packages/pygoodwe/__init__.py", line 75, in __init__ self.getCurrentReadings(raw=True) File "/usr/local/lib/python3.9/dist-packages/pygoodwe/__init__.py", line 457, in get_current_readings self.data["inverter"] = self.data["inverter"][0] KeyError: 0
          javascript.0
          	2024-03-06 09:15:36.967	info	State value to set for "0_userdata.0.Bauer_PV_2.PV_Strom_Gesamt" has to be type "string" but received type "object"
          javascript.0
          	2024-03-06 09:15:36.966	info	State value to set for "0_userdata.0.Bauer_PV_2.PV_Strom_Heute" has to be type "string" but received type "object" 
          
          C 1 Reply Last reply Reply Quote 0
          • C
            Chr.Hu @V8Turbo last edited by

            @v8turbo

            Lass ihn alle 15 oder 30min laufen. Wahrscheinlich stolpert er...

            Chris

            M 1 Reply Last reply Reply Quote 0
            • M
              Mr.Flexible @Chr.Hu last edited by

              Hallo. Ich bekomme diesen Fehler und schaffe es nicht, die Ursache zu finden.

              script.js.common.GoodWe: Fehler Python: python3: can't open file '/home/admin/pygoodwe-main/allinone.py': [Errno 13] Permission denied

              Das Script allinone.py läuft im Terminal einwandfrei und zeigt die abgeholten Werte an. Nur das Script innerhalb von ioBroker läuft nicht.

              const exec = require('child_process').exec;

              exec('/usr/bin/python3 /home/admin/pygoodwe-main/allinone.py', function(error, stdout, stderr) {
              if (error) {
              console.log('Fehler Python: ' + stderr);
              return;
              }
              if (stdout) {
              let arr = stdout.split('\n');
              setState('Datenpunkte.0.PV-Anlage.PV-Power', arr[0], true);
              setState('Datenpunkte.0.PV-Anlage.PV_Batterie_Status', arr[1], true);
              setState('Datenpunkte.0.PV-Anlage.PV_Batterie_Ladung', arr[2], true);
              setState('Datenpunkte.0.PV-Anlage.PV_Haus_Last', arr[3], true);
              setState('Datenpunkte.0.PV-Anlage.PV_Strom_zu_Stadtwerken', arr[4], true);
              setState('Datenpunkte.0.PV-Anlage.PV_Strom_Heute', arr[5], true);
              setState('Datenpunkte.0.PV-Anlage.PV_Strom_Gesamt', arr[6], true);
              }
              });

              Ich habe bereits folgendes probiert:

              sudo chmod +x /home/admin/pygoodwe-main/allinone.py
              sudo chmod 755 /home/admin/pygoodwe-main
              sudo chown -R admin:admin /home/admin/pygoodwe-main

              Unter Instanzen habe ich dem Modul Javascript die <exec>-Rechte gewährt.

              Wer hat noch eine zielführende Idee?

              Vielen Dank!
              MrF

              M 1 Reply Last reply Reply Quote 0
              • M
                Mr.Flexible @Mr.Flexible last edited by

                @mr-flexible Gelöst! Siehe https://forum.iobroker.net/topic/74824/gelöst-permission-denied-fehler-goodwe-script

                1 Reply Last reply Reply Quote 0
                • U
                  unicornch last edited by

                  Hallo zusammen,

                  für alle, bei denen das Script seit einigen Tagen keine Daten mehr liefert:

                  In der Datei:
                  ~/pygoodwe-main/pygoodwe/__init__.py

                  bei Zeile 290 folgendes einfügen:

                              # APIs return "success", "Success", "Successful" in the 'msg'
                              # seen "Successful" in ExportPowerStationPac
                              # logging.error("Msg result %s - %s", self.base_url + url, data.get('msg', ''))
                              if (
                                  data.get("msg", "").lower()
                                  in (
                                      "success",
                                      "successful",
                                      "操作成功",
                                  )
                  

                  Das API scheint plötzlich auf chinesisch zu antworten.

                  Gruss,
                  Peter

                  Rap acho KevinL214 2 Replies Last reply Reply Quote 0
                  • Rap acho
                    Rap acho @unicornch last edited by Samson71

                    @unicornch
                    vielen dank dafür allerdings habe ich auch seit genau montag das problem es kommen keine daten mehr an. obwohl ich seit monaten nichts veränder habe.

                    die daten sind in der config richtig hinterlegt aber das allinoy funktioniert nicht. es kommt folgendes:

                    python3 /home/matheus/pygoodwe-main/allinone.py
                    ERROR:root:Failed to call GoodWe API url='https://eu.semsportal.com/api/v2/Power                                                         Station/GetMonitorDetailByPowerstationId'
                    ERROR:root:no inverter data, try 1, trying again in 30 seconds
                    ERROR:root:Failed to call GoodWe API url='https://eu.semsportal.com/api/v2/Power                                                         Station/GetMonitorDetailByPowerstationId'
                    

                    das habe ich als fehler im putty

                    MOD-EDIT
                    Bitte Code-Tags </> benutzen

                    1 Reply Last reply Reply Quote 0
                    • KevinL214
                      KevinL214 @unicornch last edited by

                      @unicornch Danke dir. Erspart mir viel Arbeit 😳

                      @Rap-acho Bei mir kam die selbe Meldung. Nach der Änderung laut @unicornch ging es bei mir wieder.
                      aktiviere mal den Log und schau mal was er dir meldet:

                      # logging.error("Msg result %s - %s", self.base_url + url, data.get('msg', ''))
                      

                      Liebe Grüße

                      Rap acho 1 Reply Last reply Reply Quote 0
                      • Rap acho
                        Rap acho @KevinL214 last edited by

                        was mir aufegefallen ist... als ich das eingefügt habe "操作成功", und gespeichert habe. und die datei wieder geöffnet habe wurden statt der zeichen nur ????? angezeigt. also musste ich noch die passenden fonts installlieren.

                        sudo apt update
                        sudo apt install fonts-noto-cjk
                        

                        und dann noch

                        sudo apt install fonts-arphic-uming fonts-arphic-ukai
                        

                        installiert und danach neugestartet

                        danach die datei nochmal bearbeitet und das hinzugefügt "操作成功"

                        danach hat er aus so angenommen und das script läuft wieder. danke

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        756
                        Online

                        32.0k
                        Users

                        80.6k
                        Topics

                        1.3m
                        Posts

                        18
                        91
                        18976
                        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