Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated New Alerts View.txt #104

Open
firebird71 opened this issue Jan 19, 2025 · 5 comments
Open

Updated New Alerts View.txt #104

firebird71 opened this issue Jan 19, 2025 · 5 comments

Comments

@firebird71
Copy link

I Updated the New Alerts View.txt to work with the latest update

Updated Alerts View.txt

@sys1aeg
Copy link

sys1aeg commented Jan 23, 2025

Hi
Can you instruct me on installing this through the UI ? also how do you handle multiple zone alerts
the GPS option seams to be very complex.

@firebird71
Copy link
Author

@sys1aeg

Probably the easiest way to install is to add a new view then in the View Configuration click the three dots and select Edit in YAML remove the - before title in my txt file and past it in.

This was just something I threw together to demonstrate how to use the for loop in a template to extract the data for use and I only use one zone so no idea on that.

If you go into developer tools and template them past in everything after content: > ending with the {% endfor %} you can play with it. You have to have active nws alerts to be available to see anything.

Hope this helps.

@joebarrontv
Copy link

Is this the solution I need to be able to read the actual alerts after the update? All I can see now is a log of the changes and I can no longer find a way to read the actual alerts?

@firebird71
Copy link
Author

The alerts will be hidden unless you have any it only shows current alerts.

Image

title: Alerts
type: panel
cards:
is part of the view or page that you setup. Everything after cards are the cards in the view.

I've updated the YAML formatting below to past directly into the view edit in YAML editor.
if you have the view already then just paste everything below the cards: line

Updated Alerts View Configuration YAML.txt

This is what mine looks like with no alerts.
Image

It's not "Full Featured" just a basic outline of how to use the templating to get the information to a view while hiding all the cards when you have no alerts. I can only work on it when I have Active Alerts so that's pretty infrequently. and it does not log or view past alerts or anything like that.

Make sure that sensor.nws_alerts_alerts is the name of the entity you can check in developer tools > States and filter for nws.

This is the Developer tools states view, If you have any alerts they will show up under Attributes and you can see how the code works then and modify it to work with your setup.

Image

As you can see I have no alerts so no Attributes data to show

@joebarrontv
Copy link

Wow! Thanks Chris,

I approached the detailed response,

I tried your code and I’m getting the same thing i was getting before,

I think sense updating to 2025.2 it moved the furniture somehow on the card and you have to press the “attributes” button below the change-log to read the text from the alerts. I wish there was a way to strip the body of these alerts into a text helper.

See attached below

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants