Closed Logirius closed 1 month ago
I have the same error. First time installed this integration, rebooted HA, added integration:
Integration version: v2024.4.3
HA version: Core 2024.4.1 Supervisor 2024.03.1 Operating System 12.1 Frontend 20240404.1
Error logs:
Logger: custom_components.smart_irrigation.OWMClient
Source: custom_components/smart_irrigation/OWMClient.py:258
integration: smart_irrigation ([documentation](https://github.com/jeroenterheerdt/HASmartIrrigation), [issues](https://github.com/jeroenterheerdt/HASmartIrrigation/issues))
First occurred: 9:42:02 AM (3 occurrences)
Last logged: 9:42:49 AM
Cannot talk to OWM API, check API key.
Openweather API:
Error at install:
I tried the API 2.5 as well same error.
Thanks Martin
Please make sure you are actually subscribed (for free) to the required API. The OWM website is tricky to work with and activation of new api keys sometimes takes hours. See https://github.com/jeroenterheerdt/HAsmartirrigation/issues/306
Please make sure you are actually subscribed (for free) to the required API. The OWM website is tricky to work with and activation of new api keys sometimes takes hours. See #306
Thanks - stupid me. I didn't read your instructions to the end. It indeed needed just a bit of time to activate the API.
thx Martin
Hello Jeroen, thank you for your prompt help. Following your advice, I checked again and found it necessary to provide a credit card. I did not see this information anywhere. Only then was the API truly activated. Although it was already marked as activated under APIs. And what surprises me is that it worked wonderfully with the OpenWeatherMap integration. That was essentially my test. But okay, thanks again, everything works in your brilliantly made tool! I had dreamed of something like this for a long time. Best regards, Jürgen
thanks a lot, I will update the readme to clarify this.
What happened?
After adding the API Key it shows the error. With each version.
How to reproduce
config_entry-smart_irrigation-85ed538c04d048091b3cce21a027db76.json
OWM Checkbox on, insert API Key and save. On both api versions. New API Key, created days before is working in normal OWM Integration
Relevant log output
Which version are you running?
v2024.4.3
Diagnostics file
Additional information
{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2024.4.1", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.12.2", "docker": true, "arch": "x86_64", "timezone": "Europe/Berlin", "os_name": "Linux", "os_version": "6.6.20-haos", "supervisor": "2024.03.1", "host_os": "Home Assistant OS 12.1", "docker_version": "24.0.7", "chassis": "vm", "run_as_root": true }, "custom_components": { "robonect": { "version": "v1.6.0", "requirements": [ "aiorobonect>=1.0.1", "jsonpath" ] }, "homematicip_local": { "version": "1.58.0", "requirements": [ "hahomematic==2024.3.1" ] }, "dwains_dashboard": { "version": "3.6.0", "requirements": [] }, "auto_areas": { "version": "2.0.0", "requirements": [] }, "openweathermaphistory": { "version": "2.0.12", "requirements": [ "pyowm==3.2.0" ] }, "dwd_weather": { "version": "v2.1.2", "requirements": [ "simple_dwd_weatherforecast==2.0.29", "markdownify==0.6.5", "suntimes==1.1.2" ] }, "irrigation_unlimited": { "version": "2023.11.0", "requirements": [ "crontab" ] }, "alarmo": { "version": "v1.9.15", "requirements": [] }, "miele": { "version": "2024.3.0", "requirements": [ "flatdict==4.0.1", "pymiele==0.1.7" ] }, "smart_irrigation": { "version": "v2024.4.3", "requirements": [] }, "hacs": { "version": "1.34.0", "requirements": [ "aiogithubapi>=22.10.1" ] }, "irrigationprogram": { "version": "5.4.8", "requirements": [] }, "volkswagencarnet": { "version": "v4.5.9", "requirements": [ "pytz", "volkswagencarnet==4.4.72" ] }, "solax_modbus": { "version": "2024.04.2", "requirements": [ "pymodbus>=3.6.6" ] } }, "integration_manifest": { "domain": "smart_irrigation", "name": "Smart Irrigation", "codeowners": [ "@jeroenterheerdt" ], "config_flow": true, "dependencies": [ "http", "panel_custom" ], "documentation": "https://github.com/jeroenterheerdt/HASmartIrrigation", "iot_class": "local_push", "issue_tracker": "https://github.com/jeroenterheerdt/HASmartIrrigation/issues", "requirements": [], "version": "v2024.4.3", "is_built_in": false }, "data": { "config": { "entry_id": "85ed538c04d048091b3cce21a027db76", "version": 1, "minor_version": 1, "domain": "smart_irrigation", "title": "Smart Irrigation", "data": { "name": "Smart Irrigation", "use_owm": false }, "options": { "use_owm": false, "owm_api_key": "XXXXXXXXXXX", "owm_api_version": null }, "pref_disable_new_entities": false, "pref_disable_polling": false, "source": "user", "unique_id": "Smart Irrigation", "disabled_by": null }, "storage": { "config": { "calctime": "23:00", "units": "metric", "use_owm": false, "autocalcenabled": true, "autoupdateenabled": true, "autoupdateschedule": "hours", "autoupdatedelay": "60", "autoupdateinterval": "1", "autoclearenabled": true, "cleardatatime": "23:59", "starteventfiredtoday": true }, "zones": [ { "id": 0, "name": "Tropfzone Hecke", "size": 100.0, "throughput": 8.0, "state": "automatic", "bucket": 0, "old_bucket": -10.000154211219092, "delta": -0.04552924894158151, "duration": 0, "module": 0, "multiplier": 1.0, "explanation": "Beachte: Diese Beschreibung nutzt '.' als Dezimalzeichen und zeigt gerundete Werte. Das Modul berechnete einen Evapotranspirationsmangel von -0.0. Der alte Vorrat war -10.0.
Der maximale Vorrat ist 50.0.Der neue Vorrat ist [alter_Vorrat]+[Ver\u00e4nderung]=-10.0+-0.0=-10.0.
Wenn der Vorrat < 0 ist, ist eine Bew\u00e4sserung n\u00f6tig..
F\u00fcr eine exakte Berechnung der Dauer, wurden folgende Schritte durchgef\u00fchrt:
Der maximale Vorrat ist 50.0.Der neue Vorrat ist [alter_Vorrat]+[Ver\u00e4nderung]=-10.0+-0.0=-10.0.
Wenn der Vorrat < 0 ist, ist eine Bew\u00e4sserung n\u00f6tig..
F\u00fcr eine exakte Berechnung der Dauer, wurden folgende Schritte durchgef\u00fchrt:
Der maximale Vorrat ist 50.0.Der neue Vorrat ist [alter_Vorrat]+[Ver\u00e4nderung]=-10.0+-0.0=-10.0.
Wenn der Vorrat < 0 ist, ist eine Bew\u00e4sserung n\u00f6tig..
F\u00fcr eine exakte Berechnung der Dauer, wurden folgende Schritte durchgef\u00fchrt:
Der maximale Vorrat ist 50.0.Der neue Vorrat ist [alter_Vorrat]+[Ver\u00e4nderung]=-5.0+-0.0=-5.0.
Wenn der Vorrat < 0 ist, ist eine Bew\u00e4sserung n\u00f6tig..
F\u00fcr eine exakte Berechnung der Dauer, wurden folgende Schritte durchgef\u00fchrt:
Der maximale Vorrat ist 50.0.Der neue Vorrat ist [alter_Vorrat]+[Ver\u00e4nderung]=-10.0+-0.0=-10.0.
Wenn der Vorrat < 0 ist, ist eine Bew\u00e4sserung n\u00f6tig..
F\u00fcr eine exakte Berechnung der Dauer, wurden folgende Schritte durchgef\u00fchrt:
Der maximale Vorrat ist 50.0.Der neue Vorrat ist [alter_Vorrat]+[Ver\u00e4nderung]=-10.0+-0.0=-10.0.
Wenn der Vorrat < 0 ist, ist eine Bew\u00e4sserung n\u00f6tig..
F\u00fcr eine exakte Berechnung der Dauer, wurden folgende Schritte durchgef\u00fchrt: