diff --git a/source/_components/sensor.dwd_weather_warnings.markdown b/source/_components/sensor.dwd_weather_warnings.markdown index 9d4b14c472c..99822cafe28 100644 --- a/source/_components/sensor.dwd_weather_warnings.markdown +++ b/source/_components/sensor.dwd_weather_warnings.markdown @@ -27,7 +27,7 @@ sensor: region_name: Hansestadt Hamburg ``` -
+
As it suggests the region name is not the city or nearest city you want to get the warnings for but the next higher level of the governmental district called "Kreis" in German. Be aware, to get the region name you need to use the following link by replacing `Hamburg` with your city: @@ -36,12 +36,6 @@ Be aware, to get the region name you need to use the following link by replacing - Verify if you find any warning for your region here. Your region ("Kreis") will appear only if warnings exist: `https://www.dwd.de/DWD/warnungen/warnapp_landkreise/json/warnings.json?jsonp=loadWarnings`
-The warning level is between 0 (no danger) and 4 (extreme weather conditions): -- Warnungen vor extremem Unwetter (Stufe 4) -- Unwetterwarnungen (Stufe 3) -- Warnungen vor markantem Wetter (Stufe 2) -- Wetterwarnungen (Stufe 1) - {% configuration %} region_name: required: false @@ -54,3 +48,25 @@ name: type: string default: DWD-Weather-Warnings {% endconfiguration %} + +### {% linkable_title Attributes %} + +| Attribute | Description | +| ------------ | -------------------------------------- | +| `last_updated` | Information last update from DWD service. | +| `region_name` | Requested region name. This should be the same as the region name in the configuration. | +| `region_state` | State (Bundesland) in abriviated form the requested region is located, eg. "HE" for "Hessen". | +| `region_id` | Region ID assigned by DWD. | +| `warning_count` | *(int)* Number of issued warnings. There can be more than one warning issued at once. | +| `warning_+In the attribute name `x` is the counter of the warning starting from `1`. +