Severe Weather Alerts

Eh, no skin off my teeth. :smile:

I never meant any negativity toward you in my replies above. Sorry if you took it that way.

Thanks for looking into this again, Tho. A little friendly nudge never hurts, right? :wink:

Hopefully you’ll never get any bad weather to test it with tho. I’ll be glad to help all I can.

No problem, I didn’t take it that way. The thing with the multiple posts cuts both ways. Sometimes you have to post things multiple times to get the right title to get attention to it. But when the devs and other people supporting the forum see the same message from the same person three or four different times during a week, it does get a little annoying. I don’t go through the forums as much as I should so it doesn’t bother me that much, but Tinkerer is on a lot and does try to help a lot. So I can see where it may get a little annoying. But you gotta do what you gotta do to keep things running. I actually didn’t see this post till you tagged me in it. I saw another of your posts on it and that got me working on it again.

1 Like

That I have less of an issue with than posting the same question in multiple places just minutes apart.

“Now that Weather Underground may not be continuing their API after the end of the year, does anyone know of a solution to continue receiving severe weather alerts?”

“With the demise of the WUnderground API and the associated alert functionality, what are HA users moving to to get severe weather alerts?”

"I know this is really old but did you ever get the NWS alerts working?

Weather Underground isn’t likely to be working any longer after the end of the year and having a backup is very desirable."

those aren’t the same question… They deal with a similar topic but they are’t the same question.

Is there a forum rule about this that I can reference the next time I have a question and I’m wondering if it might “annoy a dev”?

Will it make you feel less annoyed if I delete the post from yesterday (if I can even do that)? But without there being a new thread on this topic I’m not sure how many other people who might have another suggestion will see this thread and reply here seeing as this thread is 5 months old. I know I wouldn’t have seen it since I only look at new threads or threads I’m already previously tracking, and I barely have enough time to watch those threads as it is. So by deleting it you immediately cut the number of people who see a new post about this topic to ~5. That doesn’t seem very practical.

I’m really not trying to be a jerk but I’m honestly surprised that it’s turned into this much of an issue. It’s not like I abuse the forum on a daily basis. In the 13 moths I’ve been on here how many times has this happened? I don’t know of any.

Really? Because you’re acting like one.

You turned it into one. I asked you once to not post the same question multiple times - to avoid wasting other people’s time. The problem with posting the same question (and sure, the words were slightly different, but it’s the same question) in multiple places is that some people will see one, and answer that. Then others will be unaware that you’ve got an answer, and try to help you in the other one.

Post your work here. I’ll help test it. I’m in Texas… we always have severe weather.

1 Like

+1 I am also looking at automating this. I was looking for a long time for the list of possible types.
@Coolie1101 where did you find that list?

I am not using AppDeamon, so I think I will end up with template sensors and display them all in lovelace with a filter card (weather alerts is not 0).
Still need to test, but I hope Lovelace will not go mad on me for having sensors that have no state…

If somebody knows another workaround, please share. :wink:

I am personally glad you are asking. I find this a bit more important than what color hue my new light bulb should be.

1 Like

And for everyone that still uses WU until it goes away there is a good website that gives an example on how to make persistent notifications in HA.

If you haven’t seen it here it is:

I’ve made a few modifications to it to better work for my specific use. If you’re interested I can post the code but It’s mostly based on his work from the link above.

I’ve got a working pushbullet notification and a persistent notification on every page of the front end along with a (likely…) working announcement from my Echo dots. The dot announcement I just came up with recently and have only tested it with a simulated message that I created to test the search feature I implemented to only announce the real severe stuff instead of “it’s foggy outside” in the middle of the night. :smile:

And the announcement idea was the first thing of home automation that finally got my wife to say “wow, that’s a really good idea!”.

@Dixey @finity For what it’s worht: if you happen to live in Europe, you can try to use https://www.meteoalarm.eu/, which is where WU gets his European data from.
That in combination with https://github.com/waynedgrant/meteo-alarm-weather-warnings could be a hit I think.

I certainly am going to check this out…

1 Like

Thanks for the info! Unfortunately, it won’t help us since I’m in Indiana and Dixey is in Texas. But I’m sure it will be of great use to others.

I’ve been looking at the NWS api and it’s nothing like the WU underground so there isn’t much to be salvaged. How exactly do you use this? Are you using it with the AD Dashboard, or just to put a persistent notification on the HA page? One thing that was sort of in the old one was the ability to have it send the alert to a speaker. I have a app that lets me send messages to my Alexa’s. I’m going to add this to it, but if you don’t need it I won’t add it into version 1. Thanks

