tolwi / hassio-ecoflow-cloud

EcoFlow Cloud Integration for Home Assistant
353 stars 60 forks source link

Failed to connect to MQTT: bad username or password #31

Closed HHoppenstock closed 1 year ago

HHoppenstock commented 1 year ago

Since 4:45 am the integration stopped working and throws the credentials error. The credentials work fine in the official Ecoflow app( android and iOS).

EvgveneSV commented 1 year ago

Same problem, no data since 4:41 UTC (Delta 2, android ecoflow app work fine)

raphaelsavina commented 1 year ago

Looks like Ecoflow API is not working.

A call to https://api.ecoflow.com/auth/login with Postman returns:

{
    "code": "405",
    "message": "Method Not Allowed"
}
Katzi1986 commented 1 year ago

API is working, try with API tester was successful.

Screenshot_20230315-111006-186~2

Screenshot_20230315-111319-550

But same error as mentioned above: "Failed to connect to MQTT - bad username or password" for my Delta 2 in Home Assistant

nikowait commented 1 year ago

exactement la même chose ...depuis ce matin sur mon river 2max

StefanWeyh commented 1 year ago

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt Source: custom_components/ecoflow_cloud/mqtt/ecoflow_mqtt.py:232 Integration: Ecoflow-Cloud (documentation, issues) First occurred: 13:19:49 (11 occurrences) Last logged: 13:30:54

Failed to connect to MQTT: bad username or password

demey commented 1 year ago

Same problem here. [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Failed to connect to MQTT: bad username or password

joejeff123 commented 1 year ago

You can get it back working by adding the following client id to MQTT:

ANDROID_UUID.randomUUID().toString().toUpperCase(Locale.ROOT)_userId

StefanWeyh commented 1 year ago

sorry but where do i put that? I'm new to HomeAssistant. Excuse the bad english. come from Germany

nikowait commented 1 year ago

oui merci met ou rajoutons ca je suis nouveau aussi sur maison assistant

Cette erreur provient d'une intégration personnalisée

Logger: custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt Source: custom_components/ecoflow_cloud/mqtt/ecoflow_mqtt.py:232 Integration: EcoFlow-Cloud (documentation, issues) First occurred: 12:19:35 (142 occurrences) Last logged: 16:56:51

Failed to connect to MQTT: bad username or password

raphaelsavina commented 1 year ago

You can get it back working by adding the following client id to MQTT:

ANDROID_UUID.randomUUID().toString().toUpperCase(Locale.ROOT)_userId

I would assume in ecoflow_mqtt.py but where did you added it, sharing a code snippet would be fantastic as I'm not that good in Python.

Thanks Raphaël

nikowait commented 1 year ago

moi aussi la je cherche met je trouve pas

tolwi commented 1 year ago

try v0.8.4 (@joejeff123 thanks!)

nikowait commented 1 year ago

ca fonctionne?

raphaelsavina commented 1 year ago

Thank you @tolwi and @joejeff123 indeed v0.8.4 resolved the issue. Raphaël

nikowait commented 1 year ago

oui moi aussi nickel!!! Merci@tolwiet@joejeff123

StefanWeyh commented 1 year ago

Thank you @tolwi and @joejeff123 Now it works 🥳

HHoppenstock commented 1 year ago

try v0.8.4 (@joejeff123 thanks!)