custom-components / weatheralerts

A sensor that gives you weather alerts from alerts.weather.gov.
MIT License
127 stars 14 forks source link

Ignore specific types of alerts #54

Open davislp opened 2 years ago

davislp commented 2 years ago

Is there a way to not receive any alerts of a particular type? For example, I live in an area with a red flag alert every day. A UI notification is not necessary for these alerts as they happen every day, so being able to prevent them from triggering would be of great benefit. Is this possible? Thanks.

jlverhagen commented 2 years ago

I believe the short answer is maybe probably. A condition could be added to the UI Notification automation so it doesn't trigger on specified alerts. I'll have to test the behavior of the automation to ensure adding a condition to skip the notifications for certain alerts doesn't result in missing a notification for other important alerts if multiple different alerts are issued by the NWS in a short timeframe. If it works, I think I can add an input_text that can be configured in the Home Assistant UI and it would hold the alert names that should not trigger the UI notification.

davislp commented 2 years ago

That would be fantastic. Thank you for even looking into the possibility.

aram535 commented 2 years ago

I'm going to add my name to this. Would just deleting the alert from the recent active alerts work as a work around?

For example:

      weatheralerts_1_alert_5_most_recent_active_alert:                                                                                     
        icon_template: >-                                                     
          {% set mapper =  { 
-               '911 Telephone Outage Emergency' : 'hass:phone-alert',
Coolie1101 commented 1 year ago

Would also be nice to ignore "Test" messages, just had Alexa read out the following, which took a while.

Attention!!! Weather alert for Southern Westchester. A TEST Tsunami Warning issued November 22 at 1:57PM EST until November 22 at 2:57PM EST.  

 GMZ130-150-155-230-235-250-255-330-335-350-355-450-452-455- 532-534-536-538-550-552-555-630>635-650-655-730-750-755-765- 830-836-850-853-856-656-657-031-032-034-035-042>044-052>055- AMZ630-650-651-550-552-555-450-452-454-330-350-352-354-250- 252-254-256-130-135-150-152-154-156-158-ANZ631>638-656-658- 650-652-654-430-431-450>455-330-335-338-340-345-350-353-355- 230>237-250-254-255-256-150-050>052-TXZ251-256-257-242>247- 213-214-236>238-215-216-LAZ052>054-073-074-040-062-064-066>070- MSZ080>082-ALZ263>266-FLZ202-204-206-008-012-014-015-018-027- 028-034-139-142-148-149-050-151-155-160-162-165-069-070-075- 076>078-174-168-172-173-047-054-059-064-141-147-124-125-033- 038-GAZ154-166-117-119-139-141-SCZ048>052-054-056-NCZ106-108- 110-045>047-080-081-094-095-098-103-104-015>017-030>032-102- VAZ084-086-091-094-095-098-099-100-MDZ025-DEZ002>004-NJZ006- 012>014-021-023>026-106-108-NYZ071>075-078>081-176>179-CTZ009>012- RIZ002-004>008-MAZ007-016-019>024-NHZ014-MEZ022>028-029-030- NBZ570-550-660-641-NSZ210-230-260-250-110-120-130-170-160- 150-140-270-280-320-410-450-440-430-QCZ670-680-NLZ340-220- 230-210-120-132-140-241-242-110-131-540-530-570-520-510-560- 610-720-710-730-740-750-760-770-221957- [/T](tg://bot_command?command=T&bot=Coolie1101_Bot).NEW.PAAQ.TS.W.9025.221122T1857Z-221122T1957Z/ The U.S. east coast, Gulf of Mexico coasts, and Eastern Canadian coastal areas

...THIS_MESSAGE_IS_FOR_TEST_PURPOSES_ONLY...

...THIS IS A TEST TO DETERMINE TRANSMISSION TIMES INVOLVED IN THE DISSEMINATION OF TSUNAMI INFORMATION...

...ESTO ES UNA PRUEBA PARA DETERMINAR LOS TIEMPOS DE TRANSMISION ENVUELTOS EN LA DISEMINACION DE INFORMACION SOBRE TSUNAMIS...

 RESPONSES ARE REQUIRED FROM --------------------------- 
* All Coastal Weather Forecast Offices in the Eastern and Southern Regions - respond using tsunami message acknowledgment (TMA) procedures. Emergency alert systems and NOAA Weather Radio are NOT to be activated.

* State and Territorial Warning Points in ME, NH, MA, CT - RI, NY, NJ, DE, MD, PA, VA, NC, SC, GA, FL, AL - MS, LA, and TX.

* Joint Typhoon Warning Center in Hawaii

* Atlantic Storm Prediction Center NS, Government of Canada Operations Center, and Saint-Pierre et Miquelon.

 RESPONSES SHOULD INCLUDE ------------------------ 
* Time-of-receipt 
* Agency name 
* Email address 
* Phone number

 Weather Service Offices should respond in accordance with local directives. All others should reply by one of the available methods below.

 SEND RESPONSE BY ---------------- 
* Web - [ntwc.arh.noaa.gov/commtest/index.html](http://ntwc.arh.noaa.gov/commtest/index.html) 
* Email address - [ntwc@noaa.gov](mailto:ntwc@noaa.gov) 
* AFTN address  - PAAQYQYX 
* AWIPS         - TMA 
* Fax           - 907-745-6071

...THIS_MESSAGE_IS_FOR_TEST_PURPOSES_ONLY...

...THIS IS A TEST TO DETERMINE TRANSMISSION TIMES INVOLVED IN THE DISSEMINATION OF TSUNAMI INFORMATION...
IIAIronWolf commented 1 year ago

Would also be nice to ignore "Test" messages, just had Alexa read out the following, which took a while.


Attention!!! Weather alert for Southern Westchester. A TEST Tsunami Warning issued November 22 at 1:57PM EST until November 22 at 2:57PM EST.  

 GMZ130-150-155-230-235-250-255-330-335-350-355-450-452-455- 532-534-536-538-550-552-555-630>635-650-655-730-750-755-765- 830-836-850-853-856-656-657-031-032-034-035-042>044-052>055- AMZ630-650-651-550-552-555-450-452-454-330-350-352-354-250- 252-254-256-130-135-150-152-154-156-158-ANZ631>638-656-658- 650-652-654-430-431-450>455-330-335-338-340-345-350-353-355- 230>237-250-254-255-256-150-050>052-TXZ251-256-257-242>247- 213-214-236>238-215-216-LAZ052>054-073-074-040-062-064-066>070- MSZ080>082-ALZ263>266-FLZ202-204-206-008-012-014-015-018-027- 028-034-139-142-148-149-050-151-155-160-162-165-069-070-075- 076>078-174-168-172-173-047-054-059-064-141-147-124-125-033- 038-GAZ154-166-117-119-139-141-SCZ048>052-054-056-NCZ106-108- 110-045>047-080-081-094-095-098-103-104-015>017-030>032-102- VAZ084-086-091-094-095-098-099-100-MDZ025-DEZ002>004-NJZ006- 012>014-021-023>026-106-108-NYZ071>075-078>081-176>179-CTZ009>012- RIZ002-004>008-MAZ007-016-019>024-NHZ014-MEZ022>028-029-030- NBZ570-550-660-641-NSZ210-230-260-250-110-120-130-170-160- 150-140-270-280-320-410-450-440-430-QCZ670-680-NLZ340-220- 230-210-120-132-140-241-242-110-131-540-530-570-520-510-560- 610-720-710-730-740-750-760-770-221957- [/T](tg://bot_command?command=T&bot=Coolie1101_Bot).NEW.PAAQ.TS.W.9025.221122T1857Z-221122T1957Z/ The U.S. east coast, Gulf of Mexico coasts, and Eastern Canadian coastal areas

...THIS_MESSAGE_IS_FOR_TEST_PURPOSES_ONLY...

...THIS IS A TEST TO DETERMINE TRANSMISSION TIMES INVOLVED IN THE DISSEMINATION OF TSUNAMI INFORMATION...

...ESTO ES UNA PRUEBA PARA DETERMINAR LOS TIEMPOS DE TRANSMISION ENVUELTOS EN LA DISEMINACION DE INFORMACION SOBRE TSUNAMIS...

 RESPONSES ARE REQUIRED FROM --------------------------- 

* All Coastal Weather Forecast Offices in the Eastern and Southern Regions - respond using tsunami message acknowledgment (TMA) procedures. Emergency alert systems and NOAA Weather Radio are NOT to be activated.

* State and Territorial Warning Points in ME, NH, MA, CT - RI, NY, NJ, DE, MD, PA, VA, NC, SC, GA, FL, AL - MS, LA, and TX.

* Joint Typhoon Warning Center in Hawaii

* Atlantic Storm Prediction Center NS, Government of Canada Operations Center, and Saint-Pierre et Miquelon.

 RESPONSES SHOULD INCLUDE ------------------------ 

* Time-of-receipt 

* Agency name 

* Email address 

* Phone number

 Weather Service Offices should respond in accordance with local directives. All others should reply by one of the available methods below.

 SEND RESPONSE BY ---------------- 

* Web - [ntwc.arh.noaa.gov/commtest/index.html](http://ntwc.arh.noaa.gov/commtest/index.html) 

* Email address - [ntwc@noaa.gov](mailto:ntwc@noaa.gov) 

* AFTN address  - PAAQYQYX 

* AWIPS         - TMA 

* Fax           - 907-745-6071

...THIS_MESSAGE_IS_FOR_TEST_PURPOSES_ONLY...

...THIS IS A TEST TO DETERMINE TRANSMISSION TIMES INVOLVED IN THE DISSEMINATION OF TSUNAMI INFORMATION...

That's in your automation settings. My automation that does TTS only activates if it's a tornado warning.

noltondyer commented 1 year ago

Would also be nice to ignore "Test" messages, just had Alexa read out the following, which took a while.


Attention!!! Weather alert for Southern Westchester. A TEST Tsunami Warning issued November 22 at 1:57PM EST until November 22 at 2:57PM EST.  

 GMZ130-150-155-230-235-250-255-330-335-350-355-450-452-455- 532-534-536-538-550-552-555-630>635-650-655-730-750-755-765- 830-836-850-853-856-656-657-031-032-034-035-042>044-052>055- AMZ630-650-651-550-552-555-450-452-454-330-350-352-354-250- 252-254-256-130-135-150-152-154-156-158-ANZ631>638-656-658- 650-652-654-430-431-450>455-330-335-338-340-345-350-353-355- 230>237-250-254-255-256-150-050>052-TXZ251-256-257-242>247- 213-214-236>238-215-216-LAZ052>054-073-074-040-062-064-066>070- MSZ080>082-ALZ263>266-FLZ202-204-206-008-012-014-015-018-027- 028-034-139-142-148-149-050-151-155-160-162-165-069-070-075- 076>078-174-168-172-173-047-054-059-064-141-147-124-125-033- 038-GAZ154-166-117-119-139-141-SCZ048>052-054-056-NCZ106-108- 110-045>047-080-081-094-095-098-103-104-015>017-030>032-102- VAZ084-086-091-094-095-098-099-100-MDZ025-DEZ002>004-NJZ006- 012>014-021-023>026-106-108-NYZ071>075-078>081-176>179-CTZ009>012- RIZ002-004>008-MAZ007-016-019>024-NHZ014-MEZ022>028-029-030- NBZ570-550-660-641-NSZ210-230-260-250-110-120-130-170-160- 150-140-270-280-320-410-450-440-430-QCZ670-680-NLZ340-220- 230-210-120-132-140-241-242-110-131-540-530-570-520-510-560- 610-720-710-730-740-750-760-770-221957- [/T](tg://bot_command?command=T&bot=Coolie1101_Bot).NEW.PAAQ.TS.W.9025.221122T1857Z-221122T1957Z/ The U.S. east coast, Gulf of Mexico coasts, and Eastern Canadian coastal areas

...THIS_MESSAGE_IS_FOR_TEST_PURPOSES_ONLY...

...THIS IS A TEST TO DETERMINE TRANSMISSION TIMES INVOLVED IN THE DISSEMINATION OF TSUNAMI INFORMATION...

...ESTO ES UNA PRUEBA PARA DETERMINAR LOS TIEMPOS DE TRANSMISION ENVUELTOS EN LA DISEMINACION DE INFORMACION SOBRE TSUNAMIS...

 RESPONSES ARE REQUIRED FROM --------------------------- 

* All Coastal Weather Forecast Offices in the Eastern and Southern Regions - respond using tsunami message acknowledgment (TMA) procedures. Emergency alert systems and NOAA Weather Radio are NOT to be activated.

* State and Territorial Warning Points in ME, NH, MA, CT - RI, NY, NJ, DE, MD, PA, VA, NC, SC, GA, FL, AL - MS, LA, and TX.

* Joint Typhoon Warning Center in Hawaii

* Atlantic Storm Prediction Center NS, Government of Canada Operations Center, and Saint-Pierre et Miquelon.

 RESPONSES SHOULD INCLUDE ------------------------ 

* Time-of-receipt 

* Agency name 

* Email address 

* Phone number

 Weather Service Offices should respond in accordance with local directives. All others should reply by one of the available methods below.

 SEND RESPONSE BY ---------------- 

* Web - [ntwc.arh.noaa.gov/commtest/index.html](http://ntwc.arh.noaa.gov/commtest/index.html) 

* Email address - [ntwc@noaa.gov](mailto:ntwc@noaa.gov) 

* AFTN address  - PAAQYQYX 

* AWIPS         - TMA 

* Fax           - 907-745-6071

...THIS_MESSAGE_IS_FOR_TEST_PURPOSES_ONLY...

...THIS IS A TEST TO DETERMINE TRANSMISSION TIMES INVOLVED IN THE DISSEMINATION OF TSUNAMI INFORMATION...

That's in your automation settings. My automation that does TTS only activates if it's a tornado warning.

Old thread, I know, but I'm trying to figure this out currently... How were you able to isolate it to only tornado warnings? I've tried to adjust the config in a way that only responds to warnings containing "tornado warning" - but it still notifies for all of the alerts...

IIAIronWolf commented 6 months ago

@noltondyer were you able to get it figured out? If not, I can show how mine is setup.