mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-14 13:11:52 +00:00
DVCSMP-1658 Fix exception in Z-Wave Device Multichannel
This commit is contained in:
@@ -159,7 +159,7 @@ def zwaveEvent(physicalgraph.zwave.commands.multichannelv3.MultiChannelCmdEncap
|
||||
def formatCmd = ([cmd.commandClass, cmd.command] + cmd.parameter).collect{ String.format("%02X", it) }.join()
|
||||
createEvent(name: "epEvent", value: "$cmd.sourceEndPoint:$formatCmd", isStateChange: true, displayed: false, descriptionText: "(fwd to ep $cmd.sourceEndPoint)")
|
||||
} else {
|
||||
zwaveEvent(encapsulatedCommand, cmd.sourceEndPoint as Integer)
|
||||
zwaveEvent(encapsulatedCommand)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -169,7 +169,7 @@ def zwaveEvent(physicalgraph.zwave.commands.securityv1.SecurityMessageEncapsulat
|
||||
if (encapsulatedCommand) {
|
||||
state.sec = 1
|
||||
def result = zwaveEvent(encapsulatedCommand)
|
||||
result = result.collect {
|
||||
result = [result].flatten().collect {
|
||||
if (it instanceof physicalgraph.device.HubAction && !it.toString().startsWith("9881")) {
|
||||
response(cmd.CMD + "00" + it.toString())
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user