shoow i’m sorry. do your original format, just needed a card that accepted it. i had just grabbed a regular attribute sample from my setup. those aren’t under the attribute set (ie, they technically aren’t attributes of the entity).
i’m not positive that there isn’t a built in card that can handle arbitary jinja. this is the one i know that lets you essentally have a free form input box for you to do this.
the entity card allows you to pull entity and attributes, but last_changed and last_updated aren’t actually attributes.
so i don’t know for a fact that none of the default cards can do this, but i don’t know of any that can. someone else might correct me…
the truth is that the result has been very good, I was just asking if there was a default card to do it out of curiosity. the truth is that your solution has been very good.
I have a question with a template that I can’t do, I have a device that has 3 data:
humidity
temperature
battery
They are 3 different entities and each of them has its last_change and last_update. I have managed to show me FALSE or TRUE if it reaches a number of hours without sending me data from any of the 3 at once.
That code that I have implemented works for me, but I also wanted to add that of the 3 I would show me the most recent of them so that the display is something like:
Kitchen sensor
without battery? True
Last data: 2024.05.05 13:22:56
I don’t know how to make a conditional that returns the most current of all of them… the one that is less than the NOW time.
hi… i’m happy to help with this new question. it is a different question than the original so to be helpful for the community, we tend to like to have 1 question per thread. would you mind marking the post i did with the code as solution and starting a new post with the new question?