Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/peuter/ecoflow

Provides access to ecoflow devices via the homie MQTT convention
https://github.com/peuter/ecoflow

ecoflow homie mqtt powerstream smarthome

Last synced: 24 days ago
JSON representation

Provides access to ecoflow devices via the homie MQTT convention

Awesome Lists containing this project

README

        

# 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](https://homieiot.github.io/) 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
```shell
python -m venv .venv
. venv/bin/activate
pip install -r requirements.txt
```

2. Create `.env` file with credentials to login
```dotenv
EF_USERNAME=
EF_PASSWORD=
HOMIE_MQTT=
HOMIE_MQTT_PORT=
HOMIE_MQTT_USERNAME=
HOMIE_MQTT_PASSWORD=
```

3. Create `config.json` in `configs` subfolder
```json
{
"devices": [{
"type": "powerstream",
"serial": "serial-number of the powerstream device"
}]
}

```
4. Create directory for logging
```shell
mkdir logs
```

5. Run: `./index.py`