Finally managed to parse the new CDC #COVID data in #HomeAssistant:
- resource: "https://www.cdc.gov/wcms/vizdata/NCEZID_DIDRI/NWSSStateMap.json"
scan_interval: 86400
sensor:
- name: New York COVID-19 Wastewater Levels
value_template: "{{ value | regex_findall( find='\"state_name\".\"New York\",.*\"activity_level\".\"([0-9]*)\"' ) | first | float }}"
unique_id: rest_covid_ny
icon: mdi:molecule
state_class: measurement
Had to use a regex 'cause the CDC is serving invalid JSON. 😌
