Skip to content

Zero Export Script for Hoymiles Inverters by using AhoyDTU / OpenDTU and Tasmota Smart Meter inferface / Shelly 3EM / SHRDZM / Emlog

License

Notifications You must be signed in to change notification settings

saschaabraham/HoymilesZeroExport

 
 

Repository files navigation

Hoymiles Zero Export Control / Hoymiles Nulleinspeisung

Introduction

Hoymiles Zero Export is a Python script for managing the power of the Hoymiles inverters to reduce the amount of the generated power to the grid. Based on the current power output, the script can automatically adjust the export limit of the inverter, allowing for optimal energy management.

Prerequisites

Before running this script make sure you have a powermeter which outputs a negative power value in case of returning to the grid. For example: the Holley DTZ541 shows -150W if the solar inverter is overproducing. This script does not use MQTT, it's based on webapi communication.

Supported Smart-Meter Modules:

Supported DTU and Inverters

  • Ahoy - this script is developed with AHOY and therefore i recommend it
  • OpenDTU
  • Hoymiles HM-Series Inverter (since V1.7 multiple inverters are supported) like 1-in-1, 2-in-1 or 4-in-1

Examples in Home-Assistant:

qkeo2J4U IMG_E0136

Linux installation

Get the code and unpack the archive:

wget https://github.com/reserve85/HoymilesZeroExport/archive/refs/heads/main.zip
unzip main.zip
rm main.zip
mv HoymilesZeroExport-main/ HoymilesZeroExport/
cd HoymilesZeroExport/

launch installscript to install python and create zero export service

sudo chmod +x install.sh
sudo ./install.sh

Edit your configuration, save with ctrl + s, exit with ctrl + x

sudo nano HoymilesZeroExport_Config.ini

Restart the service after modified configuration or script

sudo ./restart.sh

Showing the output-log

sudo journalctl -u HoymilesZeroExport.service -n 20000 -e -f

If you really don´t wont the service anymore, just uninstall it

sudo ./uninstall_service.sh

Windows installation

Get Python 3 (download is available at https://www.python.org/) and then install the module "requests":

pip3 install requests

Now you can execute the script with python.

Special thanks to:

Donate

paypal

Please support me if you like this project by spending me a coffee instead of giving away your electricity.

About

Zero Export Script for Hoymiles Inverters by using AhoyDTU / OpenDTU and Tasmota Smart Meter inferface / Shelly 3EM / SHRDZM / Emlog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.4%
  • Shell 6.6%