Automation not being invoked

I have 2 automations set up that use Keypad unlock operation of my zwave Schlage lock as a trigger. One of them turns the lights on in the foyer when the front door is unlocked (only between 1 hr before sunset till midnight). The other sets a delay of 10 secs and then causes Alexa in the kitchen to say “Welcome home”.

When the front door is unlocked at the appropriate time, the foyer lights go on. Alexa doesn’t say anything. There is nothing in the log showing the 2nd automation kicking off at all and when I look at Automations, it doesn’t show as being triggered. When the door is opened during the day, nothing happens at all.

When I use something else as a trigger, other than the Keypad Unlock Operation, the Welcome Home action works just fine.

Here are the two automations (1st one works, 2nd one doesn’t):

alias: Front door unlock
  description: ''
  trigger:
  - platform: event
    event_type: zwave_js_notification
    event_data:
      event_label: Keypad unlock operation
  condition:
  - condition: sun
    after: sunset
    after_offset: -01:00:00
  action:
  - service: switch.turn_on
    data: {}
    target:
      entity_id: switch.foyer_light
  mode: single

Automation #2:

alias: Welcome home
  description: ''
  trigger:
  - platform: event
    event_type: zwave_js_notification
    event_data:
      event_type: Keypad unlock operation
  condition: []
  action:
  - delay:
      hours: 0
      minutes: 0
      seconds: 10
      milliseconds: 0
  - service: notify.alexa_media_echo_kitchen
    data:
      message: 'Welcome home '
      data:
        type: announce
        volume: 10
  mode: single

I can’t figure out why the 2nd automation doesn’t trigger as a result of the front door being open.

Any ideas?

Thank you, David

Have a read of this then edit your post.

1 Like

Thanks Tom. Done!

1 Like

event_type versus event_label perhaps?

THANK YOU!!! I knew a fresh set of eyes will see something. I cannot tell you how many times I looked at it and saw nothing different. Of course, it works now! Again, thanks.

1 Like