Severe Weather Alerts from the US National Weather Service

so, now that we’re in storm season for large parts of the US, how is everyone fairing with this? i set up both zone and coordinate alerts to test. usually they overlap, but i’ve found that having both on is crucial to get "all’ alerts. one time there was a horrible storm that formed quick, i got the zone alert but not the coord.

so you have to deal with redundant alerts all the time just to catch the few that don’t overlap. the alerts in my area area also extremely frequent sometimes. i get that this is just how it works, but damn they must have been testing fire alerts before it was even fire season. one day was just alert, alert, alert. i’ve added my own throttling, but this ties into my next thing…

the data structure! i appreciate the effort OP and idk if you have programming experience, but the use of attrs with these long strings that contain multiple values sometimes means the end user is writing all this parsing to really know whats going on. i have not done much in HA, but why wouldn’t these be a sensor or something? this feels like it’s 1:1 with their API response in this attr key:val format. multiple alerts it gets messy.

i’ve never really seen attributes used like this. feels like sensors that update with alerts would be better, and yes i’ve basically done that myself but i don’t really get why it’s not done out of the box as something you can nicely add to a card like most things. your average person would have a hard time using this in its current state imo.

i think this might also open up a way to stop redundant alerts, or at least open up a better way for users to configure groups of alerts. in my area, they follow name patterns such as “Severe Thunderstorm Warning”, “Flood Warning”, etc. there could be categories of alerts, etc. otherwise you have people implementing this 100 different ways and asking you why it doesn’t work.

just ranting, i’d honestly be fine if this stayed the way it is now. overall this plus a few radars i’ve felt very safe in regards to outdoor activities and gardening etc. kudos!

A quick comment on the coordinates-based alerts- It’s working great for me! I am super appreciative of the work finity and firstof9 put into this; we’ve had a very active storm season, and the coordinates-based alerting has saved me from numerous unnecessary alerts. With zone alerting, I would have easily received twice the alerts. So far, I have not found a situation where I didn’t receive a coordinate-based warning that the zone captured and I would have wanted.

the issue with making these attributes into sensors is for the reason you altready mentioned

entity states are strictly limited to 255 characters max and as you know the alert descriptions, instructions, etc can easily regularly exceed that. The only way to get that data is to put them into attributes. So even if the alerts are all broken up into individual sensors you would still need to use attributes in the sensor to get all the required info.

and I agree the parsing can be a bit tricky which is why I posted an example of how to do that in the repo.

I honestly don’t think there is a better way to get all the data that we currently do than with the way it is now.

I even have an example at the github repo for this too. :slightly_smiling_face:

could make a sensor per alert if you want, even make it like a toggle or dropdown like:

Combined (As it is now)
Individual (per alert)
Both (1 combined and a per alert)

EDIT: actually after thinking about it, I don’t think there’s a way to dynamically generate sensors it would have to be a fixed max for a per alert setup. :frowning:

I really doubt it would help much even if it was divided up.

not even taking into acount that the naming of each sensor would be really confusing especially as alerts come in and expire. I can’t even imagine what the sensor entity_ids would be to make it logically make sense as the alerts come and go. keeping track of that would be a nightmare I think.

1 Like

I wonder if there is something that could be learned from the way the Global Disaster Alert and Coordination System (GDACS) handles alerts. I believe the integration creates a sensor and then automatically creates and subsequently cleans up entities as alerts are issued and expire.

I’ll look into it to see how that works.

I’ve had that integration installed forever but I’ve never even looked at it so I don’t know what the entities look like when they are generated.

I guess that’s a good thing tho since it means that I’m not regularly affected by the alert events. :+1:

Individual sensors would definitely be “prettier” to look at in the entities list but unless you can trigger an automation when a new alert pops up with only the desired category it doesn’t matter how pretty they are.

So I still think that there is going to be a lot of templating to get the alert notifications in a useful manner and then extract the alert description from each alert of interest. It will just be changing from searching the descriptions of one entity for the correct phrase to trigger on to iterating thru all of the entities created by the integration for the correct phrase. And that will rely on how the entity_id is created to allow an easy filtering of just those entities created by the integration.

That said I don’t know how much use an individual sensor for each alert will end up being if the main goal is to make it user friendly.

