Skip to content

Z Wave Kwikset 620 Not Firing Notifications #18

@thrunkmo

Description

@thrunkmo

Fixed with this:


  - alias: Lock Notifications
    description: "Notify when certain codes are used to unlock the doors, if notify is enabled"
    id: lock_notifications
    trigger:
      - platform: 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
    variables:
      unlock_code_slot: "{{ trigger.event.data.parameters.userId }}"
    condition: []
    action:
      - action: input_text.set_value
        target:
          entity_id: input_text.last_lock_unlock_code_slot
        data:
          value: "{{ unlock_code_slot }}"

      - action: input_text.set_value
        target:
          entity_id: input_text.last_lock_unlock_code_name
        data:
          value: "{{ states('input_text.lock_code_slot_' ~ unlock_code_slot ~ '_name') }}"

      - choose:
          - conditions:
              - condition: template
                value_template: >
                  {{ is_state('input_boolean.lock_code_slot_' ~ unlock_code_slot ~ '_notify', 'on') }}
            sequence:
              - service: notify.lock_notify_group
                data:
                  message: >
                    {{ states('input_text.lock_code_slot_' ~ unlock_code_slot ~ '_name') }}
                    unlocked the {{ device_name(trigger.event.data.device_id) }}
                    at {{ now().strftime('%H:%M') }}
    mode: single

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions