Display my sensor History in Lovelace home page

Hello,

First, sorry for my english, I’m from Belgium and I’ll do my best to be as much as understandable.

I have a door sensor with displayed state on my HA home page:

HA01

This is how I display this in my ui-lovelace.yaml:

      - type: entities
        title: Capteurs
        entities:
          - entity: binary_sensor.detecteurouvertureporteentree
            icon: 'mdi:door'
            secondary_info: last-changed
            state_color: true

If I click on the “Porte d’entrée” title, I’ve got these informations displayed:

HA02

My question is simple but I can’t find how to do it.
Is it possible to display the actual date and time of the last open state of my sensor instead of the “secondary_info” : “Il y a 2 heures” (which means “2 hours ago”) ?

In fact, if I restart HA, the “last-changed” state is set to 0 but not the “historic” display.

How can i do to display for example:
“Porte d’entrée - Fermé”
“Dernière ouverture : 31/10 à 10:00” (which mean “Last opening : 31/10 at 10:00”

Thanks for your help.

Christophe.

Small up for you to see my question.