Using Unifi Protect Cameras with Smart Detections to notify events

Hi,

I am using the Smart Detection: Person to notify me on my iphone and ipad via home assistant. My setup appears to be correct but I don’t get any notifications. However, if i use the standard motion detection option (Not smart detection), the automation works. What am I doing wrong?

here is my code below.

alias: Person Detected on Driveway
description: “”
trigger:

  • platform: state
    entity_id:
    • binary_sensor.g5_pro_driveway_west_detections_person
      to: “on”
      from: “off”
      id: Detects person from Unifi Camera Driveway West
  • platform: state
    entity_id:
    • binary_sensor.driveway_detections_person
      from: “off”
      to: “on”
      id: Detects person from Unifi Camera Driveway East
      condition: []
      action:
  • service: notify.mobile_app_ip12pro
    data:
    message: Someone is near or on your driveway.
    title: Person Detection Alert
  • service: notify.mobile_app_jeffs_ipad_home
    data:
    message: Someone is near or on your driveway.
    title: Person Detection Alert
    mode: single