Mälarenergi PowerHub — HACS integration for Swedish PowerHub customers

Hi everyone!

I've built a Home Assistant integration for the Mälarenergi PowerHub — a smart energy monitor available to electricity customers of Mälarenergi in the Västerås/Mälardalen region of Sweden.

What is PowerHub?

PowerHub is a device installed at your electrical panel that monitors your home's power consumption and solar production in real time, connected to Mälarenergi's cloud via BankID authentication.

What can you read from the device?

Energy (Energy Dashboard compatible)

  • Grid import & export today (kWh) — ready to drop into the HA Energy Dashboard
    • Current Nordpool spot price for your price zone (öre/kWh, updates every 15 min)
      Real-time power & current (updated every 60 s)
  • Total grid import/export in kW
    • Per-phase current L1/L2/L3 (A)
      Monthly insights
  • Your volume-weighted average price this month vs. market average
    • Year-to-date consumption & solar production
    • Estimated always-on baseload power
      Account & facility metadata
  • Facility address, meter ID, customer number, agreement number, price zone, price model
    Push notifications
  • Mirror of the latest Mälarenergi push notification — use as an automation trigger
    Device diagnostics
  • Wi-Fi signal, firmware version, HAN port state, device uptime

What can you write/control?

All writable entities sync back to the Mälarenergi app and their servers:

  • Fuse limit & power limit — set the maximum current/power threshold for the device
    • Facility flags — mark whether you have solar and/or a battery installed
    • Notification preferences — toggle each push notification type on/off (total power, phase load, limits when control is on/off)
    • Facility profile — heating type, facility type (villa/apartment/etc.), EV charger type
    • Sharing — create and delete facility sharing invitations via HA services (recipients enter the code in the Mälarenergi app)

Installation via HACS

  1. Open HACS → three-dot menu → Custom repositories
  2. Add https://github.com/8408323/ha-malarenergi-powerhub (category: Integration)
  3. Download and restart Home Assistant
  4. Go to Settings → Devices & Services → Add Integration → search Mälarenergi PowerHub
  5. Scan the BankID QR code with the BankID app

Full setup guide with screenshots: docs/setup.md
Full entity reference: docs/user_manual.md

Who is this for?

Anyone with an active Mälarenergi electricity subscription with a PowerHub device installed. This is a regional Swedish utility so the audience is narrow — but if you're in Västerås and have a PowerHub, this brings everything into HA!

Feedback and issues welcome on GitHub.

Thanks Jonathan!
From the screenshot in Github I see that is possible to see the Current (A) of the 3 phases. Is it possible to get also the realtime power (W) and voltage (V) of each phase ?
Thanks!
BR