Hi,
I’ve been exploring ways to integrate my solar panel setup into Home Assistant — specifically to monitor production and have the ability to turn the panels on and off.
After some experimentation, I ended up with two very experimental custom integrations that are currently working with my setup (7 panels, 2 microinverters, and 1 Hoymiles DTU Pro-S):
- Direct Modbus TCP integration over Wi-Fi:
GitHub - wil-lem/ha-hoymiles-modbus-tcp
This connects directly to the DTU over your local network using Modbus TCP. - Cloud-based integration via Hoymiles S-Cloud:
GitHub - wil-lem/ha-hoymiles-s-cloud: Home assistant add-on for Hoymiles S-Cloud
This retrieves data and allows control through the official cloud API.
Important note:
Both solutions require the DTU to have an active internet connection, even for local communication. This feels at odds with the Home Assistant philosophy of local control and privacy — and may even pose security risks.
Feedback, testing, and contributions are very welcome!