pyzwave.commandclass.Association module

class pyzwave.commandclass.Association.Association(groupings)

Bases: pyzwave.commandclass.CommandClass.CommandClass

Command Class COMMAND_CLASS_ASSOCIATION

NAME = 'ASSOCIATION'
attributes = (('groupings', <class 'pyzwave.commandclass.Association.Groupings'>),)
async interview()

Interview this command class. Must be implemented by subclasses. The version has already been interviewed when this method is called.

Return True if the interview was completed successfully and False or raise an exception if the interview did not complete.

async interviewGrouping(groupingIdentifier)

Interview an association group

async setupLifeLine(groupingIdentifier=1)

Setup the lifeline association group

class pyzwave.commandclass.Association.Get(groupingIdentifier)

Bases: pyzwave.message.Message

Command Class message COMMAND_CLASS_ASSOCIATION ASSOCIATION_GET

NAME = 'GET'
attributes = (('groupingIdentifier', <class 'pyzwave.types.uint8_t'>),)
class pyzwave.commandclass.Association.Group(maxNodes, nodes)

Bases: pyzwave.commandclass.CommandClass.DictAttribute

Attribute for information regarding one association group

attributes = (('maxNodes', <class 'pyzwave.types.uint8_t'>), ('nodes', <class 'pyzwave.commandclass.Association.Nodes'>))
class pyzwave.commandclass.Association.Groupings

Bases: dict

Helper class for storing associations

setNumGroups(number: int)

Set the number of groups this node has

class pyzwave.commandclass.Association.GroupingsGet

Bases: pyzwave.message.Message

Command Class message COMMAND_CLASS_ASSOCIATION ASSOCIATION_GROUPINGS_GET

NAME = 'GROUPINGS_GET'
class pyzwave.commandclass.Association.GroupingsReport(supportedGroupings)

Bases: pyzwave.message.Message

Command Class message COMMAND_CLASS_ASSOCIATION ASSOCIATION_GROUPINGS_REPORT

NAME = 'GROUPINGS_REPORT'
attributes = (('supportedGroupings', <class 'pyzwave.types.uint8_t'>),)
class pyzwave.commandclass.Association.Nodes

Bases: list

Nodes in association reports. Handle both normal and multi channel

contains(nodeId, endpoint=0) → bool

Returns if node is in this collection

default = []
classmethod deserialize(stream: pyzwave.types.BitStreamReader)

Deserialize nodes from association report.

serialize(stream: pyzwave.types.BitStreamWriter)

Serialise nodes

class pyzwave.commandclass.Association.Report(groupingIdentifier, maxNodesSupported, reportsToFollow, nodes)

Bases: pyzwave.message.Message

Command Class message COMMAND_CLASS_ASSOCIATION ASSOCIATION_GROUPINGS_REPORT

NAME = 'REPORT'
attributes = (('groupingIdentifier', <class 'pyzwave.types.uint8_t'>), ('maxNodesSupported', <class 'pyzwave.types.uint8_t'>), ('reportsToFollow', <class 'pyzwave.types.uint8_t'>), ('nodes', <class 'pyzwave.commandclass.Association.Nodes'>))
class pyzwave.commandclass.Association.Set(groupingIdentifier, nodes)

Bases: pyzwave.message.Message

Command Class message COMMAND_CLASS_ASSOCIATION ASSOCIATION_SET

NAME = 'SET'
attributes = (('groupingIdentifier', <class 'pyzwave.types.uint8_t'>), ('nodes', <class 'pyzwave.commandclass.Association.Nodes'>))