Simple web api to serve data from Hoymiles DTUs and the HMS-XXXXW-2T HMS microinverters in json format. It uses the hoymiles-wifi python library to retrieve data from the DTU.
Prerequesite: The DTU needs to be registered in your local network (wifi).
Disclaimer: This project is not affiliated with Hoymiles. It is an independent project developed to provide tools for interacting with Hoymiles HMS-XXXXW-2T series micro-inverters featuring integrated WiFi DTU. Any trademarks or product names mentioned are the property of their respective owners.
pip install -r requirements.txt
python3 app.py
Access via http://localhost:5000/DTUBI-<DTU_serial_number>1 to get a list of all available endpoints.
- /getRealDataNew/DTUBI-<DTU_serial_number>
- /getRealDataHms/DTUBI-<DTU_serial_number>
- /getRealData/DTUBI-<DTU_serial_number>
- /getConfig/DTUBI-<DTU_serial_number>
- /networkInfo/hoDTUBI-<DTU_serial_number>
- /appInformationData/DTUBI-<DTU_serial_number>
- /appGetHistPower/DTUBI-<DTU_serial_number>
- /getInformationData/DTUBI-<DTU_serial_number>
- /heartbeat/DTUBI-<DTU_serial_number>
docker build --tag hoymiles-web-api .
docker run -d -p 5000:5000 --name hoymiles-web-api hoymiles-web-api
Access via http://localhost:5000/DTUBI-<DTU_serial_number>
docker save hoymiles-web-api | gzip > build/hoymiles-web-api.tar.gz
A special thank you for the inspiration to:
Footnotes
-
If the DTU hostname DTUBI-<DTU_serial_number> does not work use the DTU ip address instead. ↩