add: Covid 19 sensors
This commit is contained in:
parent
bdb0721e11
commit
be7ec3495f
|
|
@ -0,0 +1,14 @@
|
||||||
|
# https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/917fc37a709542548cc3be077a786c17_0/api
|
||||||
|
|
||||||
|
|
||||||
|
- platform: rest
|
||||||
|
name: Corona_100k_olpe
|
||||||
|
resource: "https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=BL%20%3D%20%27NORDRHEIN-WESTFALEN%27%20AND%20GEN%20%3D%20%27OLPE%27&outFields=*&outSR=4326&f=json"
|
||||||
|
value_template: '{{ value_json.features[0].attributes.cases7_per_100k | float | round(0) }}'
|
||||||
|
scan_interval: 3600
|
||||||
|
|
||||||
|
- platform: rest
|
||||||
|
name: Corona_cases_olpe
|
||||||
|
resource: "https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=BL%20%3D%20%27NORDRHEIN-WESTFALEN%27%20AND%20GEN%20%3D%20%27OLPE%27&outFields=*&outSR=4326&f=json"
|
||||||
|
value_template: '{{ value_json.features[0].attributes.cases | float | round(0) }}'
|
||||||
|
scan_interval: 3600
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
# https://www.home-assistant.io/integrations/sensor/
|
||||||
|
|
||||||
|
sensor: !include_dir_merge_list ../entities/sensors
|
||||||
Loading…
Reference in New Issue