#automation doesnt get triggered and i dont get it

1 messages · Page 1 of 1 (latest)

untold lava
void veldt
#

Please share the YAML

untold lava
#
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
pearl copper
#

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'

untold lava
#

there only is one such device, the other entity is the camera

pastel flame
#

Is this a "take a picture when the doorbell rings"?

untold lava
#

it is

pastel flame
#

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

untold lava
#

i know you cant read it but its only giving me to check if its on or off

pearl copper
# untold lava there only is one such device, the other entity is the camera

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

untold lava
#

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

pastel flame
#

If you select with the ui it will be correct

#

You can check it translates it if you view the yaml