I’m not totally against it but I can’t wrap my head around how it will be better enough (except the prettiness factor) to justify the entire reworking of the way things are now (not just the integration itself but also including the associated automations, displays etc) and that have worked really well for the years this integration has been around.

2 Likes

I was kicking around the idea of using events rather than having to parse a bunch of attributes.
The event would fire when a new alert came in. Events are super easy to automate from as well.

EDIT:

An example:

event_type: nws_alert
data:
  notification_source: event
  title: Air Quality Alert
  event_id: https://api.weather.gov/alerts/urn:oid:2.49.0.1.840.0.72264728021ae8674d4c2f8720b24c6410465e71.001.1
  message_type: Alert
  event_status: Actual
  event_severity: Unknown
  event_expires: 2023-07-02T21:00:00-07:00
  spoken_desc: OZONE HIGH POLLUTION ADVISORY FOR MARICOPA COUNTY INCLUDING THE PHOENIX METRO AREA THROUGH SUNDAY
  display_desc: ...
origin: LOCAL
time_fired: "2023-06-30T18:12:00.845828+00:00"
context:
  id: 01H46R2F6DQS7186AFNTB800WT
  parent_id: null
  user_id: null

Would you keep the sensor as well?

otherwise since events are kind of “ethereal” how would the user see the data in the front end?

I have a persistent notification that pops up on each new alert with the new alert data and a markdown card that uses the sensor to display all of the data for each current active alert. I really don’t want to lose “easy” access to that information.

with a bit of finagling I think I could still create the persistent notification but the markdown card is the biggest problem without a persistent sensor.

Ya I hadn’t gotten that far in the thinking, just thought it would be neat to do events :stuck_out_tongue:

The event setup would work great with sensors that come and go. I need to check out this GDACS integration.

Apologies for being late following up on this, but here is a current example of the updated alert issue:

Configured with zone MAZ013

Below is the attribute of the sensor (you can see the text from the old alert starts halfway down):

attribution: Data provided by Weather.gov
title: Tropical Cyclone Statement - Tropical Cyclone Statement
event_id: https://api.weather.gov/alerts/urn:oid:2.49.0.1.840.0.0d0da1101323598f6592345d4802540f19ca1069.001.1 - https://api.weather.gov/alerts/urn:oid:2.49.0.1.840.0.e71c7efa9724f27d1a129a04ec9240b4dddf3574.001.1
message_type: Alert - Alert
event_status: Actual - Actual
event_severity: Moderate - Moderate
event_expires: 2023-09-14T19:15:00-04:00 - 2023-09-14T13:15:00-04:00
display_desc: 
>
Headline: HURRICANE LEE EXPECTED TO IMPACT COASTAL NEW ENGLAND LATE FRIDAY INTO
SATURDAY NIGHT
Status: Actual
Message Type: Alert
Severity: Moderate
Certainty: Likely
Expires: 2023-09-14T19:15:00-04:00
Description: This product covers Southern New England

**HURRICANE LEE EXPECTED TO IMPACT COASTAL NEW ENGLAND LATE FRIDAY INTO
SATURDAY NIGHT**

NEW INFORMATION
---------------

* CHANGES TO WATCHES AND WARNINGS:
- The Tropical Storm Watch has been upgraded to a Tropical Storm
Warning for Barnstable MA, Dukes MA, Eastern Plymouth MA, and
Nantucket MA

* CURRENT WATCHES AND WARNINGS:
- A Tropical Storm Warning and Storm Surge Watch are in effect
for Barnstable MA and Nantucket MA
- A Tropical Storm Warning is in effect for Dukes MA and Eastern
Plymouth MA
- A Tropical Storm Watch is in effect for Block Island RI,
Bristol RI, Eastern Essex MA, Eastern Norfolk MA, Newport RI,
Southern Bristol MA, Southern Plymouth MA, Suffolk MA,
Washington RI, and Western Plymouth MA

* STORM INFORMATION:
- About 750 miles south of Nantucket MA
- 30.4N 68.3W
- Storm Intensity 90 mph
- Movement North or 360 degrees at 14 mph

SITUATION OVERVIEW
------------------

Hurricane Lee is forecast to pass offshore of southern New England on
Saturday but its impacts will extend far from the storm's center. Lee
will bring rough surf and possible storm surge flooding, damaging
winds, and bands of heavy rain to at least coastal areas of
Massachusetts and Rhode Island.

