Zigbee Object

From Hubitat Documentation
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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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