Corona Incidence of a German County (Landkreis)

The integration Coronavirus delivers data for a whole country. A solution for a German state is provided here. Here is a sensor for incidence (Inzidenz) for a specific county in Germany:

- platform: rest
    name: rki_412_incidence
    resource: "https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=OBJECTID=412&outFields=*&outSR=4326&f=json"
    value_template: "{{ value_json.features[0].attributes.cases7_per_100k}}"

This sensor is tailored for „Steglitz/Zehlendorf“ in Berlin. In order to choose another county, just replace the OBJECTID 412 above with your findings from here.

This solution is based on the article „Corona-Ampel“ in ct 9/21 p. 160-162

This looks much more elegant than my Quick and Dirty scraping

#sensor:
  - platform: scrape
    name: inzidenz_mannheim
    unit_of_measurement: "/100k"
    resource: https://www.mannheim.de/de/informationen-zu-corona/aktuelle-rechtsvorschriften/inzidenzzahl
    select: ".node__body > h2:nth-child(4)"

Gonna switch to your solution.
Cheers!

There’s also a custom_component in HACS.

GitHub - thebino/rki_covid: 🦠 Custom integration for Home Assistant to monitor covid numbers provided by Robert-Koch Institut.

and has been posted a while ago: Local [Germany/Cologne] Coronavirus/Covid19-Data: Parse RESTful JSON Data from arcgis.com

Thanks for pointing out the alternatives. I was not aware of them.