Application for Must EP30 Pro/EP3000 Plus Charger/Inverter, that allows to integrate it into Home Assistant using MQTT or Telegraf/Influxdb/Grafana.
Install dependencies using pip
:
$ pip install paho-mqtt pyserial
$ git clone https://github.com/darkmind/ep30_pro_mqtt.git
$ cd ep30_pro_mqtt/
Open configuration.yaml
and update serial port, discharge_config,
charge_config. Update 'backend' option and appropriate section, 'mqtt' or
'influx'.
Note: You may need to run script with admin/root privileges.
For EP30 Pro:
$ python mqtt.py [-v] [-h]
Install dependencies using pip
:
$ pip3 install pymodbus
For 'mqtt' backend:
$ pip install paho-mqtt pyserial
For 'influx' backend:
$ pip install 'influxdb-client[ciso]'
$ git clone https://github.com/darkmind/ep30_pro_mqtt.git
$ cd ep30_pro_mqtt/
Open configuration.yaml
and update serial port, discharge_config,
charge_config. Update 'backend' option and appropriate section, 'mqtt' or
'influx'.
Create user/token/bucket in Influx db.
if you use telegraf - create configuration file, the example in https://github.com/darkmind/ep30_pro_mqtt/blob/main/grafana/telegraf.conf
You can find Grafana dashboard in https://github.com/darkmind/ep30_pro_mqtt/blob/main/grafana/grafana_home_dashboard.json
- Copy
ep30.service
to systemd configuration folder
$ sudo cp ./ep30.service /etc/systemd/system/
- Open file with text editor
$ sudo nano /etc/systemd/system/ep30.service
-
If Mosquitto service not running at same server, remove
mosquitto.service
fromAfter
option of[Unit]
section. -
Update
WorkingDirectory
andExecStart
with proper path to code. -
If your device is Ep3000 Plus uncomment appropriate section and comment ExecStart for mqtt.py
-
Start and enable service
$ sudo systemctl start ep30
$ sudo systemctl enable ep30
Code is licensed under the terms of the MIT License (see the file LICENSE).