tolwi / hassio-ecoflow-cloud

EcoFlow Cloud Integration for Home Assistant
350 stars 58 forks source link

Ecoflow Blade support #47

Open InToSSH opened 1 year ago

InToSSH commented 1 year ago

Hi, would it be possible to add support for the Blade lawn-mower? Based on your code I figured out how to connect to Ecoflow MQTT server and I sniffed most of the messages. The topics are the same as for the rest of the devices.

In the /app/device/property/ topic, you can find most of the info, but it switches between multiple message types, most of the time you get a heartbeat with info like current working time, battery, rain, etc.. and sometimes the message is different with signal info and gps location.

I have also sniffed most of the get/set topic messages going through various options in the app.

If you would be interested I could send them to you. I unfortunately don't have a deeper knowledge of Python and it would probably take me a long time to implement myself.

Psych0Dev commented 1 year ago

Hi, would it be possible to add support for the Blade lawn-mower? Based on your code I figured out how to connect to Ecoflow MQTT server and I sniffed most of the messages. The topics are the same as for the rest of the devices.

In the /app/device/property/ topic, you can find most of the info, but it switches between multiple message types, most of the time you get a heartbeat with info like current working time, battery, rain, etc.. and sometimes the message is different with signal info and gps location.

I have also sniffed most of the get/set topic messages going through various options in the app.

If you would be interested I could send them to you. I unfortunately don't have a deeper knowledge of Python and it would probably take me a long time to implement myself.

Are you still interested in this "connection" to blade mower because I'm trying to do something you said, but I'm lost in their api because they have no document on how to use the api

InToSSH commented 1 year ago

@Psych0Dev ahoj :) well it is an unoffical way, so it is not documented anywhere, I was just able to connect to their MQTT server by doing manually what this integration does to connect. Then when I was receiving all the messages on MQTT I just found the right messages by trial and error. So basically if you repeat the same messages that the app sends, you can control the robot from HA as if it was done through your Ecoflow app.

Psych0Dev commented 1 year ago

@Psych0Dev ahoj :) well it is an unoffical way, so it is not documented anywhere, I was just able to connect to their MQTT server by doing manually what this integration does to connect. Then when I was receiving all the messages on MQTT I just found the right messages by trial and error. So basically if you repeat the same messages that the app sends, you can control the robot from HA as if it was done through your Ecoflow app.

Do you have Discord?

foxthefox commented 7 months ago

can you post the collected data?

InToSSH commented 7 months ago

@foxthefox sure, here you go

get_autoTaskGet.txt get_getDndInfo.txt get_inquire.txt get_latestQuotas.txt get_mapPackageTotal.txt get_regInfo.txt set_controlCmd.txt set_lights_on.txt set_setDeviceName.txt set_setEdgeParam.txt set_setEdgeParam_off.txt set_setEdgeParam_on.txt set_setRainDelayInfo_on.txt set_setWorkMode.txt set_setWorkMode2.txt

This is the state from May 2023, I already got rid of the machine, because it was terrible, so I cannot fetch the current data, but they should mostly be the same or you can sniff them yourself by using the mobile app.

foxthefox commented 7 months ago

Thanks a lot, I will have a look into it. Even it might not be the newest fw, it is a starting point