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. 😌

#IndiPTips

This is a REST sensor, BTW. Details for making it work here: https://www.home-assistant.io/integrations/sensor.rest/
RESTful Sensor

Instructions on how to integrate REST sensors into Home Assistant.

Home Assistant