I’m a Pacific Power customer in Oregon and I’ve been wanting energy data in my HA dashboard for a while. Pacific Power doesn’t use Opower, and there’s no existing integration, so I built one.
It logs into the Pacific Power portal, grabs your usage data, and feeds it into HA as external statistics. If you have an AMI smart meter you get hourly readings; otherwise it pulls daily totals. It refreshes every 12 hours and auto-discovers your account during setup.
The nerdy part
Pacific Power’s portal turned out to be a pain. They encrypt every API request — the Angular frontend does an RSA-4096 key exchange on page load, then signs and encrypts every request body with AES-256-GCM before sending it. I initially tried a headless browser approach (Playwright), but that would’ve required a companion addon since HA OS can’t install Chromium.
So I dug into the minified JS bundle and figured out the crypto protocol. The integration now does the full key exchange and encrypted API calls in pure Python using the cryptography library. No browser, no Docker container, just a normal HACS integration.
Setup
- Add
https://github.com/nkcx/ha-pacific-poweras a custom repository in HACS (Integration) - Install “Pacific Power” and restart HA
- Settings → Devices & Services → Add Integration → Pacific Power
- Enter your Pacific Power login credentials
- Add the
pacific_power:..._energy_consumptionstatistic to Energy Dashboard → Grid Consumption
You need a Pacific Power account at pacificpower.net. MFA has to be off. HA 2025.1+.
Rocky Mountain Power
If you’re a Rocky Mountain Power customer — RMP is also PacifiCorp, same parent company, and I believe they share the same portal backend. The integration would probably need the brand identifier and subsidiary name changed, but the API and crypto should be identical. I don’t have an RMP account to test with though. If you do and want to help get it working, open an issue on GitHub.
AI Disclosure
The code for this integration was written primarily by Claude (Anthropic). I’ve personally tested it extensively and run it on my own HA instance.
Links
- GitHub: GitHub - nkcx/ha-pacific-power: Home Assistant integration for Pacific Power (PacifiCorp) energy data · GitHub
- Issues: Issues · nkcx/ha-pacific-power · GitHub
Not affiliated with or endorsed by Pacific Power or PacifiCorp.