So, in a home assistant automation, if I have something written to a file -- say, "Camera, take snapshot" -- saved in /tmp/doorbell.jpg , where is that written?
My HA is Home Assistant OS.
I'm trying to troubleshoot it because I am 99% sure that the image file is empty or malformed in some way, given that every single notification I've received for this has been the same description, regardless of who or what is at the door.
This is the automation:
alias: Describe front door motion
description: ""
triggers:
- entity_id:
- binary_sensor.doorbell_motion_detected
to: "on"
trigger: state
conditions: []
actions:
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- action: camera.snapshot
metadata: {}
data:
filename: /tmp/doorbell.jpg
target:
device_id:
- ec0d36d6966b049509503e3e9e3378a6
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- action: google_generative_ai_conversation.generate_content
metadata: {}
data:
image_filename: /tmp/doorbell.jpg
prompt: >-
Describe briefly who is at the front door. Look for things you'd
commonly see at a house front door, like a delivery person or visitor.
Don't hallucinate things; if the image is blank or otherwise not of a
view from a doorbell, indicate that.
response_variable: description
- action: notify.mobile_app_null_15
metadata: {}
data:
title: Front door person detected
message: "{{ description.text }}"
mode: single