hassio-ecoflow-cloud icon indicating copy to clipboard operation
hassio-ecoflow-cloud copied to clipboard

More information about Ecoflow

Open moifort opened this issue 2 years ago • 4 comments

Hello 👋🏻,

First, thank you so much for your repo, I learned a lot about how we can have access Ecoflow product.

I am trying to make a web application (Browser only) with NuxtJs (Vue3). And I found some interesting information to share.

  • I succeeded fetching data from Smart Plug used by a Powerstream. Below the proto:
syntax = "proto3";


message Message {
    message SmartPlug {
        message CurrentPower {
            optional uint32 invInpuWatts = 10; // Energy consumption from the plug in Watts
        }
        optional CurrentPower current_power = 1;
    }
    optional SmartPlug smart_plug = 1;
}

  • I try to use the MQTT over WebSocket and I found the URL working with Ecoflow: wss://mqtt-e.ecoflow.com:8084/mqtt
  • Now I would like to connect my app directly on my local network instead of Ecoflow, so my application can work offline

I hope it will help the communauty !

moifort avatar Aug 27 '23 19:08 moifort

Hi moifort.

This repo does have the Protobuf that Ecoflow uses to manage the PowerStream and based on what I understand they use the same Protobuf messages for their Smart Plugs as well. If not they may at least be able to help you work out what they are using.

As for local offline control I'm not aware of a way at this time but if you find something I would love to know about it.

~Matt

mattwells avatar Aug 27 '23 22:08 mattwells

Hi, the Smart Plugs sends offline data to the PowerStream about the current energy consumption. Does anyone know how they communicate?

JokaDev avatar Aug 30 '23 08:08 JokaDev

@JokaDev How do you know that? Maybe we should analyze the network, but I don't have the skills.

moifort avatar Aug 30 '23 08:08 moifort

When I go offline I can see on the battery display that the PowerStream is still supplying the correct voltage of the appliance connected to the SmartPlug. I tried using Wireshark to analyze the network traffic but so far I can't figure anything out yet. But I'm not an expert in that area...

JokaDev avatar Aug 30 '23 08:08 JokaDev