This custom integration for Home Assistant retrieves and imports hourly and daily energy consumption data from Enel Italia, making it available in Home Assistant's Energy Dashboard.
- 📊 Automatic login using Enel's SAML authentication process.
- 🔄 Supports re-authentication if the login process encounters issues.
- 🕒 Fetches and tracks hourly energy consumption (Enel provides data with a three-day delay).
- 📈 Tracks monthly cumulative consumption.
- ✅ Seamless integration with Home Assistant Energy Dashboard.
- 🔁 Automatically updates data daily.
- Copy the
enelgrid
folder into:config/custom_components/enelgrid
- Restart Home Assistant.
- In Home Assistant, go to:
Settings → Devices & Services → Add Integration
Search for "enelgrid". - Enter your Enel login credentials and POD details.
- In HACS, go to Integrations.
- Add this repository as a Custom Repository (if it's not already in HACS).
- Search for "enelgrid" and install.
- Restart Home Assistant.
- Follow the setup steps in Settings → Devices & Services.
During setup, you’ll need to provide:
- Username Your Enel account email
- Password
- POD Number Found on your Enel bill
- User Number Also found on your Enel bill
- Price per Kwh - Take your total electricity bill amount and divide it by the total kWh consumed (as shown on your bill) to get a reasonable estimate for the price per kWh
These credentials are stored securely in Home Assistant's config_entries
storage.
After this go to your Energy settings and configure the statistics like this:
if all goes well, you should see something like this:
- Data is automatically fetched every day.
- Data is also fetched immediately upon first installation.
Feature | Status |
---|---|
Hourly Energy Data | ✅ |
Daily Energy Data | ✅ |
Monthly Cumulative Sensor | ✅ |
Energy Dashboard Integration | ✅ |
Automatic Login | ✅ |
Automatic Daily Fetch | ✅ |
Re-authentication Support | ✅ |
This integration was developed by Sathia Francesco Musso.
Contributions and feedback are welcome!
This project is licensed under the MIT License.