Automation : not working

Hi,
I developp an automation , it is working when i trigger it manually
but nothing working when it should be automatic
do you know why ?
regards

No, because we don’t know your code :wink:
Please post it using the formatting button </>

sorry here is my code

- id: '1668533018069'
  alias: dringalaporte
  description: dring a l inter
  trigger:
  - platform: event
    event_type: doorbird_doorstation_1ccae3741fc5_somebody_pressed_the_button
  action:
  - service: camera.snapshot
    target:
      entity_id: camera.doorstation_1ccae3741fc5_live
    data:
      filename: /config/www/snapshots/inter1.jpg
  - delay: 00:00:05
  - service: camera.snapshot
    data:
      filename: /config/www/snapshots/devant.jpg
    target:
      entity_id: camera.devant
  - service: notify.email
    data:
      title: 'dringalaporte : {{now().strftime(''%A %d %B %Y %H:%M '') }}'
      message: testinter
      target: [email protected]
      data:
        images:
        - /config/www/snapshots/inter1.jpg
        - /config/www/snapshots/devant.jpg
  mode: single

what is strange is that i have two automation “dringalaporte”

How to erase the 2 automations ?
i would like to create a new
thx

Where did you create the doorbird automation? Yaml or automation UI?

Go to settings — devices — entities and try to delete the unavailable automation.

I assume the event is misconfigured.

ok now i erased and recreated my automation
you are right event seems misconfigured