Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Snuffy2/nws_alerts

 
 

Repository files navigation

Alerts from the US National Weather Service (nws_alerts)

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

Installation

HACS

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

  1. Confirm adding the custom repository if prompted

  2. Download NWS Alerts

  3. Restart Home Assistant

Manually

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

  1. Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml)

  2. If you do not have a custom_components directory there, you need to create it

  3. In the custom_components directory create a new folder called nws_alerts

  4. Download all the files from the custom_components/nws_alerts/ directory in this repository

  5. Place the files you downloaded in the new directory you created

  6. Restart Home Assistant

Adding Integration

Open your Home Assistant instance and install an integration.

Manually

  1. Configure the integration by going to Settings->Integrations

  2. Click on + Add Integration button in the bottom right corner.

  3. Search for NWS Alerts and select it to add the integration and start configuration.

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.

Previous Authors

Originally by @eracknaphobia

Forked from @finity69x2

About

The nws_alerts custom integration for Home Assistant

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%