Zone automation timer

Hi all,

I want to start a timer when I enter a zone but the automation isn’t triggering.

Can anyone see why?

alias: Sasha School Time Spent
description: “”
trigger:

  • platform: state
    entity_id:
    • person.nicholas
      to: zone.childrensplace
      for:
      hours: 0
      minutes: 1
      seconds: 0
      from: not_home
      condition:
  • condition: time
    before: “10:00:00”
    after: “09:00:00”
    weekday:
    • mon
    • tue
    • wed
    • thu
    • fri
      enabled: true
      action:
  • service: input_boolean.turn_on
    data: {}
    target:
    entity_id: input_boolean.sasha_school
  • service: notify.mobile_app_google_pixel_6
    data:
    message: "Sasha starting school "
    mode: single

Thanks

Try this:

  trigger:
    platform: zone
    entity_id: person.nicholas
    zone: zone.childrensplace
    event: enter

Thanks.

I wanted to use the for:

That’s why I didn’t use the zone as the trigger but it works ok after putting a time condition