Notification with aqara door sensor

I Have just installed a Aqara door sensor.
In HA I have seen that the sensor is OK and operates very quick.
But a notification to my mobile (Samsung S22) takes some time. Sometimes direct, sometimes after a while and sometimes no notification.
Who can help.

So this doesn’t look like it actually has anything to do with your sensor. It could be anything triggering the automation. That part works.

What notification service are you using?

Do you mean my automation?

id: ‘1760037771338’
alias: Sensor bijkeukendeur
description: ‘’
triggers:

  • type: opened
    device_id: 3d7b56b5d12f675cdbbff5b0535a8294
    entity_id: 9cee5a3d8f3e70e7e6b22de82cd336c4
    domain: binary_sensor
    trigger: device
    conditions:
    actions:
  • action: notify.mobile_app_sm_s901b
    metadata: {}
    data:
    message: Er komt iemand binnen
    enabled: true
    mode: single

https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16