[Automation] Get event status in message

Hi all,

I have an automation like this :

- id: sophie_travail
  alias: notif_sophie_travail
  description: Sophie arrive ou quitte travail bordel
  trigger:
  - platform: geo_location
    source: person.fofo
    zone: zone.travail_sophie
    event: enter
  - platform: geo_location
    source: person.fofo
    zone: zone.travail_sophie
    event: leave
  condition: []
  action:
  - service: notify.mobile_app_tel_denis
    data:
      message: "Fofo {{trigger.event.data.event}} travail"
  mode: single

But after many many try, i can’t get if the event is enter or leave in my notfiy message…

( and how can i do the same for retrieve person or zone ? to understand automation syntax )

Any help will be appreciated ! thanks !

The trigger variable for geo_location doesn’t seem to be well documented. Based on looking at the code, I think you want trigger.event (which should be 'enter' or 'leave'.)

Them working with zone in replacement of geo_location, my bad, thanks !