From aa6c4452b8992a260573441afb1ff7652e65dbe9 Mon Sep 17 00:00:00 2001 From: Thorjan Knudsvik Date: Tue, 1 Feb 2022 15:16:03 +0100 Subject: [PATCH] Add zwave_js_notification event example (#21423) --- source/_integrations/zwave_js.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/_integrations/zwave_js.markdown b/source/_integrations/zwave_js.markdown index 0e000b32425..22ec619ade3 100644 --- a/source/_integrations/zwave_js.markdown +++ b/source/_integrations/zwave_js.markdown @@ -301,6 +301,18 @@ There are two types of events that are fired, notification events and value noti Check the [Z-Wave JS notification event documentation](https://zwave-js.github.io/node-zwave-js/#/api/node?id=quotnotificationquot) for an explanation of the notification event data. These events fire with the `zwave_js_notification` event type. +Notification event data can be used to trigger automations, both in the automation UI and in YAML, using the event platform. Check the details of an event by subscribing to the zwave_js_notification event in the [Developers Tools](/docs/tools/dev-tools/#subscribe-to-an-event). + +```yaml +# Fires whenever the lock is unlocked by the keypad. +trigger: + - platform: event + event_type: zwave_js_notification + event_data: + node_id: 14 + event_label: "Keypad unlock operation" +``` + #### Notification Command Class These are notification events fired by devices using the Notification command class. The `parameters` attribute in the example below is optional, and when it is included, the keys in the attribute will vary depending on the event.