tolwi / hassio-ecoflow-cloud

EcoFlow Cloud Integration for Home Assistant
404 stars 73 forks source link

Ecoflow generator #42

Open cool338 opened 1 year ago

cool338 commented 1 year ago

Hello, please also added generator?

I am happy to give my object as an attempt.

Appkey and secretKey Is available.

crwblade87 commented 11 months ago

Hello and nice work, yes please make Support for SmartGenerator.

foxthefox commented 10 months ago

Can you provide the diagnostic dump for the generator? something similiar like here: https://github.com/tolwi/hassio-ecoflow-cloud/issues/170#issuecomment-1877109010

cool338 commented 10 months ago

How exactly do you get the Diagnostic Dump?

foxthefox commented 10 months ago

you have to configure the generator

In integration view click in the grey shaded area

Bildschirmfoto 2024-01-18 um 14 11 51

click "add entry" Bildschirmfoto 2024-01-18 um 14 12 14

complete the popup with your information. as the generator is not available in the dropdown, choose deltamax or delta2max for the moment.

then navigate to the device and click on "download diagnostics"

Bildschirmfoto 2024-01-18 um 14 09 00

cool338 commented 10 months ago

Here is the diagnosis data.

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2024.1.3", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.11.6", "docker": true, "arch": "aarch64", "timezone": "Europe/Berlin", "os_name": "Linux", "os_version": "6.1.63-haos-raspi", "supervisor": "2023.12.1", "host_os": "Home Assistant OS 11.4", "docker_version": "24.0.7", "chassis": "embedded", "run_as_root": true }, "custom_components": { "zha_toolkit": { "version": "v1.1.8", "requirements": [ "pytz" ] }, "nodered": { "version": "3.1.3", "requirements": [] }, "ecoflow": { "version": "2.1", "requirements": [ "reactivex" ] }, "powercalc": { "version": "v1.9.17", "requirements": [ "numpy>=1.21.1" ] }, "ecoflow_cloud": { "version": "0.13.1", "requirements": [ "paho-mqtt==1.6.1", "reactivex==4.0.4", "protobuf>=4.23.0" ] }, "nuki_ng": { "version": "0.2.1", "requirements": [] }, "localtuya": { "version": "5.2.1", "requirements": [] }, "hacs": { "version": "1.33.0", "requirements": [ "aiogithubapi>=22.10.1" ] } }, "integration_manifest": { "domain": "ecoflow_cloud", "name": "Ecoflow-Cloud", "codeowners": [ "@tolwi" ], "config_flow": true, "documentation": "https://github.com/tolwi/hassio-ecoflow-cloud", "iot_class": "cloud_push", "issue_tracker": "https://github.com/tolwi/hassio-ecoflow-cloud/issues", "requirements": [ "paho-mqtt==1.6.1", "reactivex==4.0.4", "protobuf>=4.23.0" ], "version": "0.13.1", "is_built_in": false }, "data": { "device": "DELTA_MAX", "params": {}, "set": [], "set_reply": [], "get": [], "get_reply": [], "raw_data": [] } }

foxthefox commented 10 months ago

Thanks, unfortunately not so informative as expected. Can you repeat the data extraction after the following sequence

cool338 commented 10 months ago

The code has not changed.

I started the generator and switched it from eco-mode to performance mode.

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2024.1.4", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.11.6", "docker": true, "arch": "aarch64", "timezone": "Europe/Berlin", "os_name": "Linux", "os_version": "6.1.63-haos-raspi", "supervisor": "2023.12.1", "host_os": "Home Assistant OS 11.4", "docker_version": "24.0.7", "chassis": "embedded", "run_as_root": true }, "custom_components": { "zha_toolkit": { "version": "v1.1.8", "requirements": [ "pytz" ] }, "nodered": { "version": "3.1.3", "requirements": [] }, "ecoflow": { "version": "2.1", "requirements": [ "reactivex" ] }, "powercalc": { "version": "v1.9.17", "requirements": [ "numpy>=1.21.1" ] }, "ecoflow_cloud": { "version": "0.13.1", "requirements": [ "paho-mqtt==1.6.1", "reactivex==4.0.4", "protobuf>=4.23.0" ] }, "nuki_ng": { "version": "0.2.1", "requirements": [] }, "localtuya": { "version": "5.2.1", "requirements": [] }, "hacs": { "version": "1.33.0", "requirements": [ "aiogithubapi>=22.10.1" ] } }, "integration_manifest": { "domain": "ecoflow_cloud", "name": "Ecoflow-Cloud", "codeowners": [ "@tolwi" ], "config_flow": true, "documentation": "https://github.com/tolwi/hassio-ecoflow-cloud", "iot_class": "cloud_push", "issue_tracker": "https://github.com/tolwi/hassio-ecoflow-cloud/issues", "requirements": [ "paho-mqtt==1.6.1", "reactivex==4.0.4", "protobuf>=4.23.0" ], "version": "0.13.1", "is_built_in": false }, "data": { "device": "DIAGNOSTIC", "params": {}, "set": [], "set_reply": [], "get": [], "get_reply": [], "raw_data": [] } }

foxthefox commented 10 months ago

Hmm, that’s not so nice. Somehow the generator seems to communicate differently with the app. Would it be possible that we have some trials with node-red?

cool338 commented 10 months ago

Gern Können wir auch per Email oder per Direkt Nachrichten schreiben Node-Red hab ich drauf.

Hmm, das ist nicht so schön. Irgendwie scheint der Generator anders mit der App zu kommunizieren. Wäre es möglich, dass wir einige Versuche mit Node-Red haben?

foxthefox commented 10 months ago

Sehr gut, dann muss ich mal ne kleine Anleitung zusammenstellen. Bin grad unterwegs.

foxthefox commented 10 months ago

Anleitung ist hier: https://gist.github.com/foxthefox/11ac35433c228085a8f5e25d5651632a

Nach Verbindung zum MQTT-Broker sollten Meldungen auftauchen.

Hoffe das funktioniert jetzt

foxthefox commented 7 months ago

@cool338 Ich habe in meinem iobroker adapter ein Gateway für Homeassistant eingebaut. Dies nutzt die Discovery Funktion im MQTT service. Das funktioniert für die Delta Max sehr gut und sollte für andere Geräte auch funktionieren. In dem iobroker Adapter ist auch der Generator als Gerät mit aufgenommen. D.h. hiermit wäre zwar die eigentliche HACS integration zwar nicht getan, aber es gibt die Werte in HA. Man muß zwar noch eine iobroker Instanz ans laufen bringen, das ist aber sehr einfach. Falls interessant, hier das Adapter Repo: https://github.com/foxthefox/ioBroker.ecoflow-mqtt