Get the time in a text field

Good morning,
In my installation, I have a detector and a zigbee siren (smartlife).
When the siren starts because someone has passed in front of the detector, I would like to display in text form the date and time of the detection, in my overview, I cannot do the automating.

Maybe you can help me and guide me please.

Thank you.