The following are the primary hazards of concern with Lee:

* Damaging wind - Winds will increase on Friday and remain gusty
through Saturday night. Tropical storm force winds are expected late
Friday night and Saturday near the coast, where downed branches or
trees are possible since trees are fully leafed and root systems may
be weakened from saturated soils. These winds and high seas will also
be dangerous for mariners.

* Storm surge - Storm surge flooding is possible on the bay side of
Cape Cod and the northern side of Nantucket, including Nantucket
Harbor, late Friday and Saturday. In addition, ocean beaches will
experience dangerous rip currents and significant beach erosion
through the weekend.

* Flooding rainfall - Bands of heavy rain may result in flash flooding
Friday night and Saturday, mainly near the coast. Rainfall totals of
1 to 4 inches are possible in a short period of time.

POTENTIAL IMPACTS
-----------------

* WIND:
Protect against hazardous wind having possible limited impacts across
coastal Massachusetts and Rhode Island. Potential impacts in this area
include:
- Damage to porches, awnings, carports, sheds, and unanchored
mobile homes. Unsecured lightweight objects blown about.
- Many large tree limbs broken off. A few trees snapped or
uprooted, but with greater numbers in places where trees are
shallow rooted. Some fences and roadway signs blown over.
- A few roads impassable from debris, particularly within urban
or heavily wooded places. Hazardous driving conditions on
bridges and other elevated roadways.
- Scattered power and communications outages.

Elsewhere across Southern New England, little to no impact is
anticipated.

* SURGE:
Prepare for storm surge flooding having possible significant impacts
across the bay side of Cape Cod and the northern side of Nantucket,
including Nantucket Harbor. Potential impacts in this area include:
- Sections of near-shore escape routes and secondary roads become
weakened or washed out, especially in usually vulnerable low
spots.
- Significant beach erosion with heavy surf breaching dunes. Strong
and numerous rip currents.

Also, prepare for locally hazardous surge having possible limited
impacts across the rest of the eastern Massachusetts coast. This
includes minor inundation of coastal roads and low lying areas.

* FLOODING RAIN:
Protect against locally hazardous rainfall flooding having possible
limited impacts across eastern Massachusetts. Potential impacts
include:
- Localized rainfall flooding may prompt a few evacuations.
- Rivers and tributaries may quickly rise with swifter currents.
Small streams, creeks, and ditches may become swollen and
overflow in spots.
- Flood waters can enter a few structures, especially in usually
vulnerable spots. A few places where rapid ponding of water
occurs at underpasses, low-lying spots, and poor drainage
areas. Several storm drains and retention ponds become
near-full and begin to overflow. Some brief road and bridge
closures.

Elsewhere across Southern New England, little to no impact is
anticipated.

PRECAUTIONARY/PREPAREDNESS ACTIONS
----------------------------------

* EVACUATIONS:

Listen to local official for recommended preparedness actions,
including possible evacuation. If ordered to evacuate, do so
immediately.

* OTHER PREPAREDNESS INFORMATION:

Now is the time to complete all preparations to protect life and
property in accordance with your emergency plan. Ensure you are in a
safe location before the onset of strong winds or possible flooding.

Keep cell phones well charged. Cell phone chargers for automobiles
can be helpful, but be aware of your risk for deadly carbon monoxide
poisoning if your car is left idling in a garage or other poorly
ventilated area.

If in a place that is vulnerable to high wind, such as near large
trees, a manufactured home, upper floors of a high-rise building, or
on a boat, consider moving to a safer shelter before the onset of
strong winds or flooding.

If you live in a place particularly vulnerable to flooding, such as
near the ocean, in a low-lying or poor drainage area, or near an
already swollen river, plan to move to safe shelter on higher ground.

Closely monitor weather.gov, NOAA Weather radio or local news outlets
for official storm information. Be ready to adapt to possible changes
to the forecast. Ensure you have multiple ways to receive weather
warnings.

* ADDITIONAL SOURCES OF INFORMATION:
- For information on appropriate preparations see ready.gov
- For information on creating an emergency plan see getagameplan.org
- For additional disaster preparedness information see redcross.org

NEXT UPDATE
-----------

The next local statement will be issued by the National Weather
Service in Boston/Norton MA around 6 PM EDT, or sooner if conditions
warrant.
Instruction: None

