Latency time too long

Good morning,

I am under HA Supervised. I created an automation:
1/motion sensor
2/photo via Android ip webcam apk
3/ SMTP notification with image

Everything works. However, there is an adjustment to be made and I don’t know how to do it: between the moment the motion sensor detects a presence and the opening of the “Android IPWebcam” application, 30 seconds pass!!! It’s huge. There must be a way to reduce this latency?!?

Without seeing your automation config or traces this is just a guess: SMTP is not a particularly rapid communication protocol. Choose another method for comparison, https://www.home-assistant.io/integrations/#notifications

I just had a flash: my file is configured with a time of 30s somewhere. I think it could come from there

[core-ssh config]$ cat automations.yaml
- id: '1726841271819'
  alias: testNotifCapteurGmail
  description: ''
  trigger:
  - type: motion
    platform: device
    device_id: 739fb4b9a1cef0a2fe198b0425690bbe
    entity_id: cc6af08550377575a85886a331a1a81c
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 01
  condition: []

I just changed to 1 second

I do not see that in the config you have posted. Also remove the leading zero from this:

Do I want to delete everything?

How do you do that, exactly?

Here is the automation.yaml

cat automations.yaml
- id: '1726841271819'
  alias: testNotifCapteurGmail
  description: ''
  trigger:
  - type: motion
    platform: device
    device_id: 739fb4b9a1cef0a2fe198b0425690bbe
    entity_id: cc6af08550377575a85886a331a1a81c
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 01
  condition: []
  action:
  - action: camera.snapshot
    metadata: {}
    data:
      filename: /media/Camera/Gabin.jpg
    target:
      entity_id: camera.192_168_1_xy
      area_id: living_room
  - action: notify.email
    data:
      title: RetourEcole
      message: Gabin est à la maison
      target:
        - [email protected]
      data:
          images:
              - /media/Camera/Gabin.jpg