home_assistant/entities/sensors/covid19.yaml

14 lines
871 B
YAML

# 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