Rudd-O / homeassistant-meteoswiss

:sun_behind_rain_cloud: :switzerland: Meteo Swiss Integration for Home Assistant (forked from websylv)
86 stars 10 forks source link

Failed setup #23

Closed eggenbef closed 1 year ago

eggenbef commented 1 year ago

Hi there I am getting the following error in HA when trying to set up this custom integration: image HA Version: 2023.7.2 Platform: python 3.11 virtual env running on ubuntu 22.04 home-assistant.log is attached. home-assistant.log.fault is empty Thank you for looking into this issue. (could potentially have the same root cause as issue #11) home-assistant_redacted.log

By increasing the default log level for all HA components I noticed the following entry which could potentially be relevant to get to the bottom of this issue: """ 2023-07-30 14:02:38.073 DEBUG (MainThread) [custom_components.meteoswiss] Finished fetching meteoswiss data in 0.479 seconds (success: False) 2023-07-30 14:02:38.075 DEBUG (MainThread) [homeassistant.config_entries] Config entry '[redacted by eggenbef] / Uetliberg' for meteoswiss integration not ready yet: 'iconDay'; Retrying in 10 seconds 2023-07-30 14:02:38.083 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [139947763530576] mw8-test from 127.0.0.1 (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0): Sending {"id":40,"type":"event","event":[{"type":"updated","entry":{"entry_id":"d9aec6ac3b70cb65855d0b845924a171","domain":"meteoswiss","title":"[redacted by eggenbef] / Uetliberg","source":"user","state":"setup_retry","supports_options":false,"supports_remove_device":false,"supports_unload":true,"pref_disable_new_entities":false,"pref_disable_polling":false,"disabled_by":null,"reason":"'iconDay'"}}]} """

eggenbef commented 1 year ago

Turns out that the interface to meteoswiss can't deal with the situation that a postal code is not unique but mapped to multiple municipalities. Selecting a neighboring municipality with a unique postal code resolved the issue.

jasminrueegger commented 3 months ago

Hey, I just had the same problem (plz 5054) and choosing a neighboring one worked for me as well. Thank you for the HA-integration of meteoswiss and this troubleshooting.