mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 10:26:52 +00:00
Add zwave_js_notification event example (#21423)
This commit is contained in:
parent
3d8b5316e0
commit
aa6c4452b8
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user