Dwd_weather_warnings sensor is always unavailable

since a sort time my dwd_weather_warnings sensor is always unavailable. I already changed the warncallid without any success. Has anybody an idea what’s wrong with dwd?
My current sensor look like this

platform: dwd_weather_warnings
region_name: Kreis Vulkaneifel

I can not find any log error’s or warning’s.

if I changed my region_name to ‘Hansestadt Hamburg’ like in the description example.
I get this error

Logger: homeassistant.components.sensor
Source: components/dwd_weather_warnings/sensor.py:80
Integration: Sensor (documentation, issues)
First occurred: 13:11:59 (1 occurrences)
Last logged: 13:11:59

Error while setting up dwd_weather_warnings platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 231, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/dwd_weather_warnings/sensor.py", line 80, in setup_platform
    api = WrappedDwDWWAPI(DwdWeatherWarningsAPI(region_name))
  File "/usr/local/lib/python3.8/site-packages/dwdwfsapi/weatherwarnings.py", line 181, in __init__
    self.__generate_query(identifier)
  File "/usr/local/lib/python3.8/site-packages/dwdwfsapi/weatherwarnings.py", line 245, in __generate_query
    self.warncell_id = result["features"][0]["properties"][
KeyError: 'WARNCELLID'

problem is already registered

1 Like

Problem was caused by changes in the DWD API. It’s adapted in 2021.6.3 Bump dwdwfsapi to 1.0.4 #51556