-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PowerOcean nicht mehr auslesbar #16
Comments
Moin! War schon auf dem Weg das ebenfalls zu melden. Bin gerne beim debuggen oder beheben behilflich, selbst leider (evtl. zu) wenig Erfahrungen mit HA-Integrationen, schaue aber nach Feierabend mal drauf. Bin sehr an einem schnellen Fix interessiert :) |
Stimmt der Login funktioniert bei mir auch noch, ich habe die Vermutung das sich in der API irgendwas geändert hat weil die App jetzt auch umstrukturiert worden ist mit diesen Räumen etc. |
Gleiches Problem bei mir. Keinerlei Entitäten nach Neuinstallation der Integration. |
Ein |
The integration has not provided me with any valid data since almost exactly 00:00UTC this morning. One suspects that EcoFlow introduced a change. |
@yanbec strange things happened 😮 |
habe auch das gleiche problem. heute eingerichtet - keine daten - keine Entitäten. Ecoflow PowerOcean
|
Als schneller Workaround lässt sich das Problem wie folgt beheben. / As a quick workaround, the problem can be solved as follows.
Folgende Zeilen anpassen: Zeile 56 / Line 56: headers = {"lang": "en_US", "content-type": "application/json"} ändern in / change to headers = {"lang": "en_US", "content-type": "application/json", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0"} Zeile 118 / Line 118: headers = {"authorization": f"Bearer {self.token}"} ändern in / change to headers = {"authorization": f"Bearer {self.token}", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0"} Anschließend HA neustarten und schon sollte es frische Daten geben. / Then restart HA and you should have fresh data. @yanbec Thanks for troubleshooting |
@FabianMartin habe ich bei mir so getestet, bekomme aber leider jetzt 401 Error. |
Copy & Paste Fehler von mir. Ich habe den Code für Zeile 118 oben korrigiert. |
Sehr cool! Vielen Dank @FabianMartin ich bekomme auch wieder Werte mit dem Fix! |
Danke, damit läuft es! 👍 |
DANKE DIR! |
I can fix it. It seems that it is now necessary to specify a user agent in the header. I should be able to do it this evening. Thanks @yanbec |
danke für deinen einsatz. geht dritz änderung noch nicht - warte dann mal bis zum fix. Traceback (most recent call last): |
Sure thing :) Thank you! That goes for the integration in general too, I still hope EF will allow us a local connection to our devices at some point, until then we'll have to work with what we've got. |
@ALL thanks for the quick fix. However, the user-agent definition will depend on the OS. For me, on macos it works with: "user-agent": "Mozilla / 5.0 (Macintosh; Intel Mac OS, wie Gecko) Chrome/90.0.4430.212 Safari/537,36" |
@jdammers It's just the user agent used for the request from the integration to EF, so your OS doesn't matter. All that matters is EF accepting the set user agent, which would probably best be something like "HomeAssistant powerocean integration" .. - if that works. As @niltrip is on it I guess we're good for now and the update comes in soon :) if there's any help needed, feel free to ping me of course |
Ich habe zuerst den Code geändert - leider nix. dann alles deaktiviert und neu installiert . der Power ocean wird gefunden aber es werden weiterhin keine Daten angezeigt . trotzdem danke ! |
Die Fehlermeldung zeigt ein anderes Problem. In der Rückgabe scheinen die Daten für die drei Phasen zu fehlen. Dadurch kommt es zu dem Fehler. Kann es sein, dass es sich bei deinem Modell um das Einphasige handelt? |
https://homebattery.ecoflow.com/de/products/PowerOcean-DC-Fit Ich glaube wir sind auf dem richtigen Weg. Habe einen power ocean - aber die Type dc fit . Da hängt der Speicher zw strings und wechselrichter . Ich glaube da müsste man die api anpassen .Liebe Grüße Andreas |
Hi, you can generate a response an share it with us. Generating a response is easy: activate debug and then reload the integration. The log file should then contain the complete answer. It should start with [custom_components.powerocean] {'code': '0', 'message': 'Success',... Copy the string ( within the curly brackets {} ) into an editor and format it a little and save it as json. I like to use notepad++ and a plugin “JsonTools”. Remember to remove the serial numbers and other data related to you, then you can provide the file. Best regards |
System Health details
System Information
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Checklist
Describe the issue
Hallo @niltrip seit dem EcoFlow seine App geupdatet hat, bekomme ich keine Daten mehr vom PowerOcean.
Habe das Gerät bereits aus der Integration gelöscht und neu hinzugefügt, es kommen gar keine Entitäten mehr an.
Kannst du das Problem nachvollziehen / reproduzieren ?
Reproduction steps
...
Debug logs
Diagnostics dump
No response
The text was updated successfully, but these errors were encountered: