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: "*&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

  - platform: scrape
    name: inzidenz_mannheim
    unit_of_measurement: "/100k"
    select: ".node__body > h2:nth-child(4)"

Gonna switch to your solution.

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

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