-


>
Headline: HURRICANE LEE EXPECTED TO IMPACT COASTAL NEW ENGLAND LATE FRIDAY INTO
SATURDAY NIGHT
Status: Actual
Message Type: Alert
Severity: Moderate
Certainty: Likely
Expires: 2023-09-14T13:15:00-04:00
Description: This product covers Southern New England

**HURRICANE LEE EXPECTED TO IMPACT COASTAL NEW ENGLAND LATE FRIDAY INTO
SATURDAY NIGHT**

NEW INFORMATION
---------------

* CHANGES TO WATCHES AND WARNINGS:
- None

* CURRENT WATCHES AND WARNINGS:
- A Storm Surge Watch and Tropical Storm Watch are in effect for
Barnstable MA and Nantucket MA
- A Tropical Storm Watch is in effect for Block Island RI,
Bristol RI, Dukes MA, Eastern Essex MA, Eastern Norfolk MA,
Eastern Plymouth MA, Newport RI, Southern Bristol MA, Southern
Plymouth MA, Suffolk MA, Washington RI, and Western Plymouth MA

* STORM INFORMATION:
- About 840 miles south of Nantucket MA
- 29.1N 68.1W
- Storm Intensity 100 mph
- Movement North or 350 degrees at 9 mph

SITUATION OVERVIEW
------------------

Hurricane Lee is forecast to pass offshore of southern New England on
Saturday but its impacts will extend far from the storm's center. Lee
should bring rough surf and possible storm surge flooding, damaging
winds, and bands of heavy rain to at least coastal areas of
Massachusetts and Rhode Island.

The following are the primary hazards of concern with Lee:

* Damaging wind - Winds will increase on Friday and remain gusty through
Saturday night. Tropical storm force winds are possible late Friday
night and Saturday near the coast, where downed branches or trees are
possible since trees are fully leafed and root systems may be
weakened from saturated soils. These winds and high seas will also be
dangerous for mariners.

* Storm surge - Life-threatening storm surge flooding is possible onthe
bay side of Cape Cod and the northern side of Nantucket, including
Nantucket Harbor, late Friday and Saturday. In addition, ocean
beaches will experience dangerous rip currents and significant beach
erosion through the weekend. Viewing the surf from jetties, piers, or
close to the shoreline will be extremely dangerous.

* Flooding rainfall - Bands of heavy rain may result in flash flooding
Friday night and Saturday, mainly near the coast. Rainfall totals of
2 to 4 inches are possible in a short period of time.

POTENTIAL IMPACTS
-----------------

* WIND:
Prepare for hazardous wind having possible limited impacts across
coastal Massachusetts and Rhode Island. Potential impacts in this
area include:
- Damage to porches, awnings, carports, sheds, and unanchored
mobile homes. Unsecured lightweight objects blown about.
- Many large tree limbs broken off. A few trees snapped or
uprooted, but with greater numbers in places where trees are
shallow rooted. Some fences and roadway signs blown over.
- A few roads impassable from debris, particularly within urban
or heavily wooded places. Hazardous driving conditions on
bridges and other elevated roadways.
- Scattered power and communications outages.

Elsewhere across Southern New England, little to no impact is
anticipated.

* SURGE:
Prepare for life-threatening surge having possible significant
impacts across the bay side of Cape Cod and the northern side of
Nantucket, including Nantucket Harbor. Potential impacts in this area
include:
- Sections of coastal roadways and secondary roads become flooded
and impassable, especially in usually vulnerable low spots.
- Significant beach erosion with heavy surf breaching dunes.
Strong and numerous rip currents.

Also, prepare for locally hazardous surge having possible limited
impacts across the rest of the eastern Massachusetts coast. This
includes minor inundation of coastal roads and low lying areas.

* FLOODING RAIN:
Prepare for locally hazardous rainfall flooding having possible
limited impacts across eastern Massachusetts. Potential impacts
include:
- Localized rainfall flooding may prompt a few evacuations.
- Rivers and tributaries may quickly rise with swifter currents.
Small streams, creeks, and ditches may become swollen and
overflow in spots.
- Flood waters can enter a few structures, especially in usually
vulnerable spots. A few places where rapid ponding of water
occurs at underpasses, low-lying spots, and poor drainage
areas. Several storm drains and retention ponds become
near-full and begin to overflow. Some brief road and bridge
closures.

