I have the Keymaster Basic setup for my zwave yale locks. Using HAOS with ZWaveJSUI addon. Notifications are working but they are not showing which door is getting opened. (script below)
I have been looking at the detailed tracelog to identify the device ID, door name, … but can’t find it anywhere.
How do i include the DeviceID or DeviceName into the notification?
- alias: Lock Notifications
description: "Notify when certain codes are used to unlock the doors, if notify is enabled"
id: lock_notifications
triggers:
- trigger: event
event_type: zwave_js_notification
event_data:
command_class: 113
command_class_name: Notification
label: Access Control
type: 6
event: 6
event_label: Keypad unlock operation
device_id: "{{device_id}}"
variables:
unlock_code_slot: "{{ trigger.event.data.parameters.userId }}"
condition: []
actions:
- choose:
- conditions:
- condition: template
value_template: |
{% set mysensor = "input_boolean.lock_code_slot_" ~ unlock_code_slot ~ "_notify" %}
{{is_state(mysensor, 'on') }}
sequence:
- action: notify.lock_notify_group
data:
message: >-
{% set namesensor = "input_text.lock_code_slot_" ~
unlock_code_slot ~ "_name" %} {{
states(namesensor)}} unlocked the {{device_id}} door at
{{ now().strftime('%H:%M') }}
mode: single