I have been using, and found extremely stable, the Alexa TTS addon from:

if you are taking requests. :slight_smile:

yea that’s what I’m using. I have it setup as a separate app under appdaemon so I can just trigger a SPEACH_EVENT, pass it the alexa device I want it to go to, and the message. it seems to work for the limited testing I have done with it for home.

and a little chat with the author last night showed me an easy way to set up so an emergency broadcast can be simultaneously sent to every echo in the house. (just put all your echos in a group and call on the group).

I only use it to get the special weather statements from NWS (via WU). I don’t use the component itself for notifications ( i didn’t know that it could do that). I use the alert function from WU then use the (modified) code from the link above to do the notification part.

I don’t use appdaemon. Everything is done in HA.

And lastly, I am also using the Alexa TTS function by @keatontaylor for the general warning announcement.

As long as I can get a (hopefully) similarly formatted sensor from the NWS then I should (hopefully) be able to work with it from there.

Thanks again.

This is the code that I’m using to trigger an alexa announcement based on the WU alert:

automation:
  - alias: Weather Alert Announcement
    trigger:
      platform: state
      entity_id: sensor.pws_alerts
    condition:
      condition: and
      conditions:
        - condition: template
          value_template: '{{states.sensor.pws_alerts.state | int > 0}}'
          ## Added a time condition because I don't want a non-emergency alert waking me up
        - condition: or
          conditions:
            - condition: time
              after: '09:00:00'
              before: '23:00:00'
            - condition: template
              value_template: >
                {{ 'Warning' in states.sensor.pws_alerts.attributes.Description }}
    action:
      - service: media_player.alexa_tts
        data:
          entity_id: 
            - media_player.computer_room_dot
            - media_player.kitchen_dot
            - media_player.livingroom_dot
            - media_player.master_bedroom_dot
          message: "Warning! Warning! The National Weather Service has issued a 
        {{ states.sensor.pws_alerts.attributes.Description }} for your area. 
        It expires at {{ states.sensor.pws_alerts.attributes.Expires }}."

I could have used a group for the dots but that would be just one more thing to set up that wasn’t really necessary.

Captured and archived for future stitching. Thank you.

finity,
This is where Tinkerer’s comment about multiple posts causing people to waste time comes in. One of your other posts the other day (US) National Weather Service Weather Alerts was related to an AppDaemon app I had written to send a persistent notification to HA, the Appdaemon Dashboard, and to a local speaker when a alert came up. I had said in an earlier post on that thread (like a year ago) that I would look into moving it to NWS. Your message about WU going away prompted me to go ahead and start looking into it like I said I would. I have now spent about a day re-writing that code to use NWS only to find that you aren’t using it at all. This is where the comment about wasting people’s time comes in.
There is no way you could have know this when you posted it. This is just an example of why shotgunning posts isn’t the best solution.
As it is, I am close to having my app re-written for NWS so I’ll update it on git hub and leave it for anyone that wants to use it for the AD Dashboard.

Yeah, I’m sorry but I don’t see anything at all in the other thread about it being related to using AppDaemon. You may have been thinking of that when you posted but you didn’t explicitly say the “the one I just did one for WeatherUnderground” was an AD app. I assumed it was referencing some custom component that you had done for WU because I think that was what cgarwood was asking for in his feature request in the OP. His OP also doesn’t say anything about AD. It was a specific request for a component based on the NWS RSS Alert system.

Specifically, “This would be useful for US users as you can get faster updates than you can get with the Weather Underground alerts.”

Then you replied that you had done one for WU and you could look into doing one for NWS.

I only simply asked if you had gotten anywhere with it. Assuming “it” was a custom component.

There are literally three posts in that entire thread.

If I missed something obvious to tell me that you were both talking about AD then I honestly apologize. But as of now I don’t see it.

And that miscommunication could have happened whether I posted there, here or somewhere else.

And FWIW, there’s nothing above in this thread that implies anything about me using AD either aside from the one post by cgarwood that I never felt I needed to respond to since i don’t use AD.

I’ll admit that maybe adding the new thread about this might have been a misjudgment on my part (which is why I volunteered to delete it) but I had good intentions. As posted above I thought no one would see a 5 month old thread so posting a new one would be prudent. I still don’t see it as “shotgunning” posts tho. Every post had a specific intention that were different but admittedly similar.

Again, sorry if I wasted any body’s time.