tolwi / hassio-ecoflow-cloud

EcoFlow Cloud Integration for Home Assistant
281 stars 47 forks source link

Question: Does this integration communicate local with the Ecoflow or via internet? #221

Closed Peronia closed 3 months ago

Peronia commented 3 months ago

Hi,

I'm new in the Ecoflow system, my River 2 Max is on the way :D I don't understand if this integration communicate local (via MQTT) or over the internet with the Ecoflow powerstation (in general, not a specific one). So my point of understanding is:

Is that correct? I can imagine that the other way could be to ask always the Ecoflow servers for new data. This assumes that the MQTT data somehow gets from the powerstation to the Ecoflow servers. But it's not really clear to my how this could happen.

Nid01 commented 3 months ago

Hello Peronia, when you are using the smartphone app from EcoFlow then the EcoFlow products communicate either with the EcoFlow servers via MQTT and their servers with the app on your smartphone or directly via Bluetooth when your smartphone or the RIVER 2 Max in your case has no internet connection via WiFi.

Peronia commented 3 months ago

Okay @Nid01, thanks. My powerstation arrived yet ant yeah, this integration is complete online, like: powerstation -> (smartphone via Bluetooth) -> Ecoflow servers -> Home assistant So I think it's more a replacement for the app in HA (thats not bad).

But I'm looking to ask the powerstation local if I have an outage (mainly ask if the accu get used). For that I can't use this integration, maybe other network devices have problems too (they mustn't be located in my household). I found a script to extract the MQTT credentials, is that used to comunicate local with the powerstation or onlne over the ecoflow servers (like this integration)?

Nid01 commented 3 months ago

I found a script to extract the MQTT credentials, is that used to comunicate local with the powerstation or onlne over the ecoflow servers (like this integration)?

The credentials are used to communicate with the EcoFlow servers like this integration does. There are two repositories on GitHub concerning the Bluetooth communication to the EcoFlow devices, but I have no clue how on how difficult it is to set this up. https://github.com/avaver/ecoflow-ble https://github.com/nielsole/ecoflow-bt-reverse-engineering

Peronia commented 3 months ago

Okay thanks. Makes sense, otherwise anyone could query the values with the serial number.