|
|
(3 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | ==Description==
| + | <big>'''We're moving!''' Please visit http://docs2.hubitat.com for the latest documentation.</big> |
− | 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> ==
| + | <big> |
− | Return ZHA cluster information.
| + | This document is available at: http://docs2.hubitat.com/en/developer/zigbee-object |
− | | + | </big> |
− | '''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
| |
− | | |
− | == <code>on</code> ==
| |
− | Generate the on command for the on/off ZigBee cluster
| |
− | | |
− | '''Signature'''
| |
− | List on()
| |
− | List on(int delay)
| |
− | | |
− | '''Parameters'''
| |
− | | |
− | delay - the number of milliseconds to delay after sending the command, if omitted then the standard delay of 2000ms is used.
| |
− | | |
− | '''Returns'''
| |
− | | |
− | List - a list of zigbee commands to be sent to the device
| |
− | | |
− | '''Example'''
| |
− | | |
− | def cmds = zigbee.on(200)
| |
− | | |
− | == <code>off</code> ==
| |
− | Generate the off command for the on/off ZigBee cluster
| |
− | | |
− | '''Signature'''
| |
− | List off()
| |
− | List off(int delay)
| |
− | | |
− | '''Parameters'''
| |
− | | |
− | delay - the number of milliseconds to delay after sending the command, if omitted then the standard delay of 2000ms is used.
| |
− | | |
− | '''Returns'''
| |
− | | |
− | List - a list of zigbee commands to be sent to the device
| |
− | | |
− | '''Example'''
| |
− | | |
− | def cmds = zigbee.off(500)
| |
− | | |
− | | |
− | == <code>Additional Methods to Document</code> ==
| |
− | List groupOn(Integer groupID)
| |
− | List groupOn(Integer groupID, int delay)
| |
− | List groupOff(Integer groupID)
| |
− | List groupOff(Integer groupID, int delay)
| |
− | List onOffConfig()
| |
− | List onOffConfig(Integer minRefreshInterval, Integer maxRefreshInterval)
| |
− | List levelRefresh()
| |
− | List levelRefresh(int delay)
| |
− | List levelConfig()
| |
− | List colorTemperatureRefresh()
| |
− | List colorTemperatureRefresh(int delay)
| |
− | List colorTemperatureConfig()
| |
− | List batteryConfig()
| |
− | List refreshData(String attr1, String attr2)
| |
− | List electricMeasurementPowerRefresh(int delay = STANDARD_DELAY_INT)
| |
− | List setColorTemperature(BigDecimal value, int delay = STANDARD_DELAY_INT)
| |
− | List setColorTemperature(String value ,int delay = STANDARD_DELAY_INT)
| |
− | List setColorTemperature(Integer value, int delay = STANDARD_DELAY_INT)
| |
− | List setGroupColorTemperature(Integer groupID, BigDecimal value, int delay = STANDARD_DELAY_INT)
| |
− | List setGroupColorTemperature(Integer groupID, String value, int delay = STANDARD_DELAY_INT)
| |
− | List setGroupColorTemperature(Integer groupID, Integer value, int delay = STANDARD_DELAY_INT)
| |
− | List setSaturation(Integer value, int delay = STANDARD_DELAY_INT)
| |
− | List setHue(Integer value, int delay = STANDARD_DELAY_INT)
| |
− | List setColor(Map value, int delay = STANDARD_DELAY_INT)
| |
− | List setLevel(BigDecimal level)
| |
− | List setLevel(Integer level, Integer rate = 0xFFFF)
| |
− | List setLevel(Integer level, Integer rate = 0xFFFF)
| |
− | List setGroupLevel(Integer groupID, BigDecimal level)
| |
− | List setGroupLevel(Integer groupID, Integer level)
| |
− | List setGroupLevel(Integer groupID, BigDecimal level, BigDecimal rate)
| |
− | List setGroupLevel(Integer groupID, Integer level, Integer rate)
| |
− | List temperatureConfig()
| |
− | List temperatureConfig(Integer minRefreshInterval, Integer maxRefreshInterval)
| |
− | List configureReporting(Integer clusterId, Integer attributeId, Integer dataType, Integer minReportTime, Integer maxReportTime, Integer reportableChange = null, Map additionalParams=[:], int delay = STANDARD_DELAY_INT)
| |
− | List enrollResponse()
| |
− | List command(Integer cluster, Integer command, Map additionalParams, int delay = STANDARD_DELAY_INT, String... payload)
| |
− | List command(Integer cluster, Integer command, String... payload)
| |
− | List readAttribute(Integer cluster, Integer attributeId, Map additionalParams = [:], int delay = STANDARD_DELAY_INT)
| |
− | List readAttribute(Integer cluster, List<Integer> attributeIds, Map additionalParams = [:], int delay = STANDARD_DELAY_INT)
| |
− | List writeAttribute(Integer cluster, Integer attributeId, Integer dataType, Integer value, Map additionalParams = [:], int delay = STANDARD_DELAY_INT)
| |
− | Map getEvent(String description)
| |
− | Map parseDescriptionAsMap(String description)
| |
− | Map getKnownDescription(String description)
| |
− | ZoneStatus parseZoneStatus(String description)
| |
− | SmartShield parse(String description)
| |
− | String convertToHexString(Integer value, Integer width)
| |
− | Integer convertHexToInt(String value)
| |
− | String hex2String(String arg)
| |
− | String swapOctets(String bytes)
| |