A Home Assistant integration for monitoring electricity outages on the Unison Networks distribution network, covering Hawke's Bay, Rotorua, and Taupō.
- Hawke's Bay (Hastings and Napier)
- Rotorua
- Taupō
- All Regions
You can add a separate integration entry for each region if needed.
- Open HACS in Home Assistant.
- Go to Integrations, click the three-dot menu, and choose Custom repositories.
- Add the URL of this repository and set the category to Integration.
- Search for Unison Outages and install it.
- Restart Home Assistant.
- Copy the
custom_components/unison_nzfolder into your Home Assistantconfig/custom_components/directory. - Restart Home Assistant.
After installation, add the integration via Settings > Devices and Services > Add Integration > Unison Outages.
| Field | Description | Default |
|---|---|---|
| Region | Region to monitor | Rotorua |
| Areas | Optional comma-separated list of suburbs or street names to filter results (e.g. Owhata, Springfield Road) |
All areas |
| Days of history | How many days of recent/completed outages to include in statistics (0-30) | 7 |
| Days forecast | How far ahead to show scheduled outages (1-90) | 30 |
Duplicate entries for the same region are blocked. Adding a second entry for a different region is fully supported.
Three sensors are created per integration entry.
Entity: sensor.current_outages
State: count of outages currently active in the region.
Attributes:
| Attribute | Description |
|---|---|
outages |
List of active outage objects (see below) |
customers_affected |
Total customers currently without power |
last_updated |
Timestamp of the last successful data fetch |
Active outages include statuses: Active, Partial Restoration, Under Investigation.
Entity: sensor.upcoming_outages
State: count of scheduled outages starting within the configured forecast window.
Attributes:
| Attribute | Description |
|---|---|
outages |
List of scheduled outage objects |
customers_affected |
Total customers affected by scheduled outages |
last_updated |
Timestamp of the last successful data fetch |
Entity: sensor.outage_statistics
State: total customers currently without power in the region (useful as a dashboard badge).
Attributes:
| Attribute | Description |
|---|---|
statistics |
Aggregate stats for outages within the history and forecast window |
statistics.total_outages |
Total outage count in window |
statistics.total_customers_affected |
Total customers affected across all outages in window |
statistics.average_customers_per_outage |
Average customers per outage |
statistics.unique_areas_affected |
Number of distinct areas affected |
statistics.areas_list |
Sorted list of affected area names |
statistics.outage_types.planned |
Count of planned outages |
statistics.outage_types.unplanned |
Count of unplanned outages |
cancelled_outages |
Details of cancelled outages within the window |
last_updated |
Timestamp of the last successful data fetch |
Each entry in an outages list has the following shape:
id: "SP 421019521"
area: "SPRINGFIELD ROAD, OTONGA ROAD"
reason: "Network Maintenance"
time:
start: "2026-04-15 09:00"
end: "2026-04-15 15:00"
friendly_start: "09:00 AM, 15 Apr"
friendly_end: "03:00 PM, 15 Apr"
duration: "6h"
remaining: "4h 32m" # null if already ended
until: null # null if already started
impact:
customers: 61
severity: "low" # low / medium (>100) / high (>500)
type: "Planned Outage"
status: "Scheduled"
location:
region: "Rotorua"
coordinates:
latitude: -38.159
longitude: 176.237
radius: 206 # metres; null for point outagesData is refreshed every 5 minutes from the Unison outage API.
- Home Assistant 2024.1.0 or later
This project is not affiliated with or endorsed by Unison Networks Limited.