Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 2.85 KB

File metadata and controls

49 lines (36 loc) · 2.85 KB

Error Handling and API Fallback

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.

API Outage Behavior

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 error attribute

Error History

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.


Documentation Navigation

Support and Issues