I have an automation for when a person is picked up on my doorbell camera that takes a snapshot, creates a description, and sends a notification to my phone. I would like to see that image and description when I click on the notification. I have figured out how to open my camera app from the notification and created a place to view the image in my dashboards but cannot figure out how to get the text to show there too. Any help would be appreciated as I am new to this.
alias: Visitor at Front Door
description: Notification sent to phone when a person is detected at the front door.
triggers:
- type: turned_on
device_id: 1edec007f4db2605898b2c556958b200
entity_id: f87f671cfcb54de5ea2bc4adfad7ad13
domain: binary_sensor
trigger: device
conditions: []
actions:
- action: camera.snapshot
metadata: {}
data:
filename: /config/www/tmp/snapshot-doorbell.jpg
target:
entity_id: camera.reolink_video_doorbell_wifi_clear_2
- action: google_generative_ai_conversation.generate_content
metadata: {}
data:
image_filename: /config/www/tmp/snapshot-doorbell.jpg
prompt: >-
Tell me what is in the image in 1 to 2 sentences. If you see a person,
describe the person and what, if anything, they are carrying.
response_variable: response
- action: notify.mobile_app_travis_phone
data:
message: |
{{ response.text }}
title: Front Door Motion Detected
data:
image: /local/tmp/snapshot-doorbell.jpg
entity_id: camera.reolink_video_doorbell_wifi_clear_2
actions:
- action: URI
title: Reolink App
uri: app://com.mcu.reolink
mode: single