This documentation applies to Weather Alerts version 2026.1.0 and newer.
Behavior and configuration may differ in earlier versions.
The integration includes robust error handling for NWS API outages.
If the API becomes unavailable:
- The last known good data is retained
- Alerts expired for more than 60 minutes are removed
- Error details are stored in the sensor
errorattribute
The sensor preserves:
- The most recent successful update
- The most recent failure
This information is available in the error attribute.
The error attribute is a two element array; error[0] and error[1]. error[0] will always contain the most recent API request status. If it is an error, then error[1] will contain the last logged successful API request. If error[0] changes from error condition back to a success condition, then error[1] will contain the last logged error.