diff --git a/devicetypes/smartthings/zigbee-lock.src/zigbee-lock.groovy b/devicetypes/smartthings/zigbee-lock.src/zigbee-lock.groovy index abfd99933b5..c33583fce7d 100644 --- a/devicetypes/smartthings/zigbee-lock.src/zigbee-lock.groovy +++ b/devicetypes/smartthings/zigbee-lock.src/zigbee-lock.groovy @@ -558,7 +558,7 @@ private def parseCommandResponse(String description) { return null } codeName = getCodeName(lockCodes, codeID) - responseMap.data = [ codeId: codeID, usedCode: codeID, codeName: codeName, method: "keypad" ] + responseMap.data = [ codeId: codeID as String, usedCode: codeID, codeName: codeName, method: "keypad" ] } else if (eventSource == 1) { responseMap.data = [ method: "command" ] } else if (eventSource == 2) { diff --git a/devicetypes/smartthings/zwave-lock.src/zwave-lock.groovy b/devicetypes/smartthings/zwave-lock.src/zwave-lock.groovy index 2a85aca6c77..981e11a7971 100644 --- a/devicetypes/smartthings/zwave-lock.src/zwave-lock.groovy +++ b/devicetypes/smartthings/zwave-lock.src/zwave-lock.groovy @@ -437,7 +437,7 @@ private def handleAccessAlarmReport(cmd) { codeID = readCodeSlotId(cmd) codeName = getCodeName(lockCodes, codeID) map.descriptionText = "Locked by \"$codeName\"" - map.data = [ codeId: codeID, usedCode: codeID, codeName: codeName, method: "keypad" ] + map.data = [ codeId: codeID as String, usedCode: codeID, codeName: codeName, method: "keypad" ] } else { // locked by pressing the Schlage button map.descriptionText = "Locked manually" @@ -449,7 +449,7 @@ private def handleAccessAlarmReport(cmd) { codeID = readCodeSlotId(cmd) codeName = getCodeName(lockCodes, codeID) map.descriptionText = "Unlocked by \"$codeName\"" - map.data = [ codeId: codeID, usedCode: codeID, codeName: codeName, method: "keypad" ] + map.data = [ codeId: codeID as String, usedCode: codeID, codeName: codeName, method: "keypad" ] } break case 7: @@ -643,7 +643,7 @@ private def handleAlarmReportUsingAlarmType(cmd) { codeID = readCodeSlotId(cmd) codeName = getCodeName(lockCodes, codeID) map.descriptionText = "Unlocked by \"$codeName\"" - map.data = [ codeId: codeID, usedCode: codeID, codeName: codeName, method: "keypad" ] + map.data = [ codeId: codeID as String, usedCode: codeID, codeName: codeName, method: "keypad" ] } break case 18: // Locked with keypad @@ -656,7 +656,7 @@ private def handleAlarmReportUsingAlarmType(cmd) { } else { codeName = getCodeName(lockCodes, codeID) map.descriptionText = "Locked by \"$codeName\"" - map.data = [ codeId: codeID, usedCode: codeID, codeName: codeName, method: "keypad" ] + map.data = [ codeId: codeID as String, usedCode: codeID, codeName: codeName, method: "keypad" ] } break case 21: // Manually locked