#automation doesnt get triggered and i dont get it
1 messages · Page 1 of 1 (latest)
Please share the YAML
description: ""
triggers:
- type: turned_on
device_id: 7dd0bcffd9ddc15f5f9ba3bd126cad6d
entity_id: e5b3a8da6c7c4a70e19ef245cdfa3311
domain: binary_sensor
trigger: device
conditions: []
actions:
- action: camera.snapshot
metadata: {}
data:
filename: >-
/config/www/snapshots/doorbell_{{ now ().year }}{{ now ().month }}{{ now
().day }}_{{ now ().hour }}{{ now ().minute }}.jpg
target:
entity_id: camera.haustur
- data_template:
title: Ding Dong
message: Jemand ist an der Haustür
data:
image: >-
http://domain/local/snapshots/doorbell_{{ now
().year }}{{ now ().month }}{{ now ().day }}_{{ now ().hour }}{{ now
().minute }}.jpg
clickAction: /lovelace/cameras
action: notify.notify
mode: single
no idea if you selected the correct trigger because we can't read your language
you likely have selected the wrong option on the device trigger
your other option is to just change to a state trigger with to: 'on'
there only is one such device, the other entity is the camera
Is this a "take a picture when the doorbell rings"?
it is
inspired by this but its not exactly built like it https://tristam.ie/2023/758/
Not 100% sure "turned on" is correct - it would depend on your actual device, some that is only triggered when it literally powers up - better to do it based on state for the entity that changes when the button presses imi
i know you cant read it but its only giving me to check if its on or off
The only way something doesn't trigger is if you're using the wrong trigger type or you have errors in your trigger. Your trigger looks fine, so you either selected the wrong option for the device_trigger, or you aren't pointing at the right device, or you aren't testing it properly. It looks like you're testing it properly so that narrows it down to wrong device or wrong options
when i use the entity state trigger, do i have to use the wording from the logs or the preset on and off? since it once again lists some options here