HI all,
I followed this post to set up notification on movement with my cameras.
Problem is that I can’t use it if gifs are inside share folder. Can someone help me with it?
Here’s my config for whitelisting folder:
homeassistant:
packages: !include_dir_named packages
whitelist_external_dirs:
- '/share/gifs'
Then here’s the automation that use files inside gifs folder
- alias: Notifica movimenti in balcone cucina
trigger:
- platform: state
entity_id: sensor.balcone_cucina
condition:- condition: state
entity_id: ‘binary_sensor.dss_alarm_giorno_attivo’
state: ‘on’- condition: state
entity_id: ‘binary_sensor.dss_alarm_notte_attivo’
state: ‘on’
action:- service: notify.telegrammarco
data:
title: “Videosorveglianza”
message: “Rilevati movimenti nel balcone in Cucina”
data:
video:
- file: share/gifs/{{ states.sensor.balcone_cucina.state }}
caption: “Rilevati movimenti nel balcone in Cucina”
do file path is correct?
Thank you in advance