berezhinskiy / ecoflow_exporter

Prometheus exporter for EcoFlow portable power stations
GNU General Public License v3.0
184 stars 27 forks source link

Delta Pro Ultra - has no user_name = response["data"]["user"]["name"] #51

Open muenchris opened 5 months ago

muenchris commented 5 months ago

I do see a valid token in the response but the data/user/name does not exist in the JSON. There is: user_name = response["data"]["user"]["email"]

HACS is using: user_name = response["data"]["user"].get("name", "")

berezhinskiy commented 5 months ago

@muenchris Thanks for reporting. I'll fix it

muenchris commented 4 months ago

Unfortunately the DPU needs a lot more work. it uses Protobuf instead of cleartext JSON and is similar to the Powerstream. The best research on this is here: https://github.com/foxthefox/ioBroker.ecoflow-mqtt