The main issue is you need to add a User-Agent header. The value can be anything. This is mentioned in their documentation. (It says you need UserAgent, but that didn’t work. So I used curl’s -v option to find what it used and discovered it was User-Agent. That seems to work.)
Next you have to decide on the output format you want (based on the value of Accept.) You used ‘application/ld+json’ with curl and HA, but you didn’t specify with chrome, so you can see the output was different in chrome. These are also documented.
Lastly you need to make sure your value_template and/or json_attributes match the format you specified. E.g., with ‘application/ld+json’ none of the top-level keys you specified exist in the output.
Anyway, at least do this:
- platform: rest
resource: https://api.weather.gov/alerts/active?zone=INZ009
name: NWS Weather Alert
value_template: "{{ value_json.title }}"
headers:
User-Agent: homeassistant
Accept: application/ld+json
Adjust value_template and/or json_attributes as necessary.