Skip to content

Commit 5b7573f

Browse files
committed
HCS-3029 Add ocfDeviceType to Zigbe Lock Without Codes
1 parent 99e819d commit 5b7573f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

devicetypes/smartthings/zigbee-lock-without-codes.src/zigbee-lock-without-codes.groovy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
* for the specific language governing permissions and limitations under the License.
1313
*
1414
*/
15-
15+
1616
import physicalgraph.zigbee.zcl.DataType
1717
import physicalgraph.zigbee.clusters.iaszone.ZoneStatus
1818

1919
metadata {
20-
definition (name:"ZigBee Lock Without Codes", namespace:"smartthings", author:"SmartThings", vid:"generic-lock-2", mnmn:"SmartThings", runLocally:true, minHubCoreVersion:'000.022.00013', executeCommandsLocally:true) {
20+
definition (name:"ZigBee Lock Without Codes", namespace:"smartthings", author:"SmartThings", vid:"generic-lock-2", mnmn:"SmartThings", runLocally:true, minHubCoreVersion:'000.022.00013', executeCommandsLocally:true, ocfDeviceType: "oic.d.smartlock") {
2121
capability "Actuator"
2222
capability "Lock"
2323
capability "Refresh"
@@ -139,10 +139,10 @@ def initialize() {
139139
cmds += zigbee.enrollResponse()
140140
cmds += zigbee.configureReporting(CLUSTER_IAS_ZONE, IAS_ATTR_ZONE_STATUS, DataType.BITMAP16, 30, 60*5, null)
141141
} else {
142-
cmds += zigbee.configureReporting(CLUSTER_DOORLOCK, DOORLOCK_ATTR_LOCKSTATE,DataType.ENUM8, 0, 3600, null)
142+
cmds += zigbee.configureReporting(CLUSTER_DOORLOCK, DOORLOCK_ATTR_LOCKSTATE,DataType.ENUM8, 0, 3600, null)
143143
cmds += zigbee.configureReporting(CLUSTER_POWER, POWER_ATTR_BATTERY_PERCENTAGE_REMAINING,DataType.UINT8, 600, 21600, 0x01)
144144
cmds += zigbee.readAttribute(CLUSTER_POWER, POWER_ATTR_BATTERY_PERCENTAGE_REMAINING)
145-
if (isSiHASLock()) cmds += zigbee.configureReporting(CLUSTER_DOORLOCK, DOORLOCK_ATTR_DOORSTATE,DataType.ENUM8, 0, 3600, null)
145+
if (isSiHASLock()) cmds += zigbee.configureReporting(CLUSTER_DOORLOCK, DOORLOCK_ATTR_DOORSTATE,DataType.ENUM8, 0, 3600, null)
146146
cmds += refresh()
147147
}
148148

@@ -193,7 +193,7 @@ private def parseAttributeResponse(String description) {
193193
responseMap.value = Math.round(Integer.parseInt(descMap.value, 16) / 2)
194194
responseMap.descriptionText = "Battery is at ${responseMap.value}%"
195195
}
196-
196+
197197
} else if (clusterInt == CLUSTER_DOORLOCK && attrInt == DOORLOCK_ATTR_LOCKSTATE) {
198198
def value = Integer.parseInt(descMap.value, 16)
199199
responseMap.name = "lock"

0 commit comments

Comments
 (0)