Zone leave trigger working randomly

I have an automation triggered by leaving zone home:

  - platform: zone
    entity_id: person.filippo
    zone: zone.home
    event: leave
condition: []
  - service: input_boolean.turn_off
    data: {}
    entity_id: input_boolean.filippophysicalathome
mode: single

When I leave home, I can correctly see on the logbook that I left home. However, this automation gets fired most of the time, but not always.
Is there a way to debug it or do you have any suggestions?


What is/are the type of device_trackers used to determine the position of person.filippo?

I’ve just checked and it seems it was linked to two different gps instances from the phone, one of which is not used since I had to relogin from the app. I guess keeping only the active one will fix the issue.
I’m wondering though why everytime I login a new entity for the phone must be created, but I guess there are some technical reasons