I have a video doorbell “Dahua VTO 2202F”, connected via ethernet cable directly to my switch. It’s integrated into my HA via this integration via HACS: https://github.com/rroller/dahua
I’ve also setup the following automation, sothat I get a notification and snapshot when someone presses the doorbell button:
alias: Dahua VTO Klingel Benachrichtigung aufs Handy
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.dahua_vto_2202f_klingel_button_pressed
from: 'off'
to: 'on'
condition: []
action:
- service: notify.mobile_app_samsung_s20
data:
message: Haustür klingelt!
data:
image: /api/camera_proxy/camera.dahua_vto_2202f_klingel_main
color: red
channel: Klingel
ledcolor: red
vibrationPattern: 1, 1000, 50, 1000, 50, 1000, 50, 1000, 1
importance: high
visibility: private
mode: single
Sometimes the notification arrives on my mobile instantly upon button press as it should, sometimes it arrives with a noticeable delay. Sometimes when the door rings, I look at my phone and see no notification, and as soon as I unlock the screen I get the notification. Why could this be happening and how can I debug it to see check where it’s getting stuck?