-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add readme.md and minor refactorings
- Loading branch information
Showing
6 changed files
with
109 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# DWD Pollenflug | ||
|
||
This component adds pollen forecasts from [Deutscher Wetterdienst (DWD)](https://www.dwd.de/DE/leistungen/gefahrenindizespollen/gefahrenindexpollen.html) to Home Assistant. | ||
|
||
The DWD provides forecasts for 27 regions in Germany. The data will be updated daily (currently at 11am) and the forecasts include the data for today and tomorrow (and the day after tomorrow on Friday). | ||
|
||
A forecast is provided for the following grass and tree pollen: | ||
- Alder (Erle) | ||
- Ambrosia (Ambrosia) | ||
- Ash (Esche) | ||
- Birch (Birke) | ||
- Hazel (Hasel) | ||
- Grass (Gräser) | ||
- Mugwort (Beifuss) | ||
- Rye (Roggen) | ||
|
||
This component fetches data every hour from DWD (although the data is only updated only once per day). | ||
|
||
If you like this component, please give it a star on [github](https://github.com/mampfes/hacs_dwd_pollenflug). | ||
|
||
## Installation | ||
|
||
1. Ensure that [HACS](https://hacs.xyz) is installed. | ||
2. Install **DWD Pollenflug** integration via HACS. | ||
3. Add **DWD Pollenflug** integration to Home Assistant (one per region): | ||
|
||
[![](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start?domain=dwd_pollenflug) | ||
|
||
In case you would like to install manually: | ||
|
||
1. Copy the folder `custom_components/dwd_pollenflug` to `custom_components` in your Home Assistant `config` folder. | ||
2. Add **DWD Pollenflug** integration to Home Assistant (one per region): | ||
|
||
[![](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start?domain=dwd_pollenflug) | ||
|
||
One instance of **DWD Pollenflug** covers one region. If you want to get the data from multiple regions, just add multiple instance of the **DWD Pollenflug** integration. | ||
|
||
## Sensors | ||
|
||
This integration provides one sensor per pollen type. The sensor is named according to the pollen type. | ||
|
||
### Sensor State | ||
|
||
The sensor state represents an index of the pollen count. DWD is using the following index range: | ||
|
||
Index | Description (in German) | ||
------|----------------------------------- | ||
0 | keine Belastung | ||
0.5 | keine bis geringe Belastung | ||
1 | geringe Belastung | ||
1.5 | geringe bis mittlere Belastung | ||
2 | mittlere Belastung | ||
2.5 | mittlere bis hohe Belastung | ||
3 | hohe Belastung | ||
|
||
|
||
### Sensor Attributes | ||
|
||
Each sensor provides the following attributes (not including default attributes): | ||
|
||
Attribute | Example | Description | ||
--------------------|---------------------------|------------------------------------------------------------------------- | ||
state_tomorrow | 1 | Forecast for tomorrow. | ||
state_in_2_days | 1 | Forecast for the day after tomorrow. | ||
state_today_desc | geringe Belastung | Human readable description of the forecast for today [in German]. | ||
state_tomorrow_desc | geringe Belastung | Human readable description of the forecast for tomorrow [in German]. | ||
state_in_2_days_desc| geringe Belastung | Human readable description of the forecast for the day after tomorrow [in German]. | ||
last_update | 2021-09-28T11:00:00+02:00 | Timestamp representing the last update of the data by DWD. | ||
next_update | 2021-09-29T11:00:00+02:00 | Timestamp representing the next update of the data by DWD. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters