Skip to content

dcshoecomp/noaa_alerts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.
v21.12.0 Resolved warning for deprecated property name.
v21.03.0 Scan Interval changed to 120 seconds to reduce api denials, Change to Calendar Versioning, Manifest to include Version
v0.0.9 moved import to help with performance.
v0.0.8 merged concept of claytonjn's idea of unlimited alerts. Sensor now will dump all alerts in (alerts_string)
v0.0.7 added "unit_of_measurement" HA property
changed add_devices to add_entities to avoid future issues
added throttle aka scan_interval config option
v0.0.6 manifest.json is now working
added init.py
entity_id is now noaa_alerts_(your zone id)

noaa_alerts

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_ID

Configuration 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

About

HomeAssistant Noaa Alerts Custom Sensor

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages