/ecoflow

Provides access to ecoflow devices via the homie MQTT convention

Primary LanguagePython

ecoflow MQTT client

Connect to ecoflow MQTT server to communicate with an ecoflow device (currently only powerstream microinverters, smartplugs and delta max are supported). Creates a homie device for the ecoflow devices to be able to integrate them into smarthome systems with homie support.

start

  1. Create virtual environment and install dependencies
python -m venv .venv
. venv/bin/activate
pip install -r requirements.txt
  1. Create .env file with credentials to login
EF_USERNAME=<ecoflow account username (email address)>
EF_PASSWORD=<ecoflow account password>
HOMIE_MQTT=<mqtt server ip/hostname>
HOMIE_MQTT_PORT=<mqtt server port>
HOMIE_MQTT_USERNAME=<mqtt username if your mqtt broker needs credentials>
HOMIE_MQTT_PASSWORD=<mqtt password if your mqtt broker needs credentials>
  1. Create config.json in configs subfolder
{
    "devices": [{
        "type": "powerstream",
        "serial": "serial-number of the powerstream device"
    }]
}
  1. Create directory for logging
mkdir logs
  1. Run: ./index.py