vwt12eh8 / hassio-ecoflow

EcoFlow Portable Power Station Integration for Home Assistant
MIT License
240 stars 37 forks source link

Circumvent online requirement for local API access #92

Open nxxxse opened 1 year ago

nxxxse commented 1 year ago

The last comments on https://github.com/vwt12eh8/hassio-ecoflow/issues/69#issuecomment-1636887000 got me thinking. Even when EcoFlow is kind enough to "push" 3.0.2.21 on individual request, it does not give us full offline control.

I guess we need to put more effort into it if we want to have that.

From the changelog we can conclude that most of the work is done by the main firmware. The Wi-Fi firmware only does Bluetooth, Wi-Fi and Internet connectivity. So we can either disable that module somehow and directly speak to the chip with the main firmware on it. The hope would be that the protocol is similar or identical to what is already implemented. Or if the Wi-Fi module is something common like a ESP32, we could even write a Open Source firmware for that. I did a quick check. At least I don’t know/have found ESP32 modules like WROOM with the chip pin layout of the picture below. Finding an ESP32 in the DELTA Pro would have been my hope.

Not sure when I come around to teardown my DELTA Pro again to see what can be done. I wanted to create this issue to keep the other issues focused.

Picture of the Wi-Fi module: image Source: https://youtu.be/lagxSrPeoYg?t=968

cbiffle commented 1 year ago

FWIW, on the River Pro at least it's definitely an Espressif wifi chip -- probably an ESP32 -- based on the MAC address.