A Home Assistant custom integration that fetches your daily electricity usage and cost data from your energy provider portal.
- Grid Usage (kWh): Daily grid electricity imported
- Grid Usage Cost: Cost of grid usage
- Solar Export (kWh): Daily solar energy exported
- Solar Export Credit: Credit from solar export
- Super Export (kWh): Super Export energy
- Super Export Credit: Credit from Super Export
- Supply Charge: Daily supply/service charge
- ZeroHero Credit: ZeroHero credit
- Net Cost: Net daily cost (negative = credit)
- Referrals Bonus Paid: Referral count with paid bonus
- Referral Bonus Total: Total referral bonus amount paid
- Account Balance: Current account balance
- Unbilled Amount: Unbilled usage since last invoice
- Estimated Balance: Account balance + unbilled amount
- Historical Data: Automatically imports 14 days of history on first setup
- Correct Date Attribution: Statistics are correctly dated to match the actual usage date
- Open HACS in Home Assistant
- Click on "Integrations"
- Click the three dots menu in the top right corner
- Select "Custom repositories"
- Add this repository URL:
https://github.com/ekul135/the-bird - Select "Integration" as the category
- Click "Add"
- Search for "The Bird" and install it
- Restart Home Assistant
- Download the latest release
- Copy the
custom_components/the_birdfolder to your Home Assistantconfig/custom_components/directory - Restart Home Assistant
- Go to Settings → Devices & Services
- Click Add Integration
- Search for "The Bird"
- Enter your account email and password
- Select your meter from the list (or enter manually if needed)
After setup, the following sensors will be available (where <NMI> is your meter identifier):
These sensors display the most recent daily data. Use the external statistics (see Energy Dashboard section) for charts and rollups.
| Sensor | Description | Unit |
|---|---|---|
sensor.the_bird_<NMI>_usage |
Grid electricity imported | kWh |
sensor.the_bird_<NMI>_usage_cost |
Cost of grid usage | AUD |
sensor.the_bird_<NMI>_solar |
Solar energy exported | kWh |
sensor.the_bird_<NMI>_solar_credit |
Credit from solar export | AUD |
sensor.the_bird_<NMI>_super_export |
Super Export energy | kWh |
sensor.the_bird_<NMI>_super_export_credit |
Super Export credit | AUD |
sensor.the_bird_<NMI>_supply |
Daily supply charge | AUD |
sensor.the_bird_<NMI>_zerohero |
ZeroHero credit | AUD |
sensor.the_bird_<NMI>_net_cost |
Net daily cost (negative = credit) | AUD |
These sensors show current account status.
| Sensor | Description | Unit |
|---|---|---|
sensor.the_bird_<NMI>_referrals_bonus_paid |
Referrals with paid bonus | - |
sensor.the_bird_<NMI>_referral_bonus_total |
Total referral bonus paid | AUD |
sensor.the_bird_<NMI>_account_balance |
Current account balance | AUD |
sensor.the_bird_<NMI>_unbilled_amount |
Unbilled usage since last invoice | AUD |
sensor.the_bird_<NMI>_estimated_balance |
Balance + unbilled amount | AUD |
type: entities
title: The Bird Energy
entities:
- entity: sensor.the_bird_qb121208805_usage
name: Usage
- entity: sensor.the_bird_qb121208805_usage_cost
name: Usage Cost
- entity: sensor.the_bird_qb121208805_solar
name: Solar Export
- entity: sensor.the_bird_qb121208805_solar_credit
name: Solar Credit
- entity: sensor.the_bird_qb121208805_net_cost
name: Net Costtype: statistics-graph
title: Daily Usage
chart_type: line
period: day
stat_types:
- state
entities:
- the_bird:usage
- the_bird:solarThe Bird automatically imports statistics with the correct historical date. Since energy data from your provider represents yesterday's usage (but is fetched today), the integration imports statistics timestamped for the actual date the energy was used.
On first setup, The Bird automatically fetches and imports 14 days of historical data. This means your Energy Dashboard and statistics graphs will have data immediately, not just from the day you installed the integration.
The Bird creates external statistics that can be used in statistics graphs:
type: statistics-graph
title: Usage
chart_type: line
period: day
stat_types:
- state
entities:
- the_bird:usage| Statistic ID | Description |
|---|---|
the_bird:usage |
Grid electricity consumption (kWh) |
the_bird:usage_cost |
Grid usage cost (AUD) |
the_bird:solar |
Solar export (kWh) |
the_bird:solar_credit |
Solar export credit (AUD) |
the_bird:super_export |
Super export (kWh) |
the_bird:super_export_credit |
Super export credit (AUD) |
the_bird:supply |
Daily supply charge (AUD) |
the_bird:zerohero |
ZeroHero credit (AUD) |
the_bird:net_cost |
Net daily cost (AUD) |
Tip: Use
statestat type for daily values. Thesumtype shows cumulative totals.
Note: The sensors (e.g.,
sensor.the_bird_*_usage) show the current day's data and include adata_dateattribute indicating which date the data is for. The external statistics (e.g.,the_bird:usage) are correctly backdated for historical accuracy.
- Ensure your email and password are correct
- Try logging into your energy provider portal to verify your credentials
- Data is typically available after 6 AM for the previous day
- Smart meter data may have a delay of 1-2 days
- Your credentials are stored locally in Home Assistant
- Password is encrypted using RSA-OAEP before being sent to the API
- No data is sent to any third parties
MIT License - see LICENSE for details.
This is an unofficial integration and is not affiliated with any energy company. Use at your own risk.
