Compare commits

...

1 Commits

Author SHA1 Message Date
Duncan McKee
45a31a1786 DVCSMP-4499 Z-Wave Lock: set manufacturer device data for LEE
LEE is currently relying on the manufacturer name being in device data, but it hasn't been getting set any more
2018-10-31 11:29:03 -04:00

View File

@@ -161,6 +161,7 @@ def uninstalled() {
def updated() {
// Device-Watch pings if no device events received for 1 hour (checkInterval)
sendEvent(name: "checkInterval", value: 1 * 60 * 60, displayed: false, data: [protocol: "zwave", hubHardwareId: device.hub.hardwareID, offlinePingable: "1"])
initializeManufacturerData()
def hubAction = null
try {
@@ -1740,6 +1741,15 @@ private isSamsungLock() {
return false
}
/**
* Sets the manufacuter device data value so it can be used by LEE
*
*/
private initializeManufacturerData() {
// These utility functions init the data value if it hasn't been already
isSchlageLock() || isYaleLock() || isKwiksetLock() || isSamsungLock()
}
/**
* Returns true if this lock generates door lock operation report before alarm report, false otherwise
* @return true if this lock generates door lock operation report before alarm report, false otherwise