Openweathermap APIKey not accepted

Hello n

I have been running perfectly Openweathermap in my HA for so long .

Today I received a notification that OWM 2.5 is deprecated and i should move to 3.0 …fine

I deleted the 2.5 integration and added the OWM 3.0

On the configuration screen I added a newly generated APIKEY from OWM

i try to save the configuration and i get back to the the configuration screen with an invalid APIKEY message

wht do i need to do to get OWM back working

If you just signed up then it can take a couple hours until the key works again. You could have kept your old key and just subscribed to the API too. It’s been 9 hours, still not working?

Not working for me yet either. Created a new key this morning just in case and neither works.

If this is correct:
image
then there could be an estimate of 86K systems using this integration.

Even if (quite sure) not all of them have updated to HA 2024.6.0, there are a lot of fellow users with this issue so maybe the delay is due to that… :thinking:

@Nick4

Thank you for your input.

My system is updated and still no joy

  • Core2024.6.0
  • Supervisor2024.06.0
  • Operating System12.3
  • Frontend20240605.0

Hope this nets fixed soon

Again thank you for your help

any luck with this in the end?

Hi all

Although i struggled with this for a while, i ended up using the Norwegian Meteorological Institute integration (it’s an addon) simpler to use and configured

hope this helps someone

I also had a problem with the Openweathermap.org API in version 3.0, when I had to insert the API into HA, during integration. I got Invalid API, and couldn’t proceed. What did the trick for me was that there should ONLY be ONE Active API on your Openweather account. You can find it under your profile. This worked for me!

1 Like

Wait, are you saying that the API that you inserted into HA to begin with, and the “Active API” that you found on your OWM account, are different?

I was able to solve the problem by deleting the default API key in OpenWeatherMap. I then no longer got the invalid error in HomeAssistant and was able to complete the integration. Maybe this will help everyone finally.

2 Likes

Thanks, that worked for me!

First link using google so I’ll add what I did to fix my problem.

As the openweather integration page says OpenWeatherMap - Home Assistant, I needed a openweather subscription.

I just didn’t have the subscription even though I had a openweather account and API keys I used on my Garmin watch for instance. So it just needs to give a phone number and a credit card information. Set the API limit to 1000req/day to avoid bad surprises too. It’s very nice of them they let you set a limit, but I need to pay them something someday :smiley:

A nice way to debug this integration is to enable this log. You’ll have a more precise error given during the API call :


logger:
  default: warn
  logs:
    pyopenweathermap: debug
1 Like

Thats it. I followed some old instructions to get the OWM integration and there was no subscription needed. So I got the error. Then i saw on - OpenWeatherMap - Home Assistant - that you need a subscription. ( “* Visit the OpenWeatherMap website and activate the One Call subscription.”)

Steps as said above:

  • get subscription
  • set limit to 1000 calls/day
  • should work after a few hours

Hello all why go through this hassle. I gave up on openwheathermap and just used norwegian weather

1 Like

that’s how it works. thanks!

Also solved it for me!