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.

getDefinedValueIDs

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

getValueMetadata

let Message = {
    payload: {
        mode: "ValueAPI",
        node: 2,
        method: "getValueMetadata",
        params: [<ValueID>]
    }
}
return Message