Last zone exited

Hi all,

I’ve a person component track track me during the day. If I enter in a railway station zone in a time range it triggers an automation that says to my wife which train I’m going to take.

But my wife is quite analog so she didn’t like to receive sms notification and she often miss broadcast messagges.

I would like to set a routine that says “Where is my husband?” triggers an automation that says the last zone in which I was and, based on that the train that i took, for example:

ZONE 1: He took the train starting from ZONE 1 and will arrive in …

ZONE 2 : He took the train starting from ZONE 1 and will arrive in …

How can I achieve that?

Thank you in advance!