-
Notifications
You must be signed in to change notification settings - Fork 32
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
Comments
Hi |
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. |
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? |
The alerts will be hidden unless you have any it only shows current alerts. title: Alerts I've updated the YAML formatting below to past directly into the view edit in YAML editor. Updated Alerts View Configuration YAML.txt This is what mine looks like with no alerts. 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. As you can see I have no alerts so no Attributes data to show |
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 |
I Updated the New Alerts View.txt to work with the latest update
Updated Alerts View.txt
The text was updated successfully, but these errors were encountered: