Hello everyone, I’m very grateful to all the developers first, this project is incredible!
I created an automation to be able to take a snapshot of the security camera and send a notification with the image to my Andoird and my wife’s iPhone when someone presses the video intercom. However, on Android the image doesn’t always update, sometimes it updates and sometimes it ends up with a cache image, I think.
I always look at the image saved by the snapshot and it is always correct so I believe it is a bug in the Android app since the iOS app works.
Here’s the automation I did:
alias: "Notificação ao tocar campainha "
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.sensores_esp_campainha_do_portao
from: "off"
to: "on"
for:
hours: 0
minutes: 0
seconds: 0
condition: []
action:
- service: camera.snapshot
data:
filename: /config/www/images/ruaFundos.jpg
target:
entity_id: camera.rua_fundos
- service: camera.snapshot
data:
filename: /config/www/images/ruaEntrada.jpg
target:
entity_id: camera.rua_entrada
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: notify.mobile_app_moto_g200_5g
data:
message: TOCARAM O INTERFONE
title: "Camera Rua fundos "
data:
image: /local/images/ruaFundos.jpg
clickAction: /lovelace/monitoramento
- service: notify.mobile_app_moto_g200_5g
data:
message: TOCARAM O INTERFONE
title: "Camera Rua Frente "
data:
image: /local/images/ruaEntrada.jpg
clickAction: /lovelace/monitoramento
- service: notify.mobile_app_iphone_de_lorena_f_correa_rosa
data:
message: TOCARAM O INTERFONE
title: "Camera Rua fundos "
data:
image: /local/images/ruaFundos.jpg
clickAction: /lovelace/monitoramento
- service: notify.mobile_app_iphone_de_lorena_f_correa_rosa
data:
message: TOCARAM O INTERFONE
title: "Camera Rua Frente "
data:
image: /local/images/ruaEntrada.jpg
clickAction: /lovelace/monitoramento
mode: single
Thank you all!