Home Assistant integration for Delaware County Water Authority (Del-Co Water) to track water usage and billing data. Integrates seamlessly with Home Assistant's Energy dashboard.
- Historical water consumption tracking - View up to 1 year of historical usage data in the Energy Dashboard
- Per-billing-period granularity - Accurate usage and cost aligned to actual meter read dates
- Cost tracking - Monitor water costs with historical billing data
- Account monitoring - Track current bill, previous balance, payments received, and balance due
- Energy Dashboard integration - Seamless integration with Home Assistant's native Energy Dashboard
- Automatic statistics insertion - Historical data is automatically backfilled on first setup
- Automatic updates - Data refreshes every 24 hours
This integration uses a PDF parsing approach to extract accurate per-billing-period usage data. This is necessary because Del-Co's API only provides monthly aggregated usage data, which loses granularity when there are multiple meter reads in a single calendar month.
How it works:
- The integration fetches billing history from Del-Co's API
- For each bill, it downloads the PDF from Del-Co's document storage
- It parses the PDF to extract exact service period dates and usage amounts
- Both usage and cost are recorded at the meter read date for proper alignment
Important Notes:
- PDF format changes by Del-Co may temporarily break the integration until updated
- Very old bills (12+ months) may not be available for download
- The integration handles three known PDF formats (old, mid, and new)
- If a PDF cannot be parsed, that billing period will be skipped with a warning in logs
- Home Assistant 2024.1 or newer
- Del-Co Water portal account (delcowaterportal.com)
Note: This integration is not yet published in the HACS default repository. You need to add it as a custom repository first.
-
Install HACS (if not already installed)
- Follow the official HACS installation guide: https://hacs.xyz/docs/setup/download
- Restart Home Assistant after HACS installation
-
Add Custom Repository
Click the badge above to add this repository to HACS directly, OR:
- Open HACS in Home Assistant
- Click on "Integrations"
- Click the three dots in the top right corner
- Select "Custom repositories"
- Add this repository URL:
https://github.com/patrickjcash/delco-water-hass - Select "Integration" as the category
- Click "Add"
-
Install Integration
- In HACS, search for "Del-Co Water"
- Click on the integration
- Click "Download"
- Restart Home Assistant
- Copy the
custom_components/delco_waterdirectory to your Home Assistantcustom_componentsdirectory - Restart Home Assistant
- Click the badge above to add the integration directly, OR navigate to Settings → Devices & Services
- Click the "+ Add Integration" button
- Search for "Del-Co Water"
- Enter your Del-Co Water portal credentials (same as delcowaterportal.com)
- Click Submit
The integration will automatically fetch your account data and set up sensors.
This integration uses long-term statistics (not sensors) for Energy Dashboard tracking, following the same pattern as the bronze-certified Opower integration. Historical data is automatically backfilled on first setup.
- Go to Settings → Dashboards → Energy
- Under "Water consumption", click "Add Water Source"
- Select the statistic:
Del-Co Water Consumption(NOT the sensor) - Historical data (up to 1 year of monthly readings) will be visible immediately
- In the Energy Dashboard, under "Water consumption"
- Click "Add Cost" or configure cost tracking
- Select the statistic:
Del-Co Water Cost - Historical billing data will be displayed alongside consumption
Note: The integration provides both sensors (for current values) and statistics (for historical tracking). The Energy Dashboard uses statistics, not sensors.
-
Create a
.envfile with your credentials:cp .env.example .env # Edit .env with your credentials -
Install dependencies:
pip install -r requirements.txt
-
Run tests:
python tests/test_api.py
This integration uses the Del-Co Water portal API (powered by Sparqr/ESC):
- Authentication: AWS Cognito
- API Base:
https://delco-api.cloud-esc.com/v2 - Bill PDFs: Oracle Cloud Storage
Endpoints used:
/account- Account information/usage- Monthly aggregated usage (for sensors)/history/billing- Billing history with read dates/history/payment- Payment history- Bill PDFs via
billDisplayURLpattern
Why PDF parsing?
The /usage endpoint returns data aggregated by calendar month, which causes issues when:
- There are 2+ meter reads in a single month (usage is summed, losing per-read detail)
- There are 0 meter reads in a month (no data for that month)
By parsing bill PDFs, we get the exact service period (FROM and TO dates) and precise usage for each billing cycle, enabling accurate alignment of usage and cost data in the Energy Dashboard.
Built for Delaware County Water Authority customers who want to track their water usage in Home Assistant.
MIT License