Elsewhere across Southern New England, little to no impact is
anticipated.

PRECAUTIONARY/PREPAREDNESS ACTIONS
----------------------------------

* EVACUATIONS:
Listen to local official for recommended preparedness actions,
including possible evacuation. If ordered to evacuate, do so
immediately.

* OTHER PREPAREDNESS INFORMATION:
Now is the time to check your emergency plan and emergency supplies
kit and take necessary actions to protect your family and secure your
home or business.

If you live in a place particularly vulnerable to flooding, such as
near the ocean, in a low-lying or poor drainage area, or near an
already swollen river, plan to move to safe shelter on higher ground.

When securing your property, outside preparations should be concluded
as soon as possible before conditions deteriorate. The onset of
strong gusty winds or flooding can cause certain preparedness
activities to become unsafe.

Check on those who may not be fully aware of the situation or who are
unable to make personal preparations.

Closely monitor weather.gov, NOAA Weather Radio and local news
outlets for official storm information. Listen for possible changes
to the forecast.

* ADDITIONAL SOURCES OF INFORMATION:
- For information on appropriate preparations see ready.gov
- For information on creating an emergency plan see getagameplan.org
- For additional disaster preparedness information see redcross.org

NEXT UPDATE
-----------

The next local statement will be issued by the National Weather
Service in Boston/Norton MA around 12 PM EDT, or sooner if conditions
warrant.
Instruction: None
spoken_desc: HURRICANE LEE EXPECTED TO IMPACT COASTAL NEW ENGLAND LATE FRIDAY INTO
SATURDAY NIGHT

-

HURRICANE LEE EXPECTED TO IMPACT COASTAL NEW ENGLAND LATE FRIDAY INTO
SATURDAY NIGHT
icon: mdi:alert
friendly_name: NWS Alerts: Western Norfolk County MA

In case the alert on the web site gets updated/removed, here’s what it is currently showing:

Message:	NOAA-NWS-ALERTS-MA12666073944C.HurricaneLocalStatement.12666074CCCCMA.BOXHLSBOX.99aa5a28d727defeb7ff065e49f2195a from [email protected]
Sent:	11:15 EDT on 09-14-2023
Effective:	11:15 EDT on 09-14-2023
Expires:	19:15 EDT on 09-14-2023
Event:	Hurricane Local Statement
Alert:	
This product covers Southern New England 
 
**HURRICANE LEE EXPECTED TO IMPACT COASTAL NEW ENGLAND LATE FRIDAY INTO 
SATURDAY NIGHT** 
NEW INFORMATION 
--------------- 
 
* CHANGES TO WATCHES AND WARNINGS: 
- The Tropical Storm Watch has been upgraded to a Tropical Storm 
Warning for Barnstable MA, Dukes MA, Eastern Plymouth MA, and 
Nantucket MA 
 
* CURRENT WATCHES AND WARNINGS: 
- A Tropical Storm Warning and Storm Surge Watch are in effect 
for Barnstable MA and Nantucket MA 
- A Tropical Storm Warning is in effect for Dukes MA and Eastern 
Plymouth MA 
- A Tropical Storm Watch is in effect for Block Island RI, 
Bristol RI, Eastern Essex MA, Eastern Norfolk MA, Newport RI, 
Southern Bristol MA, Southern Plymouth MA, Suffolk MA, 
Washington RI, and Western Plymouth MA 
 
