tolwi / hassio-ecoflow-cloud

EcoFlow Cloud Integration for Home Assistant
369 stars 62 forks source link

More information about Ecoflow #136

Open moifort opened 1 year ago

moifort commented 1 year ago

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.

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 hope it will help the communauty !

mattwells commented 1 year ago

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

JokaDev commented 1 year ago

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

moifort commented 1 year ago

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

JokaDev commented 1 year ago

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...