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.
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
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