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.
- Create virtual environment and install dependencies
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt- Create
.envfile 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>- Create
config.jsoninconfigssubfolder
{
"devices": [{
"type": "powerstream",
"serial": "serial-number of the powerstream device"
}]
}
- Create directory for logging
mkdir logs- Run:
./index.py