Skip to content

Value API

Marcus Davies edited this page Jul 10, 2021 · 21 revisions

The Z-Wave JS Value API, is very much used to drive User Interfaces (as such is used on the UI tab). You can however, still use it via a message only protocol.

It's a little more involved, and is generally not as straight forward to use. One benefit however, is that it confirms that Values are actually updated.

Examples

Fetch all the ValueID's for a given node.

let Message = {
    payload: {
        mode: "ValueAPI",
        node: 2,
        method: "getDefinedValueIDs"
    }
}
return Message