8000 GitHub - dlk3/ecoflow-hacks: My hacks integrating an EcoFlow Delta Pro into my systems management tools
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dlk3/ecoflow-hacks

Repository files navigation

My EcoFlow Delta Pro Hacks

Log selected Delta Pro metrics into a MariaDB database and control AC vs solar battery charging

  • ecoflow-logger Python script that uses:
    • ecoflow.py EcoFlow API module adapted from the vwt12eh8/hassio-ecoflow GitHub project
    • smartthings.py SmartThings API module
    • ecoflow-logger.timer Systemd timer that triggers ecoflow-logger.service once a minute
    • ecoflow-logger.service Systemd service file that executes the ecoflow-logger script

The ecoflow.py API module uses the reactivex module which is not available in the Fedora repositories I use. I use the following commands to create a virtual Python environment in which to run this script:

cd /opt/ecoflow 
python -m venv ecoflow-python
/opt/ecoflow/ecoflow-python/bin/pip install reactivex requests PyMySQL mysqlclient

The logger script can now be run with this command:

/opt/ecoflow/ecoflow-python/bin/python /opt/ecoflow/ecoflow-logger

Show the status of the Delta Pro on a Nagios dashboard

A Nagios plugin for the Delta Pro that queries the MariaDB database for status:

  • check_ecoflow Python script

Grafana dashboard using metrics from the MariaDB database

  • grafana.json

About

My hacks integrating an EcoFlow Delta Pro into my systems management tools

Resources

License

Stars

Watchers

Forks

Languages

0