Cety
December 7, 2015, 8:48am
1
Hi Guys,
Anyone have example how to parse this?
def zwaveEvent(physicalgraph.zwave.commands.multicmdv1.MultiCmdEncap cmd) {
log.debug "MultiCmdEncap ${cmd}"
}
and the output is “MultiCmdEncap [4]” which is contained 4 commands.
How to parse those 4 commands so that i can send each command to zwaveEvent(cmd)?
GJC
December 20, 2015, 5:51pm
2
Did you have any luck solving this? I have the same issue.
I have the same issue, could someone from SmartThings help us out please?
From an ST zwave engineer: We have a pull request to add this, but we haven’t implemented it yet. I will keep this thread posted when we do add this functionality.
ertanden
(Ertan Deniz)
December 10, 2016, 4:51pm
5
Still no way to parse MultiCmdEncap? It has been months since you told you are working on this…
def zwaveEvent(physicalgraph.zwave.commands.multicmdv1.MultiCmdEncap cmd) {
log.debug "MultiCmd with $numberOfCommands inner commands"
cmd.encapsulatedCommands(commandClassVersions).collect { encapsulatedCommand ->
zwaveEvent(encapsulatedCommand)
}.flatten()
}
commandClassVersions is optional.
Source:
/**
* Copyright 2015 SmartThings
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
*/
metadata {
definition (name: "Z-Wave Sensor", namespace: "smartthings", author: "SmartThings", runLocally: true, minHubCoreVersion: '000.017.0012', executeCommandsLocally: false) {
capability "Sensor"
capability "Battery"
capability "Configuration"
attribute "sensor", "string"
This file has been truncated. show original