Home Assistant Custom Integration
Install the hydroqc-ha custom integration for Home Assistant (Recommended)
Recommended for Home Assistant Users
The **hydroqc-ha** custom integration is the recommended way to integrate Hydro-Québec with Home Assistant. It provides a native integration without requiring MQTT or external daemons.Why Choose hydroqc-ha?
- Native Integration: Built directly into Home Assistant as a custom component
- No MQTT Required: Direct integration without the need for an MQTT broker
- Easy Configuration: Simple setup through the Home Assistant UI
- Full Feature Support: All features including consumption tracking, winter credits, and dynamic pricing
- Better Performance: More efficient and reliable than the legacy addon
- Multiple Contracts: Support for multiple Hydro-Québec contracts
Installation
Via HACS (Recommended)
Prerequisites
Make sure HACS is installed on your Home Assistant instance. If not:
- Follow the HACS installation guide
- Restart Home Assistant after installing HACS
Install the Integration
Option A: One-Click Installation
Click the badge above to automatically add this repository to HACS, then:
- Click “Download” (or “Install”)
- Restart Home Assistant
Option B: Manual Installation via HACS
- Open HACS in Home Assistant
- Click on Integrations
- Click the 3 dots in the top right corner
- Select “Custom repositories”
- Add the repository URL:
https://github.com/hydroqc/hydroqc-ha - Select category: Integration
- Click “Add”
- Search for “Hydro-Québec” in the HACS integrations list
- Click on the Hydro-Québec integration
- Click “Download” (or “Install”)
- Restart Home Assistant
Note: After restarting, you still need to configure the integration (see Configuration section below).
Manual Installation
- Download the latest release from GitHub Releases
- Extract the
hydroqcfolder into yourcustom_componentsdirectory - Restart Home Assistant
Configuration
Option 1: With Hydro-Québec Account (Full Access)
- Go to Settings → Devices & Services
- Click + Add Integration
- Search for Hydro-Québec
- Select “Connect with Hydro-Québec account”
- Enter your credentials:
- Username: Your Hydro-Québec email
- Password: Your Hydro-Québec password
- Contract Name: Friendly name (e.g., “Home”, “Cottage”)
- Select the contract to monitor from the list
- Done! Sensors will appear in ~60 seconds
Features with account:
- Current and historical consumption data
- Balance and billing information
- Winter credits and peak events
- Outage notifications
- Energy dashboard integration
Option 2: Peak Data Only (No Account Required)
For users who only want peak period information without logging in:
- Go to Settings → Devices & Services
- Click + Add Integration
- Search for Hydro-Québec
- Select “Peak data only (no account)”
- Choose your rate sector and plan
- Configure peak event preheat duration
Features without account:
- Peak event notifications
- Dynamic pricing information
- No consumption tracking
- No billing information
Multi-Contract Setup
To monitor multiple contracts (e.g., home and cottage):
- Add the integration multiple times
- Use different contract names for each
- Select a different contract during each setup
Available Sensors
The integration creates sensors for:
- Consumption: Current period, yesterday, today
- Billing: Balance, projected amount
- Peak Events: Current status, next event
- Winter Credits: Events and projections
- Outages: Current outages in your area
See the Home Assistant Sensors section for detailed sensor information.
Troubleshooting
Connection Failed
- Verify your credentials on the Hydro-Québec website
- Check for special characters in your password
- Ensure your account has active contracts
No Data Appearing
- Wait 60 seconds for the first update
- Check Home Assistant logs: Settings → System → Logs
- Verify the Hydro-Québec portal is online
Sensors Unavailable
- Some sensors are only active during specific seasons (winter credits)
- Verify your rate plan supports the sensor
- Check that the coordinator is updating (check logs)
Migration from Legacy Addon
If you’re currently using the legacy addon:
- Install hydroqc-ha alongside the addon (both can run simultaneously)
- Test the new integration thoroughly
- Update your automations and dashboards to use the new sensors
- Once satisfied, disable the legacy addon
- Optionally uninstall the addon and MQTT broker if no longer needed
Related Projects
- hydroqc2mqtt: For non-Home Assistant platforms (MQTT daemon)
- Hydro-Quebec-API-Wrapper: The underlying Python library
Support
- Issues: GitHub Issues
- Documentation: hydroqc.ca
- Source Code: GitHub Repository
- Discord: Join our Discord