Wifi (Fritzbox) device tracker automation

Hi,
I’m currently trying to setup presence detection using the connection status of devices. There is a tracked device, that correctly says “at home” or “away” and I’ve set up an automation to notify me via app (just as a test scenario) but that automation is never triggered. If I trigger it manually I get the notification. Can anyone point out, what I’m doing wrong? The device is the tracked device the fritzbox integration created. Here is my automation:

- id: '1647527947475'
  alias: lady leaving
  description: ''
  trigger:
  - platform: device
    device_id: #################
    domain: device_tracker
    entity_id: device_tracker.huawei_p30_lite_7665370c6
    type: leaves
    zone: zone.home
  condition: []
  action:
  - service: notify.mobile_app_galaxy_s9
    data:
      message: lady leaving
  mode: single

Thanks!

Hi Jadama,

I think youre using a wrong trigger. Please try a platform trigger “state”. In my automation:

platform: state
entity_id: group.awesome_people
from: not_home
to: home

Thank you! Tracking the home status of a person/group is really what I was after for. Seems Zones are more for GPS based tracking which makes sense!