Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
krlaframboise committed Oct 6, 2021
1 parent 3871959 commit 9620c39
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Zooz MultiRelay v1.3.1
* Zooz MultiRelay v1.4
* (Models: ZEN16)
*
* Author:
Expand All @@ -9,6 +9,9 @@
*
* Changelog:
*
* 1.4 (10/06/2021)
* - Removed the workaround that was added in 1.2.1 because Zooz is convinced that version 1.2 is the highest version that doesn't have inclusion problems.
*
* 1.3.1 (09/16/2020)
* - Added option 2 for config params 12, 13, and 14. (FIRMWARE >= 1.02)
*
Expand Down Expand Up @@ -475,14 +478,14 @@ def zwaveEvent(physicalgraph.zwave.commands.securityv1.SecurityMessageEncapsulat

def zwaveEvent(physicalgraph.zwave.commands.multichannelv3.MultiChannelCmdEncap cmd) {
// Workaround that was added to all SmartThings Multichannel DTHs.
if (cmd.commandClass == 0x6C && cmd.parameter.size >= 4) { // Supervision encapsulated Message
// Supervision header is 4 bytes long, two bytes dropped here are the latter two bytes of the supervision header
cmd.parameter = cmd.parameter.drop(2)
// Updated Command Class/Command now with the remaining bytes
cmd.commandClass = cmd.parameter[0]
cmd.command = cmd.parameter[1]
cmd.parameter = cmd.parameter.drop(2)
}
// if (cmd.commandClass == 0x6C && cmd.parameter.size >= 4) { // Supervision encapsulated Message
// // Supervision header is 4 bytes long, two bytes dropped here are the latter two bytes of the supervision header
// cmd.parameter = cmd.parameter.drop(2)
// // Updated Command Class/Command now with the remaining bytes
// cmd.commandClass = cmd.parameter[0]
// cmd.command = cmd.parameter[1]
// cmd.parameter = cmd.parameter.drop(2)
// }

def encapsulatedCommand = cmd.encapsulatedCommand(commandClassVersions)

Expand Down

0 comments on commit 9620c39

Please sign in to comment.