golles / ha-knmi

Custom component that integrates KNMI weather service (via weerlive) in to Home Assistant
MIT License
105 stars 8 forks source link

The given API key is invalid #161

Open DavidVankan opened 3 weeks ago

DavidVankan commented 3 weeks ago

Did you read the instructions?

The problem

after installation i add it to my intergration. it asks me to get a free Aoi Key.. Idid get te apo key in my mail and i activated the acount.

if i add the name and the api key i get : The given API key is invalid

i waited 1 hour and still same error

Integration version

2.2.0.

Home Assistant version

core-2024.10.2

Python version

3.12.4

Home Assistant log

This error originated from a custom integration.

Logger: custom_components.knmi
Source: custom_components/knmi/config_flow.py:52
integration: knmi (documentation, issues)
First occurred: 2:27:16 PM (10 occurrences)
Last logged: 2:56:20 PM

The given API key is invalid

Diagnostics

nvt

Additional information

nvt

golles commented 3 weeks ago

My first impression is that something is wrong with your key. Are you sure you copied it without anything extra, eg spaces?

What happens if you open the following link, and replace YOURKEY with your key: https://weerlive.nl/api/weerlive_api_v2.php?locatie=Amsterdam&key=YOURKEY

Servizio-R commented 2 weeks ago

I have the same issue, opening : https://weerlive.nl/api/weerlive_api_v2.php?locatie=Amsterdam&key=YOURKEY gives me this response... { "liveweer": [{"fout": "Vraag eerst een API-key op, zie http://weerlive.nl/delen.php"}]} yet when I login on weerlive , it show me my API key

golles commented 2 weeks ago

Please reach out to the supplier via post@weerlive.nl, I guess they have a problem with API keys.

I also see that my remaining API calls sensor has been stuck to 299 since September 23rd.

jeroen94704 commented 2 weeks ago

I initially thought I had the same issue, but it turns out it takes a while after activation before the API key is usable. It actually says so in the email I got, although it took longer than the 5-10 minutes they mention. Not sure if that is the same for you as well, but at least in my case it started working fine after half an hour or so.