Reolink : Notification avec capture d'image

Bonjour,

Je me suis aidé de ce post:

Voici mon automation:



Fichier YAML:

alias: Notif Capture Caméra Extérieur Garage
description: ""
triggers:
  - trigger: state
    entity_id:
      - binary_sensor.exter_e1_poe_garage_personne
    from: "off"
    to: "on"
conditions: []
actions:
  - action: camera.snapshot
    metadata: {}
    data:
      filename: /config/www/capture/snapshot_{{ now().strftime("%d%m%y-%H%M") }}.jpg
    target:
      device_id: ac4107b18334a4c8a9fc309485382b9d
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - action: notify.mobile_app_redmi_note_7
    metadata: {}
    data:
      message: Personne détectée
      title: Caméra Extérieur Garage {{now().strftime('(%H:%M) [%d-%m-%y]')}}
      data:
        image: local/capture/snapshot_{{ now().strftime("%d%m%y-%H%M") }}.jpg
mode: single

Mon problème

Envoyer la capture d’image par notification.
La capture se fait bien et créer bien le fichier dans www/capture
Le problème vient surement de:

      data:
        image: local/capture/snapshot_{{ now().strftime("%d%m%y-%H%M") }}.jpg

Car la notification passe bien si je met rien dans data mais je vois pas le problème,
Merci pour toute aide apportée

Ma configuration


[center]## System Information

version core-2025.7.2
installation_type Home Assistant OS
dev false
hassio true
docker true
container_arch aarch64
user root
virtualenv false
python_version 3.13.3
os_name Linux
os_version 6.12.25-haos-raspi
arch aarch64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 5000
Installed Version 2.0.5
Stage running
Available Repositories 2109
Downloaded Repositories 5
Home Assistant Cloud
logged_in true
subscription_expiration 8 mai 2026 à 02:00
relayer_connected true
relayer_region eu-central-1
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled false
cloud_ice_servers_enabled true
remote_server eu-central-1-28.ui.nabu.casa
certificate_status ready
instance_id ed835f0461034aa587fdf278b1827f5b
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 16.0
update_channel stable
supervisor_version supervisor-2025.07.1
agent_version 1.7.2
docker_version 28.3.0
disk_total 234.0 GB
disk_used 7.5 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Mosquitto broker (6.5.1), Zigbee2MQTT (2.5.1-1), File editor (5.8.0), Get HACS (1.3.1), Matter Server (8.0.0)
Dashboards
dashboards 3
resources 1
views 2
mode storage
Network Configuration
adapters lo (disabled), end0 (enabled, default, auto), docker0 (disabled), hassio (disabled), veth291d4fd (disabled), veth4c12bb8 (disabled), vethb7c2b10 (disabled), vethaf1e6c4 (disabled), veth95c373e (disabled), veth5fb491d (disabled), vethdf0d083 (disabled), vetha55d879 (disabled), vethe6ec559 (disabled)
ipv4_addresses lo (127.0.0.1/8), end0 (192.168.1.65/24), docker0 (172.30.232.1/23), hassio (172.30.32.1/23), veth291d4fd (), veth4c12bb8 (), vethb7c2b10 (), vethaf1e6c4 (), veth95c373e (), veth5fb491d (), vethdf0d083 (), vetha55d879 (), vethe6ec559 ()
ipv6_addresses lo (::1/128), end0 (2a01:e0a:5dc:e880:9811:b1be:7d31:cb5a/64, fd25:6f96:9988:a1d6:8117:c0b5:698c:f88e/64, fe80::9bed:23bb:2671:3e5f/64), docker0 (fe80::6ce8:71ff:fe83:ca34/64), hassio (fe80::4c33:bdff:fe9a:1109/64), veth291d4fd (fe80::a882:40ff:fe07:7d76/64), veth4c12bb8 (fe80::8c29:51ff:fe55:454b/64), vethb7c2b10 (fe80::5c80:3dff:fe3b:ed2b/64), vethaf1e6c4 (fe80::8ce2:17ff:feb6:63a8/64), veth95c373e (fe80::b445:c2ff:fe78:42e9/64), veth5fb491d (fe80::f8d0:dcff:fea9:6f68/64), vethdf0d083 (fe80::c0d1:edff:feb1:e496/64), vetha55d879 (fe80::34f7:25ff:fe56:288d/64), vethe6ec559 (fe80::40:94ff:fe17:65fb/64)
announce_addresses 192.168.1.65, 2a01:e0a:5dc:e880:9811:b1be:7d31:cb5a, fd25:6f96:9988:a1d6:8117:c0b5:698c:f88e, fe80::9bed:23bb:2671:3e5f
Recorder
oldest_recorder_run 7 juillet 2025 à 18:51
current_recorder_run 15 juillet 2025 à 10:10
estimated_db_size 117.12 MiB
database_engine sqlite
database_version 3.48.0
[/center]

__

Ton problème semble provenir de la façon dont tu spécifies le chemin de l’image dans la notification.

Essayes de remplacer :

par

data:
  image: /local/capture/snapshot_{{ now().strftime("%d%m%y-%H%M") }}.jpg

Si cela ne fonctionne pas, vérifie que le fichier image est bien créé avec le bon nom et au bon endroit.

Bonjour,
regarde si tu as ces lignes dans ton configuration.yaml :

homeassistant:
  allowlist_external_dirs:
    - /config
1 « J'aime »

@hackdiy
Merci pour ton aide mais le chemin est bon, c’est bien image: local et non image: /local

@WarC0zes
Il fallait bien modifier configuration.yaml
Un très grand merci pour ton aide

Maintenant je vais chercher pour pouvoir ouvrir le dossier qui contient la vidéos enregistré dans médias / reolink / camera / high resolution , quand je clic sur la notification