Thanks so much for the reply! I would like to display this in a card on the dashboard. When I put that into the template editor, it gives me TypeError: unhashable type: 'slice'
Your suggestion to use split assumes each item in the list is a string. The first template I posted made the same assumption (and attempted to slice off the first 7 characters of the string). However it resulted in an error, so it’s not a string. I’m led to believe each list item is a dictionary (where the key is title and its value is a string).
The template I posted uses a for-loop to display all of the available warnings. If there are no warnings, nothing will be displayed (and the template won’t produce an error message).
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title signaling to other users that this topic has been resolved. This helps users find answers to similar questions.
I do have one more question for you. You can see from my post from 3 days ago how it looks with 3 alerts. Do you know why it looks like this with only 2 alerts…
In order to answer your question I would need to see the sensor’s screenshot (like the one in your first post) displaying the two alerts in its entries attribute.
I needed to see a screenshot of the sensor’s details, like the image in your first post. However, it’s probably too late now because there are no current advisories for your area.