--- title: Deutscher Wetterdienst (DWD) Weather Warnings description: Instructions on how to integrate Deutscher Wetterdienst weather warnings into Home Assistant. ha_category: - Weather ha_config_flow: true ha_release: 0.51 ha_iot_class: Cloud Polling ha_domain: dwd_weather_warnings ha_codeowners: - '@runningman84' - '@stephan192' - '@andarotajo' ha_platforms: - sensor ha_integration_type: service --- The **Deutscher Wetterdienst Weather Warnings** {% term integration %} uses the [Deutscher Wetterdienst (DWD)](https://www.dwd.de) as a source for current and advance weather warnings. The configured sensor checks for data every 15 minutes. {% include integrations/config_flow.md %} {% configuration_basic %} Warncell ID or name: description: Identifier of the region. It can be a warncell ID (integer) or a warncell name. It is heavily advised to use warncell ID because a warncell name is sometimes not unique. A list of valid warncell IDs and names can be found [here](https://www.dwd.de/DE/leistungen/opendata/help/warnungen/cap_warncellids_csv.html). Some of the warncells are outdated but still listed. If the setup fails, search the list for a similar sounding warncell. If the warncell name is not unique, `" (not unique used ID)!"` will be added to the reported `region_name`. Setting this field is required. {% endconfiguration_basic %} ### Attributes | Attribute | Description | | ------------ | -------------------------------------- | | `last_update` | *(time)* Time and date (UTC) of last update from DWD. | | `region_name` | *(str)* Requested region name. This should be the same as the region name in the configuration, if a name was given. | | `region_id` | *(int)* Region ID assigned by DWD. This should be the same as the region id in the configuration, if an id was given. | | `warning_count` | *(int)* Number of issued warnings. There can be more than one warning issued at once. | | `warning_` | *(list)* The warning as a whole object containing the following attributes as nested attributes. | | `warning__level` | *(int)* Issued warning level (0 - 4).
0: Keine Warnungen
1: Wetterwarnungen
2: Warnungen vor markantem Wetter
3: Unwetterwarnungen
4: Warnungen vor extremem Unwetter | | `warning__type` | *(int)* Issued warning type. More information can be found [here](https://www.dwd.de/DE/leistungen/opendata/help/warnungen/warning_codes_pdf.pdf?__blob=publicationFile&v=5). | | `warning__name` | *(str)* Warning name correlated with the warning type and represented as a short string. | | `warning__headline` | *(str)* Official headline of the weather warning. | | `warning__start` | *(time)* Starting time and date (UTC) of the issued warning. | | `warning__end` | *(time)* Ending time and date (UTC) of the issued warning. | | `warning__description` | *(str)* Details for the issued warning. | | `warning__instruction` | *(str)* The DWD sometimes provides helpful information about precautions to take for the issued warning. | | `warning__parameters` | *(list)* A list of additional warning parameters. More information can be found [here](https://www.dwd.de/DE/leistungen/opendata/help/warnungen/warning_codes_pdf.pdf?__blob=publicationFile&v=5). | | `warning__color` | *(str)* The DWD color of the warning encoded as `#rrggbb`. |
In the attribute name `x` is the counter of the warning starting from `1`.