Add config flow to Stookalert (#19620)

This commit is contained in:
Franck Nijhof 2021-10-11 14:41:40 +02:00 committed by GitHub
parent 8c1973049d
commit a8312db1d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,31 +8,13 @@ ha_release: 0.104
ha_iot_class: Cloud Polling
ha_codeowners:
- '@fwestenberg'
- '@frenck'
ha_domain: stookalert
ha_config_flow: true
ha_platforms:
- binary_sensor
---
The `stookalert` sensor platform queries the [RIVM Stookalert](https://www.rivm.nl/stookalert) API for unfavorable weather conditions or poor air quality. With a Stookalert, the RIVM calls on people not to burn wood. This can prevent health problems in people in the area.
The Stookalert integration queries the [RIVM Stookalert](https://www.rivm.nl/stookalert) API for unfavorable weather conditions or poor air quality. With a Stookalert, the RIVM calls on people not to burn wood. This can prevent health problems in people in the area.
## Configuration
To enable the platform, add the following lines to your `configuration.yaml` file:
```yaml
binary_sensor:
- platform: stookalert
province: YOUR_NL_PROVINCE
```
{% configuration %}
province:
description: A province to use for the binary sensor's state. Currently only provinces in the Netherlands are supported. Valid values are `Drenthe`, `Flevoland`, `Friesland`, `Gelderland`, `Groningen`, `Limburg`, `Noord-Brabant`, `Noord-Holland`, `Overijssel`, `Utrecht`, `Zeeland` or `Zuid-Holland`.
required: true
type: string
name:
description: The sensor name to use in the frontend.
required: false
default: "Stookalert"
type: string
{% endconfiguration %}
{% include integrations/config_flow.md %}