This integration allows you to monitor your energy consumption data from Aziende Industriali di Lugano (AIL) in Home Assistant.
- Fetch energy consumption data from AIL EnergyBuddy
- Separate day and night consumption tracking
- Energy dashboard integration
- Cost calculation based on peak and off-peak rates
- Estimated weekly consumption by Energy Buddy appliance category
- Make sure you have HACS installed in your Home Assistant instance.
- Click on HACS in the sidebar.
- Click on "Integrations".
- Click the three dots in the top right corner and select "Custom repositories".
- Enter the URL of this repository:
https://github.com/lukefx/ail-ha - Select "Integration" as the category.
- Click "ADD".
- Search for "AIL" in the integrations tab.
- Click on "AIL: Aziende Industriali di Lugano".
- Click "DOWNLOAD" in the bottom right corner.
- Restart Home Assistant.
- Download the latest release from the releases page.
- Extract the contents and copy the
custom_components/aildirectory to your Home Assistant'scustom_componentsdirectory. - Restart Home Assistant.
- Go to Home Assistant's Settings > Devices & Services.
- Click on the "+ ADD INTEGRATION" button in the bottom right corner.
- Search for "AIL" and select "AIL: Aziende Industriali di Lugano".
- Enter your AIL EnergyBuddy credentials (email and password).
- Configure your electricity tariff settings (optional).
After setup, the integration will create the following entities:
- Sensor for day consumption (Last parsed hour)
- Sensor for night consumption (Last parsed hour)
- Sensor for total consumption
- Sensor for current price of energy consumption
- Sensor for estimated total weekly consumption
- One estimated weekly consumption sensor per Energy Buddy appliance category
- Statistics sensor for daily consumption
- Statistics sensor for daily cost
- Statistics sensor for nightly consumption
- Statistics sensor for nightly cost
- Statistics sensor for total consumption
- Statistics sensor for total cost
You can add the cumulative consumption statistics to Home Assistant's Energy dashboard.
Category sensors are provider-generated estimates, not additional meter readings. They
use the measurement state class and are intentionally kept separate from the
authoritative cumulative totals used by the Energy dashboard.
For issues, feature requests, or contributions, please use the GitHub Issues page.
This project is licensed under the MIT License - see the LICENSE file for details.