Retrieving values from NotificationCCReports directly ? #2886
-
Hello! Thanks a lot for this awesome library 🙂 ! I'm currently experimenting a bit with it and was wondering if there was a way to get "notification state" ("Window/door is open" in this case) which seems to be present in the NotificationCCReport but not in the event exposed through regulars listeners (I've tried Values returned in this case are 22 (open)/23 (closed) but it's not very practical to handle since it forces me to map possible states for all kind of sensors. Currently using node-zwave-js 7.7.4 with a Z-stick Gen 5 and a Fibaro door sensor |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This should be coming through the |
Beta Was this translation helpful? Give feedback.
This should be coming through the
value updated
event. If you take the value ID and look up the corresponding metadata, you should get aValueMetadataNumeric
https://zwave-js.github.io/node-zwave-js/#/api/valueid?id=number which has astates
record you can use to map 22/23 to the corresponding strings.