Home Assistant integration for gridX-based energy management systems.
The gridX platform powers energy managers sold under many white-label brands. This integration works with all of them — pick your portal in the config flow:
1KOMMA5°, EFA-Home, empavo, enviaM, E.ON FEH (Netherlands), E.ON Home Manager (default), EVM (Energieversorgung Mittelrhein), EWV (Energie- und Wasser-Versorgung), Giedorf, Greenblocks, Heimwatt, hemos, IBC HomeOne Hub (IBC Solar), KlarSolar, LEW (Lechwerke), Octopus Energy, PV Green, Stadtwerke Norderstedt, upVolt, Viessmann GridBox (legacy — Viessmann realm shut down end of 2025), Zero 1.
All portals share the same api.gridx.de backend; only the Auth0 client_id / realm differs per OEM. New portals are auto-detected weekly by CI from the live gridX SPA bundle.
- Live energy data polling (60s intervals)
- Automatic device creation for batteries, heat pumps, EV chargers, and heaters
- Proper state_class metadata for HA Energy dashboard compatibility
- SG Ready state monitoring for heat pumps
- Cumulative grid meter readings (import/export)
- Exponential backoff on API errors (respects the API)
- Open HACS in Home Assistant
- Search for "gridX Energy Management"
- Click "Download"
- Restart Home Assistant
Copy the custom_components/gridx folder to your Home Assistant custom_components directory.
- Go to Settings → Devices & Services → Add Integration
- Search for "gridX"
- Pick your portal from the Provider dropdown, then enter your email and password
- Open HACS → Integrations → gridX Energy Management
- Click "Update information" to refresh repository data
- Click "Redownload" and confirm
- Go to Settings → System → a "Restart required" repair will appear — click Restart
The integration creates devices based on your system:
| Device | Entities | Created when |
|---|---|---|
| gridX | 17 sensors (power flows, rates, meter readings) | Always |
| gridX Battery | 7 sensors (SoC, power, charge/discharge, capacity) | If battery present |
| gridX Heat Pump | 2 sensors (power, SG Ready state) | If heat pump present |
| gridX EV Charger | 6 sensors (power, SoC, currents, total energy) | If EV charger present |
| gridX Heater | 2 sensors (power, temperature) | If heater present |
Multiple appliances of the same type are supported (e.g., "gridX Battery" and "gridX Battery 2").
The gridX live API provides power values (W) for battery charge/discharge and heat pump consumption. If you need cumulative energy sensors (Wh/kWh) — e.g. for custom dashboards or tracking daily usage — you can derive them using Home Assistant's built-in Riemann Sum Integral helper.
Add the following to your configuration.yaml:
sensor:
- platform: integration
source: sensor.gridx_battery_charge
name: "Battery Charge Energy"
unit_prefix: k
round: 2
method: trapezoidal
- platform: integration
source: sensor.gridx_battery_discharge
name: "Battery Discharge Energy"
unit_prefix: k
round: 2
method: trapezoidal
- platform: integration
source: sensor.gridx_heat_pump_power
name: "Heat Pump Energy Consumption"
unit_prefix: k
round: 2
method: trapezoidalNote: Replace the
sourceentity IDs with the actual entity IDs from your setup (visible in Settings → Devices & Services → gridX). The sensors above assume default entity naming.
If you want daily/monthly totals that reset at midnight, add a Utility Meter helper on top of each integration sensor.
Why not built into the integration? The gridX live API only exposes instantaneous power (W) for these values — not cumulative energy meters. Only the grid import/export (
gridMeterReadingPositive/gridMeterReadingNegative) are true hardware meter readings. Historical energy data from the gridX API is planned as a future feature.
This is an unofficial, community-maintained integration. It is not affiliated with, endorsed by, or supported by gridX GmbH or E.ON SE.
Apache License 2.0 — see LICENSE