home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.31k stars 30.62k forks source link

Entities are unavailable #68946

Closed seanomat closed 2 years ago

seanomat commented 2 years ago

The problem

The entity current_warning_level has the state "unavailable" with region id and region name.

What version of Home Assistant Core has the issue?

2022.3.8

What was the last working version of Home Assistant Core?

2022.3.7

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Deutscher Wetterdienst (DWD) Weather Warnings

Link to integration documentation on our website

https://www.home-assistant.io/integrations/dwd_weather_warnings

Diagnostics information

No response

Example YAML snippet

- platform: dwd_weather_warnings
    name: 'weather dwd'
#    region_name: 711000004 #'Berlin - Charlottenburg-Wilmersdorf'
    region_name: 'Berlin - Charlottenburg-Wilmersdorf'
    monitored_conditions:
      - current_warning_level

Anything in the logs that might be useful for us?

2022-03-31 04:07:42 DEBUG (SyncWorker_3) [homeassistant.components.dwd_weather_warnings.sensor] Update requested for None (None) by current_warning_level
2022-03-31 04:07:42 DEBUG (SyncWorker_3) [homeassistant.components.dwd_weather_warnings.sensor] Update performed

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

dwd_weather_warnings documentation dwd_weather_warnings source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @runningman84, @stephan192, @hummel95, mind taking a look at this issue as it has been labeled with an integration (dwd_weather_warnings) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

stephan192 commented 2 years ago

I guess the warnwell you've selected is outdated.

Quote from the documentation:

Some of the warncells are outdated but still listed. If setup fails search the list for a similar sounding warncell.

Please try another warncell. I would recommend one starting with 8xxx.

seanomat commented 2 years ago

I'm sorry fo not tying this before opening this issue. You are right. It works now.

diplix commented 2 years ago

I had a similar problem and for Berlin I had to choose a warncell id without a starting 8. This page suggests there’s a newer list of warncell ids (https://www.dwd.de/DE/leistungen/opendata/help/warnungen/cap_warncellids_landkreise_csv.csv) than the one linked in the documentation (https://www.dwd.de/DE/leistungen/opendata/help/warnungen/cap_warncellids_csv.csv).

So in essence I have this working config now:

  - platform: dwd_weather_warnings
    #region_name: 811000000 # not working for Berlin
    region_name: 111000000 # working for Berlin
    name: Warnwetter