Reolink : Notification push avec image

Ce qui a été proposé dans ce topic :

Recevoir des notifications push avec un aperçu image sur Android

Créer un channel :

action: notify.mobile_app_m2101k9g
data:
  title: "Création channel"
  message: "test création channel"
  data:
    channel: "Capture"

Créer une automatisation


alias: Notification caméra Garage Congel
description: ""
triggers:
  - trigger: state
    entity_id:
      - binary_sensor.garagecongel_vehicule
      - binary_sensor.garagecongel_personne
      - binary_sensor.garagecongel_animal
    to: "on"
conditions: []
actions:
  - data:
      filename: >-
        /media/Capture/snapshotgaragecongel_{{ now().strftime("%d%m%y-%H%M")
        }}.jpg
    target:
      entity_id: camera.garagecongel_fluide
    action: camera.snapshot
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - data:
      title: Caméra Garage Congel {{now().strftime('(%H:%M) [%d-%m-%y]')}}
      message: Mouvement détect, voici une capture.
      data:
        image: >-
          /media/local/Capture/snapshotgaragecongel_{{
          now().strftime("%d%m%y-%H%M") }}.jpg
        channel: Capture
    action: notify.mobile_app_redmi

Penser à activer avec l’application compagnon les notifications sur votre téléphone.

Afficher les captures d’écran sous forme de carrousel
Utiliser la carte gallery-card

Code :

type: custom:gallery-card
title: Capture Caméra Reolink
entities:
  - path: media-source://media_source/local/Capture/
menu_alignment: top
maximum_files: 30
file_name_format: DDMMYY_HHmm
caption_format: D/MM/YY HH:mm
parsed_date_sort: true

Automatisation pour supprimer tous les lundis le contenu du fichier média → Capture

alias: Suppression des captures Tous les Lundi à Minuit
description: ""
triggers:
  - trigger: time
    at: "00:00:01"
conditions:
  - condition: time
    weekday:
      - mon
actions:
  - action: delete.files_in_folder
    data:
      folder: /media/Capture
      only_extensions: .jpg
      time: 0
mode: single

Bouton Supprimer les images

show_name: true
show_icon: true
type: button
name: Snapshot
icon: mdi:delete
tap_action:
  action: perform-action
  perform_action: delete.files_in_folder
  data:
    folder: /ledia/Capture/
    time: 0
    only_extensions: .jpg
show_state: true
1 « J'aime »