Hi,
I’ve recently moved over to the new zwavejs and I’m trying to create an automation to run every time a certain key is used to unlock our door.
I’ve looked all over and pulled this together
- id: door_unlocked_by_user_1
alias: 'Door Status Update'
description: Update door lock status.
trigger:
- platform: event
event_type: zwave_js_event
condition: "{{ trigger.event.data.parameters.userId == 1 and trigger.event.data.label == 'Keypad unlock operation'}}"
action:
some action
yet I keep getting the following error
Template variable warning: 'dict object' has no attribute 'userId' when rendering '{{ trigger.event.data.parameters.userId }}'
Could someone please help me
many thanks