This integration retrieves updated weather alerts every minute from the US NWS API (by default but it can be changed in the config options).
You can configure the integration to use your NWS Zone, your precise location via GPS coordinates, or you can get dynamic location alerts by configuring the integration to use a device_tracker entity from HA as long as that device tracker provides GPS coordinates.
The integration presents the number of currently active alerts as the state of the sensor and lists many alert details as a list in the attributes of the sensor.
You can send specified alerts to the HA Mobile App or Announce them via Alexa devices.
You can also display the generated alerts in your frontend. For example usage see: https://github.com/Snuffy2/nws_alerts/blob/main/lovelace/alerts_tab
-
Confirm adding the custom repository if prompted
-
Download NWS Alerts
-
Restart Home Assistant
You probably do not want to do this! Use the HACS method above unless you know what you are doing and have a good reason as to why you are installing manually
-
Using the tool of choice open the directory (folder) for your HA configuration (where you find
configuration.yaml) -
If you do not have a
custom_componentsdirectory there, you need to create it -
In the
custom_componentsdirectory create a new folder callednws_alerts -
Download all the files from the
custom_components/nws_alerts/directory in this repository -
Place the files you downloaded in the new directory you created
-
Restart Home Assistant
-
Configure the integration by going to
Settings->Integrations -
Click on
+ Add Integrationbutton in the bottom right corner. -
Search for
NWS Alertsand select it to add the integration and start configuration.
NWS Alerts will default in the nearest Zones based on your Home location set in in HA. You can find other Zone or County IDs by going to https://alerts.weather.gov/. Scroll down to your state and click on the zone list and/or county list to find the desired entries.
There are a few configuration method options to select from. Please see the following link to help you decide which option to use: https://github.com/Snuffy2/nws_alerts/blob/main/lookup_options.md
If you select the Using a device tracker option under the GPS Location option then HA will use the GPS coordinates provided by that tracker to query for alerts so you should follow the same recommendations for using GPS coordinates when using that option.
Enable Send Alerts to Send specified alerts to the HA Mobile App or Announce them via Alexa devices.
Originally by @eracknaphobia
Forked from @finity69x2