Dlib Automationi

Need help with an automation, I got dlib to work, but don’t know how to create a working automation to it. This is one of my not working automatons.

alias: Kameran ser vem 2

description: ''

trigger:

 - platform: template

    value_template: '{{state_attr(image_processing.face_identify), ''faces''}}'

condition:

 - condition: template

    value_template: '[{"name": "Jorgen","entity_id": "image_processing.face_identify"}]'

action:

  - service: notify.mobile_app_sm_g950f

    data:

      message: kameran ser Jorgen

      title: face

mode: single

Please read this and post your code like it says in point 11

Probably this link helps:

Image Processing - Home Assistant (home-assistant.io)

no luck! :confused:
this is my latest one

alias: Kameran ser Madde
description: ''
trigger:
  - platform: event
    event_type: image_processing.face_identify
    event_data:
      entity_id: image_processing.face_identify
      name: Madeleine
condition: []
action:
  - service: notify.mobile_app_sm_g950f
    data:
      message: kameran ser Madde
      title: Face identify
mode: single