toto6976
(Toto6976)
September 24, 2024, 12:08pm
1
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?!?
tom_l
September 24, 2024, 12:11pm
2
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
toto6976
(Toto6976)
September 24, 2024, 12:15pm
3
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
tom_l
September 24, 2024, 12:16pm
4
I do not see that in the config you have posted. Also remove the leading zero from this:
toto6976:
seconds: 01
toto6976
(Toto6976)
September 24, 2024, 12:19pm
5
Do I want to delete everything?
koying
(Chris B)
September 24, 2024, 12:21pm
6
How do you do that, exactly?
toto6976
(Toto6976)
September 24, 2024, 12:23pm
7
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