Home Assistant Custom Component for National Weather Service Warnings
- Place folder (nws_warnings) in custom_components folder
As of 2016.6 the updated manifest.json file is required for proper loading.
- Lookup Zone or County Code on NWS site https://www.weather.gov/lsx/
- Type in City and State and perform a lookup. Scroll down and pick "ZONE AREA FORCAST FOR XXXXXX COUNTY".
- ZoneID will be displayed in the URL
- Add configuration to Home Assistant sensors.yaml or configuration as a sensor
### WEATHER SERVICE Sensors
- platform: nws_warnings
zone_id: 'XXXXXX'
NWS Warnings will show a total count of alerts present for your county / zone.
- Severe Thunderstorm Warning
- Tornado Watch
- Tornado Warning
- Winter Storm Warning
TBD
##########################################################
## Tornado Warning
##########################################################
- alias: Weather - Tornado Warning
trigger:
- platform: state
entity_id: sensor.nws_tornado_warning
from: "0"
to: "1"
action:
- service: notify.mobile_app_USER1_iphone
data:
title: "Tornado Warning"
message: "NWS -- {{ states.sensor.nws_warnings.attributes.tornado_warning_headline }}"
data:
push:
sound:
name: default
critical: 1
volume: 1.0