Donate if you like my work and this project has brought you joy https://www.paypal.com/donate?hosted_button_id=VNZ5AXWNEU238
| Version | Changes |
|---|---|
| v25.04.30 | Fix for error handling. |
| Resolved warning for deprecated property name. | |
| Scan Interval changed to 120 seconds to reduce api denials, Change to Calendar Versioning, Manifest to include Version | |
| moved import to help with performance. | |
| merged concept of claytonjn's idea of unlimited alerts. Sensor now will dump all alerts in (alerts_string) | |
| added "unit_of_measurement" HA property changed add_devices to add_entities to avoid future issues added throttle aka scan_interval config option |
|
| manifest.json is now working added init.py entity_id is now noaa_alerts_(your zone id) |
HomeAssistant Noaa Alerts Custom Sensor
Custom sensor using pypi(https://pypi.org/project/noaa-sdk/) noaa-sdk to get an alert sensor
To add noaa_alerts to your installation, download the latest release zip and copy noaa_alerts folder to <config directory>/custom_components/ and add the following to your configuration.yaml file:
Example configuration.yaml entry
sensor:
- platform: noaa_alerts
zoneid: YOUR_ZONE_ID
zoneid: ANOTHER_ZONE_IDConfiguration variables:
| key | description |
|---|---|
| zoneid (Optional) | Go to https://alerts.weather.gov/ scroll down to the states and click zone id. By default latitude/longitude will be taken from the Home Assistant configuration. Mulitple Zones accepted. |
| scan_interval (Optional) | Minimum time interval between updates. Default is 1 minute. Supported formats: scan_interval: 'HH:MM:SS' scan_interval: 'HH:MM' |
states: sensor will return the number of current alerts, attributes will be the 1st most severe alert, with exception of alerts_string. Naming format is noaa_alerts_<your zoneid here>.
| attribute | description |
|---|---|
| urgency | (Immediate, Expected, Future, Unknown) sorted in that order |
| event | event type |
| severity | severity level(minor, moderate, severe, extreme) |
| headline | summary headline of event |
| instruction | noaa recommended instructions for possible evacuation |
| description | full description of event |
| alerts_string | full json dump of all alerts in zone |