Home Assistant integration for retrieving and displaying PURC Ghana electricity tariffs.
# PURC Ghana Electricity Tariff
**Home Assistant integration that tracks live electricity tariffs published by Ghana's Public Utilities Regulatory Commission (PURC).**
---
## Table of contents
- About
- Features
- Sensors
- Installation
- HACS (recommended)
- Manual
- Configuration
- Energy Dashboard
- Diagnostics
- Troubleshooting
- Development
- Changelog
- Disclaimer
- License
## About
PURC (Ghana's Public Utilities Regulatory Commission) publishes electricity tariffs through an online Tariff Reckoner that residents can use to calculate their expected electricity charges. Tariffs change periodically, which makes it hard to keep track of the current rate you're being billed at.
This integration polls the PURC Tariff Reckoner on your behalf once a day and exposes the current rates as Home Assistant sensors, so you can:
- See your current tariff at a glance from the Home Assistant dashboard.
- Feed accurate, up-to-date cost data into the Energy Dashboard.
- Build automations/notifications around tariff changes (e.g. notify when the levy or service charge changes).
Optionally, it can also track water tariffs published on the same portal.
## Features
- 🔎 Automatic tariff discovery directly from the official PURC Tariff Reckoner.
- 🏠 Support for **Residential** and **Non-Residential** customer categories (including SLT LV/MV/MV2/HV/EV Charging tariffs).
- 💡 Lifeline tariff support for low-consumption residential customers.
- 🧾 Levy (tax) percentage calculation.
- 💵 Service charge extraction.
- 💧 Optional **water tariff** tracking (GHS/m³), opt-in during setup.
- 🔄 Configurable, automatic daily refresh with graceful fallback to the last known values if PURC's site is temporarily unavailable.
- 🔘 **Force Update** button to refresh tariffs on demand, without waiting for the daily cycle.
- 🕒 **Last Updated** sensor showing when tariffs were last successfully fetched.
- 💾 Values are cached to disk and restored instantly after a Home Assistant restart, and …