Skip to main content

How to get an Electricity Maps API key for Home Assistant

Overview

To use Electricity Maps with Home Assistant, you need a dedicated Electricity Maps account created specifically for the Home Assistant integration.
This account gives you access to:

  • The Home Assistant integration only

  • One zone, e.g. East Denmark or Germany

  • One API token for use in Home Assistant


How to set up your Home Assistant account

  1. Create your account and go through the onboarding

  2. You should get prompted to activate your Home Assistant license and select a zone.

    1. Make sure you select the actual zone your home is located in, check https://app.electricitymaps.com/map to find your zone

  3. You will be shown an API key that you must copy and paste into the Home Assistant configuration page during setup.

    1. You can always find this key again under app.electricitymaps.com/settings/access


If you are struggling with the Home Assistant configuration, make sure to follow the official Home Assistant setup guide.


Need access to more data?

We offer a lot of other signals like day-ahead prices, interconnector flows, etc., both as historical data and 72h forecasts.

Go explore our offering in the portal and get in touch if you'd like to discuss using Electricity Maps for your business.

Did this answer your question?