Notification on Zone Change

I am not getting the below notification when I leave home. If I hit run actions in the automation the notification works. This is a docker on the October release of HA. Any help appreciated.


alias: Send actionable notification when Mike leaves home
description: >-
  This will send an actionable notification to Mike's iPhone when he leaves
  home. 
trigger:
  - platform: geo_location
    zone: zone.home
    event: leave
    source: device_tracker.mike_s_iphone_13
    id: MikeLeavesHome
condition: []
action:
  - service: notify.pottshomebot
    data:
      title: Away mode?
      message: Mike has left home, should the home go into away mode?
      data:
        inline_keyboard:
          - Set the home to away?:/Command3
          - Mike is not leaving home!:/Command4
mode: single

Add an id: to the automation and then check the automation trace when it doesn’t work and it should tell you what the problem might be.

you’re using the wrong trigger. geo_location triggers only work off geo location sources. You want a zone trigger.

    - platform: zone
      entity_id: device_tracker.mike_s_iphone_13
      zone: zone.home
      event: leave

That was the answer, thanks for the help.

Now when I leave the home zone I get a telegram message asking if I want to run the away routine with a button to do so.