Show last tripped time next to binary sensor

With the custom UI extension, I was able to show a list of binary sensors and it would show just beneath them the last time they tripped in relative time. So I could have a sensor that shows “Front Door” and the next line it would say “20 minutes ago” indicating that it was last tripped 20 min earlier.

With Lovelace UI, the custom UI no longer applies. Does anyone know of another way to display this info, and without taking up too much screen real estate?

There is a option for last-changed in the entities card (under secondary_info)

Awesome, works great, thanks for the pointer.

Its been a while for this topic…

I have a question. I have this implemented and it works well expect for 1 thing. Let me try to show:
If I have this:

entities:
  - entity: binary_sensor.sensor1
    secondary_info: last-changed
show_header_toggle: false
title: Motion
type: entities

It gives me this:
image

And if the sensor is tripped it goes to “0”.

But the only downturn is that when homeassistant is restarted all timers are restetted to “0”, not the actual time… why is that and how can I use for example the value “last_tripped_time”?