I have a lot of Zigbee contact sensors around the home and use the Tile Card to show their state, and last opened.
Using the Card-Mod, the Icon color changes according to the state of the contact (open=red, closed=green, unknown=yellow). And with a Trigger Sensor, it keeps track of the last time the sensor was opened.
But these Zigbee sensors expose more information that I’d like to track in the same compact tile card:
Battery Level
Signal Strength
I tried the Entites card with just a single entity, but the last trigger time only updates every few minutes, I could only show either battery level or signal strength on the right (not both), and that card is a lot taller than a Tile Card.
Mushroom-card is slightly better with templatable primary and secondary info, but it seems to be a resource hog and updated really slowly.
Can’t you just add these attributes as part of a list under the state_content key (if editing the raw YAML code - not sure what that looks like in the UI Edit view) on the Tile card?
The documentation has a couple of examples that look similar to what you want to achieve at least.
I previously read that in the Tile card docs and it flew right over my head!
This ‘almost’ works now. Problem is the last-open timestamp reports last reboot as well as last time contact was opened.
I should have known this really - the difference between the 2 is explained very clearly in this thread, but both values get reset when you restart HA, the reason for which is explained here.
But, since I have ‘last_open’ as an attribute in ‘sensor.my_test_contact’, is it possible for format it in the ‘state_content’ list to match the output of the simple Tile card?
This almost works, it only updates about every minute instead of the default Tile behavior of updating every second for the first 45 seconds, then every minute, hours, etc…