A Home Assistant community member has released version 0.9.0 of a custom integration for the Hager flow energy management system. It talks to the XEM470 Energy Manager directly over Modbus TCP on your local network, polling every 5 seconds. Reading and most control stay local. The new part is an optional cloud layer, off by default, for a few settings Hager does not expose over Modbus.
Project details are on the Home Assistant community thread and the GitHub repository. The author describes the project as young and is asking for feedback.
What it does
- Base system: PV generation, grid import and export, external metering and total house consumption.
- Battery (optional): state of charge plus charge and discharge power.
- Wallbox (optional): connection status and charging power for Hager Witty flow, solar and plus units. A Boost Mode switch is also listed.
- Energy Dashboard: kWh sensors are derived automatically, so no manual helper entities are needed.
- Heat pumps: SG Ready interfaces are discovered and shown as readable states.
- Setup: a config flow with no YAML, in English, German, French and Dutch. You add the controller IP first, and Modbus works immediately.
The optional cloud layer
Enabling it means logging in with your myHager account. It adds charging priority, battery-to-car discharge, per-wallbox charging strategy, a discharge-down-to-SoC limit and the emergency power reserve. The last two are coupled so the limit never drops below the reserve. The author calls this layer experimental and unofficial, and it can be turned off at any time. If the cloud drops briefly, those entities hold their last state, and only a longer outage makes them unavailable. Modbus keeps running either way.
What to check before installing
- Modbus must be enabled in the Hager flow app. The README says that if the option is not visible, you may need to contact Hager Support to have it unlocked. Do that first, since everything else depends on it.
- Home Assistant 2025.12 or newer is required.
- Port 502 must be reachable from Home Assistant. If you run VLANs, check your firewall rules.
- Give the controller a static IP. The README recommends it to avoid lost connections.
- Hager hardware only. Auto-discovery works for original Hager devices connected directly to the system. Listed examples are Hager sub-meters, Witty wallboxes, XEM1200 inverters and XEM3x00 and XEM4x00 storage.
- Writes are slow. The README says the Boost switch (register 4631) can take up to about 20 seconds to be confirmed, and the integration adds a 30-second click protection. Do not build automations that expect instant confirmation.
What it means for an installed system
If you already have a Hager flow system, this is a low-risk way to get your solar, battery and wallbox numbers into Home Assistant without relying on a vendor cloud for daily monitoring. Because the cloud layer is opt-in, you can start with Modbus only and see whether the extra controls are worth a myHager login. For anything that must keep working, such as charging behaviour you depend on every day, lean on the local Modbus entities and treat the cloud controls as a convenience.
It is a custom integration from one developer, so expect rough edges and check the repository for open issues before relying on it. We have not run it ourselves. If you are quoting a new install, ask Hager whether Modbus access is available on that unit before promising Home Assistant integration to a client.
