[Custom Component] Karlstadsenergi: waste collection & electricity for Karlstad, Sweden

Hi,

This only applies if you’re a Karlstads Energi customer – if you’re not, save yourself the read.

I got new waste bins with a new pickup schedule and didn’t trust myself to remember which ones to put out when. So I poked around the Karlstads Energi customer portal API and made a Home Assistant integration.

v0.2.1 just shipped. Now it also tells you where the money goes. :zap:

What it does:

  • Waste collection: sensors with next pickup date, days until pickup, calendar entities, and “pickup tomorrow” binary sensors for automations
  • Cost breakdown: six sensors exposing individual fee components from your electricity invoice (energy charge, grid fee, fixed fee, energy tax, VAT, total), with monthly costs imported into long-term statistics
  • Energy Dashboard: hourly consumption and monthly costs imported as external statistics, usable as sources in the Energy Dashboard
  • Spot price: current Nord Pool SE3 electricity price, updated every 15 minutes
  • Effective price: your actual energy price (SEK/kWh) based on invoice fee breakdown
  • Contracts: one sensor per contract (grid, trading, waste) with type, dates, and price region
  • Configurable history: import 1–10 years of historical data into long-term statistics

Install via HACS (custom repository): https://github.com/krissen/karlstadsenergi-homeassistant

Auth with customer number + password (recommended) or BankID.

Feedback and issues welcome on GitHub.