* STORM INFORMATION: 
- About 750 miles south of Nantucket MA 
- 30.4N 68.3W 
- Storm Intensity 90 mph 
- Movement North or 360 degrees at 14 mph 
SITUATION OVERVIEW 
------------------ 
Hurricane Lee is forecast to pass offshore of southern New England on 
Saturday but its impacts will extend far from the storm`s center. Lee 
will bring rough surf and possible storm surge flooding, damaging 
winds, and bands of heavy rain to at least coastal areas of 
Massachusetts and Rhode Island. 
The following are the primary hazards of concern with Lee: 
 
* Damaging wind - Winds will increase on Friday and remain gusty 
through Saturday night. Tropical storm force winds are expected late 
Friday night and Saturday near the coast, where downed branches or 
trees are possible since trees are fully leafed and root systems may 
be weakened from saturated soils. These winds and high seas will also 
be dangerous for mariners. 
 
* Storm surge - Storm surge flooding is possible on the bay side of 
Cape Cod and the northern side of Nantucket, including Nantucket 
Harbor, late Friday and Saturday. In addition, ocean beaches will 
experience dangerous rip currents and significant beach erosion 
through the weekend. 
 
* Flooding rainfall - Bands of heavy rain may result in flash flooding 
Friday night and Saturday, mainly near the coast. Rainfall totals of 
1 to 4 inches are possible in a short period of time. 
POTENTIAL IMPACTS 
----------------- 
 
* WIND: 
Protect against hazardous wind having possible limited impacts across 
coastal Massachusetts and Rhode Island. Potential impacts in this area 
include: 
- Damage to porches, awnings, carports, sheds, and unanchored 
mobile homes. Unsecured lightweight objects blown about. 
- Many large tree limbs broken off. A few trees snapped or 
uprooted, but with greater numbers in places where trees are 
shallow rooted. Some fences and roadway signs blown over. 
- A few roads impassable from debris, particularly within urban 
or heavily wooded places. Hazardous driving conditions on 
bridges and other elevated roadways. 
- Scattered power and communications outages. 
Elsewhere across Southern New England, little to no impact is 
anticipated. 
 
* SURGE: 
Prepare for storm surge flooding having possible significant impacts 
across the bay side of Cape Cod and the northern side of Nantucket, 
including Nantucket Harbor. Potential impacts in this area include: 
- Sections of near-shore escape routes and secondary roads become 
weakened or washed out, especially in usually vulnerable low 
spots. 
- Significant beach erosion with heavy surf breaching dunes. Strong 
and numerous rip currents. 
Also, prepare for locally hazardous surge having possible limited 
impacts across the rest of the eastern Massachusetts coast. This 
includes minor inundation of coastal roads and low lying areas. 
 
* FLOODING RAIN: 
Protect against locally hazardous rainfall flooding having possible 
limited impacts across eastern Massachusetts. Potential impacts 
include: 
- Localized rainfall flooding may prompt a few evacuations. 
- Rivers and tributaries may quickly rise with swifter currents. 
Small streams, creeks, and ditches may become swollen and 
overflow in spots. 
- Flood waters can enter a few structures, especially in usually 
vulnerable spots. A few places where rapid ponding of water 
occurs at underpasses, low-lying spots, and poor drainage 
areas. Several storm drains and retention ponds become 
near-full and begin to overflow. Some brief road and bridge 
closures. 
Elsewhere across Southern New England, little to no impact is 
anticipated. 
PRECAUTIONARY/PREPAREDNESS ACTIONS 
---------------------------------- 
 
* EVACUATIONS: 
Listen to local official for recommended preparedness actions, 
including possible evacuation. If ordered to evacuate, do so 
immediately. 
 
* OTHER PREPAREDNESS INFORMATION: 
Now is the time to complete all preparations to protect life and 
property in accordance with your emergency plan. Ensure you are in a 
safe location before the onset of strong winds or possible flooding. 
Keep cell phones well charged. Cell phone chargers for automobiles 
can be helpful, but be aware of your risk for deadly carbon monoxide 
poisoning if your car is left idling in a garage or other poorly 
ventilated area. 
If in a place that is vulnerable to high wind, such as near large 
trees, a manufactured home, upper floors of a high-rise building, or 
on a boat, consider moving to a safer shelter before the onset of 
strong winds or flooding. 
If you live in a place particularly vulnerable to flooding, such as 
near the ocean, in a low-lying or poor drainage area, or near an 
already swollen river, plan to move to safe shelter on higher ground. 
Closely monitor weather.gov, NOAA Weather radio or local news outlets 
for official storm information. Be ready to adapt to possible changes 
to the forecast. Ensure you have multiple ways to receive weather 
warnings. 
 
* ADDITIONAL SOURCES OF INFORMATION: 
- For information on appropriate preparations see ready.gov 
- For information on creating an emergency plan see getagameplan.org 
- For additional disaster preparedness information see redcross.org 
NEXT UPDATE 
----------- 
The next local statement will be issued by the National Weather 
Service in Boston/Norton MA around 6 PM EDT, or sooner if conditions 
warrant.
Instructions:	
Target Area:	
Barnstable
Central Middlesex County
Dukes
Eastern Essex
Eastern Franklin
Eastern Hampden
Eastern Hampshire
Eastern Norfolk
Eastern Plymouth
Nantucket
Northern Bristol
Northern Worcester
Northwest Middlesex County
Southeast Middlesex
Southern Bristol
Southern Plymouth
Southern Worcester
Suffolk
Western Essex
Western Franklin
Western Hampden
Western Hampshire
Western Norfolk
Western Plymouth

I looked at the data you provided and I think I need to just reiterate my thoughts from before.

I don’t see how to say one of those is an “update” of another event when one doesn’t reference the other.

in your example the message type doesn’t even say that it was an update in either of those messages to indicate that it even is an update.

the only obvious thing I see that denotes that one might be an update is under the “new information->changes to watches and warnings” section one has info there and the other says “none”.

I suppose you could do some templating to say “if ‘headline_1’ is equal to ‘headline_2’ and that ‘changes_to_watches_and_warnings_2’ is not ‘none’” then it’s an update.

1 Like

Hi everyone,

I’m still hovering this wonderful thread. Unfortunately, I’ve gotten a little off track. Is there a set of instructions like before that had the Automation, script and other information in it, I’m not able to find that. Also, it looks like there are TWO options now from the updates automation.

I would really appreciate it if someone could add the link for me. Thank you all in advance. As well as this is great work from all those that have make it possible.

Is this what you are looking for?

I’m not really sure what you mean here.

1 Like

Yes Sir, thank you as always, I’m still amazed at the great work you all are doing with this. For those of us in the volitale regions its a vital piece of safety. Disregard the last part of my earlier question about the two changes, it was late and I think I was just out of it.

I had to comment out the variable. Whenever it’s not commented out I can’t restart HA. I see two errors in the log:

  1. init.py -
  2. Invalid config for [input_boolean]: [value] is an invalid

Any ideas of why this is ?

Which variable?

can you show me the section of code that you needed to comment out in context?

I get a repair notice for: NWS Update Event ID variable uses an UNKNOWN service!

This is the code I had to comment out which is why this UI Repair message is thrown:

#variable:

nws_alerts_event_ids:

value: ‘none’

restore: true

If I un-comment this variable, I get the following error in the log:

Error handling request
Source: components/hassio/init.py:597

The system cannot restart because the configuration is not valid: Invalid config for [input_boolean]: [value] is an invalid option for [input_boolean]. Check: input_boolean->input_boolean->nws_alerts_event_ids->value. (See ?, line ?)
(Error) Home Assistant Supervisor

the “variable” integration is a custom integration that needs installed separately and isn’t necessary for the NWS Alerts integration to function.

It actually states that in the repo package:

############################## VARIABLE  #####################################

## this uses the hass_variable custom component.
## you can install thru HACS or manually from https://github.com/Wibias/hass-variables

variable:
  nws_alerts_event_ids:
    value: 'none'
    restore: true

But also unfortunately the developer of the “hass_variable” integration has changed things since I uploaded that example package and that custom integration no longer uses the “variable” domain any more.

I’m on an older version of the integration that still uses the variable domain so it works for me.

If you want to use that integration and the repo as is then install the “hass_variable” (variables+history) integration version 2.3.6

EDIT:

Actually disregard that section below.

I haven’t developed that template sensor fully yet so it won’t solve your problem.

I recommend just installing the older version of the above integration.

instead replace that section with the following and you should get the same functionality:

</s> <s>template:</s> <s> - trigger:</s> <s> - platform: state</s> <s> entity_id: sensor.nws_alerts</s> <s> sensor:</s> <s> - name: NWS Alerts Event IDs</s> <s> state: "{{ (trigger.to_state.attributes.event_id).split('-')[0] }}"</s> <s> attributes:</s> <s> history: ></s> <s> {% set current = this.attributes.get('history', []) %}</s> <s> {% set new = [{</s> <s> "name": trigger.to_state.name,</s> <s> "time": now().isoformat() }] %}</s> <s> {{ (new + current)[:10] }} </s> <s>

I saw that disclaimer, brain did not compute! In any case I commented out the variables and all loads as it should.

Truly, thank you again

I’m working on an update using the latest version of the variables integration so I’ll post back here when it’s ready

1 Like