Skip to main content

Why did I get an "Authorization expired" message in Home Assistant?

A problem on our side briefly rejected valid API keys. Your key still works: restart Home Assistant to get your data back.

On 26 November 2026, a problem on our side briefly rejected valid API keys. Home Assistant took this to mean your key had expired, so it stopped fetching data from Electricity Maps and asked you to re-authenticate.

Your API key has not changed and still works. You don't need a new key.

What you need to do

Restart Home Assistant. Go to Settings → the three-dot menu in the top right → Restart Home Assistant. On restart it loads your existing key and zone again and starts fetching data.

If the "Authorization expired" notice is still showing after the restart, but your Electricity Maps values are updating again, you can safely ignore or dismiss it.

If restarting doesn't help

  1. In Home Assistant, go to Settings and click the "Authorization expired" message for Electricity Maps

  2. Enter your key in the prompt

If the prompt says "Invalid authentication" even though you entered the right key, you've hit a bug in Home Assistant: it checks the key against your home's location instead of the zone you configured. A fix is on its way in an upcoming Home Assistant release. Until then, restarting Home Assistant is the way to get your data back.

We apologise for the inconvenience this is causing, we're aware of how annoying this is!

Did this answer your question?