Zigbee Object
Revision as of 16:51, 9 February 2019 by Mike.maxwell (talk | contribs) (Created page with "==Description== The package name of this class is zigbee. So to use in an App or Driver you would reference it with zigbee. == <code>clusterLookup</code> == Return ZHA clust...")
Description
The package name of this class is zigbee. So to use in an App or Driver you would reference it with zigbee.
clusterLookup
Return ZHA cluster information.
Signature
ZigbeeCluster clusterLookup(int value) ZigbeeCluster clusterLookup(String value)
Parameters
value - the integer value to lookup value - the hex string value to lookup
Returns
ZigbeeCluster - Cluster entry, null if no matching entry found.
Example
def zbc = zigbee.clusterLookup(0x0006) def zbc = zigbee.clusterLookup("0x0006") def zbc = zigbee.clusterLookup("0006")
zbc == ON_OFF_CLUSTER zbc.clusterEnum == ON_OFF_CLUSTER zbc.clusterLabel == On/Off zbc.clusterInt == 6