Remembering sensor trigger times

Hi, let me start by saying I have been searching for this one and haven’t found any prior posts that are on point. I am sure there must be, so sorry if this is obvious.

I would like for my glance lovelace card to display the last trigger time for open doors, motion, etc that comes from a sensor/binary sensor, similar to using the “show_last_changed”, except the last changed setting also takes on the time that the system was last reboot.

Please see attached screenshots of the cards I am trying to display the last trigger for.screenshot.2020-12-05 (1) screenshot.2020-12-05

what do you mean ‘trigger times’? These are sensors, not automations. Are you saying that these devices contain an attribute named ‘last_triggered’?

Thanks for the reply @petro.

So for example one of the the door/gate sensors would be binary_sensor.front_door_contact

They register as ‘open’ or ‘closed’. I am using “show_last_changed” on the entity card to show me when it was last opened. However, the problem is if you reboot the system, it wipes the last open time. So I was wondering if there was a better way of doing it.

Hopefully this explains it beter?

Anyone have ideas?