Associations API - zwave-js/node-red-contrib-zwave-js GitHub Wiki
The Associations API allows you to manage automations between specific devices,
using the Z-Wave Associations Specification. The commands make use of an AssociationAddress
object detailed below.
/* The Association Address Object */
{
nodeId: Number,
endpoint: Number /* (optional - defaults to 0) */
}
Obtains the Association Groups, for the specified Address
let Message = {
payload: {
mode: "AssociationsAPI",
method: "getAssociationGroups",
params: [<AssociationAddress>]
}
}
return Message
Obtains all the Association Groups, for the specified node
let Message = {
payload: {
mode: "AssociationsAPI",
method: "getAllAssociationGroups",
params: [<NodeID>]
}
}
return Message
Obtains the current Associations, for the specified address
let Message = {
payload: {
mode: "AssociationsAPI",
method: "getAssociations",
params: [<AssociationAddress>]
}
}
return Message
Obtains all the Associations, for the specified node
let Message = {
payload: {
mode: "AssociationsAPI",
method: "getAllAssociations",
params: [<NodeID>]
}
}
return Message
Adds the collection of Associations, to the specified address and Group ID
let Message = {
payload: {
mode: "AssociationsAPI",
method: "addAssociations",
params: [<AssociationAddress>,<GroupID>,[<AssociationAddress>,<AssociationAddress>]]
}
}
return Message
Removes the the collection of Associations from the Association Address and Group ID
let Message = {
payload: {
mode: "AssociationsAPI",
method: "removeAssociations",
params: [<AssociationAddress>,<GroupID>,[<AssociationAddress>,<AssociationAddress>]]
}
}
return Message
Removes the specified node, form all associations
let Message = {
payload: {
mode: "AssociationsAPI",
method: "removeNodeFromAllAssociations",
params: [<NodeID>]
}
}
return Message