Foto wenn Brief kommt

Ich habe mir eine Automation erstellt, die mir auf das Handy eine Benachrichtigung schickt wenn Post im Briefkasten ist - dies geht wunderbar mit einem Vibrationssensor.
Kann ich denn zu diesem Zeitpunkt mit meiner Kamera im Carport ein Foto machen?
Ich würde mir gerne dieses Foto mit der Benachrichtigung mitschicken lassen.

Danke,
Tommes

Klar, geht mit camera.snapshot

1 „Gefällt mir“

Hab ich hinbekommen, danke.
Wie muss der Code aussehen, wenn ich zwei Bilder mitschicken will?

Einfach die Bilder unterschiedlich benennen und dann verschicken

action: notify.mobile_app_xq_cq54
data_template:
  title: Post ist gekommen!
  message: Es ist jetzt {{ now().strftime('%H:%M') }} und es ist Post gekommen.
  data:
    color: red
    image: /media/local/snapshot/snapshot_bei_brief.jpg
    image: /media/local/snapshot/snapshot_bei_brief1.jpg
alias: Benachrichtigung auf Handy

funktioniert nicht.

Wie muss ich den Code ändern?

Einfach die Action zweimal machen mit jeweils einem Bild

Ist es auf den Smartphone möglich, das Foto, das mit der Benachrichtigung kommt zu öffnen ?

Du kannst es zum Beispiel über Telegram dir schicken lassen

Bild Per Telegram und Push an Smartphones über die HA App, Alexa und Homematic Sprachausgabe. In meinem Fall ist ein HMIP Actor der Auslöser.

alias: Post Nachricht 
description: _PostTest
mode: single
triggers:
  - type: motion
    device_id: 889be637255ed295
    entity_id: 385bd7ceac94eeafb9e
    domain: binary_sensor
    trigger: device
conditions: []
actions:
  - metadata: {}
    data:
      filename: >-
        /config/www/snap/post_{{ now ().year }}_{{ now ().month }}_{{ now ().day
        }}_{{ now ().hour }}_{{ now ().minute }}.jpg
    target:
      device_id: 61621906d73a8f4
    action: camera.snapshot
  - metadata: {}
    data:
      message: "Die Post ist da "
      data:
        type: tts
      title: Post
    action: notify.alexa_media_wohnzimmer
  - metadata: {}
    data:
      message: Die Post ist da
      title: Post
      data:
        channel: Post
        notification_icon: mdi:mailbox-open
        priority: high
        color: yellow
    action: notify.mobile_app_1handy
  - metadata: {}
    data:
      message: Die Post ist da
      title: Post
      data:
        channel: Post
        notification_icon: mdi:mailbox-open
        priority: high
        color: yellow
    action: notify.mobile_app_1handy
  - metadata: {}
    data:
      message: Die Post ist da
    action: notify.smart_tv
  - data:
      device_address: MEQ4
      channel: 2
      parameter: SUBMIT
      value: 1,1,108000,193
      value_type: string
    action: homematicip_local.set_device_value
  - metadata: {}
    data:
      data:
        photo:
          - file: >-
              /config/www/snap/post_{{ now ().year }}_{{ now ().month }}_{{ now
              ().day }}_{{ now ().hour }}_{{ now ().minute }}.jpg
      title: Post
      message: Postbote Da
    action: notify.telegram

2 „Gefällt mir“

Ich möchte mir das Bild per Benachrichtigung senden, nicht per Telegram.
Kann ich nicht eine Aktion ausführen bei Klick auf das Bild?

Entweder Benachrichtigung oder Foto…
Ja, du kannst eine Aktion bei Benachrichtigungen hinzufügen

Wieso denn das?
Ich schicke mir eine Benachrichtigung MIT Foto.
Das funktioniert schonmal.

Jetzt ist die Frage, wie ich beim Tippen auf das Bild/die Benachrichtigung das Foto in groß angezeigt bekomme.

Du schickst es dir als Benachrichtigung, nicht als Datei…also geht das nicht, ganz einfach