Hi - I am seeking help in one of the most basic service calls camera.snapshot. I am new HA user, implemented about a month ago - been learning the ins and outs. My HA OS is on a dedicated NUC.
I have taken the time to search in the forums but I am very confused as my root folder structure seems different than most responses.
I feel defeated on my first automation . I keep telling myself, if I cannot get this right, I should go back to homekit and stay out of the tinkering world. But I thought I’d ask here as my last resort.
Automation objective: when the doorbell rings, take snapshot (and save it) and send notification to companion app.
Implementation YAML code: I built this automation using the UI, but got the code from YAML editor:
alias: Send notification when doorbell rings
description: ""
triggers:
- type: occupied
device_id: b7d9194dae0d54d747217d809c6e1426
entity_id: 1eaf2a5f107c88e61b9559a1d8fdc473
domain: binary_sensor
trigger: device
conditions: []
actions:
- action: camera.snapshot
metadata: {}
data:
filename: /tmp/front_door_doorbell.jpg
target:
entity_id: camera.g4_doorbell_pro_entrance_cam
- action: notify.mobile_app_ks_iphone_14
metadata: {}
data:
message: Someone at the door.
title: Doorbell Notification
enabled: true
mode: single
Extra info: I followed the required steps to (I think) to setup the save:
- created folder called tmp, added config file code to allow dirs, restarted HA
- Did I do anything wrong? I spent alot of time tracing and trying things out, but no luck
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
#KI Customization
homeassistant:
allowlist_external_dirs:
- "/tmp"
Here is a screenshot of my folder structure from Editor:
Your input/advice is greatly appreciated.