This custom integration integrates the StromGedacht API (provided by TransnetBW) into Home Assistant. It provides information about the current state of the power grid in Baden-Württemberg (Germany), including warnings to reduce consumption or signals to use energy (super green state).
- Easy Configuration: Setup via Home Assistant UI.
- Mandatory Zip Code: Get localized data for your area.
- Real-time Data: Fetches grid status (Green/Yellow/Red/SuperGreen).
- Forecast Data: Provides sensors for Grid Load, Renewable Energy, and Residual Load (in MW).
- Short Status Mode: Choose between a detailed status text or a short version (Red, Orange, Green, Supergreen).
- Configurable Interval: Adjust the update frequency via integration options.
- Open HACS in Home Assistant.
- Go to Integrations > Top right menu (3 dots) > Custom repositories.
- Add the URL:
https://github.com/V4n1X/ha_stromgedacht - Category: Integration.
- Click Add.
- Search for StromGedacht in HACS and install it.
- Restart Home Assistant.
- Download the latest release.
- Copy the folder
stromgedacht(insidecustom_components) to your Home Assistantconfig/custom_components/directory. - Restart Home Assistant.
- Go to Settings > Devices & Services.
- Click Add Integration.
- Search for StromGedacht.
- Enter your Zip Code (PLZ) (e.g.,
70173). - (Optional) Set the scan interval.
The integration creates the following sensors:
- Status: The traffic light system (text).
- Load: Current grid load in MW.
- Renewable Energy: Current generation from renewables in MW.
- Residual Load: The difference between load and renewables in MW.
The main status sensor follows the official StromGedacht logic:
| Value | State | Meaning |
|---|---|---|
| -1 | Super Green | 🍃 Power is abundant. Use electricity now to support the grid! |
| 1 | Green | ✅ Normal operation. No action required. |
| 3 | Orange | |
| 4 | Red | ⚡ Reduce consumption immediately to prevent power shortages. |
Disclaimer: This is a private project and not an official product of TransnetBW GmbH.
