Trying to figure out from quite sometime now, what am I doing wrong - no error, but seems no action on hub side...
def dni = hexStrToUnsignedInt(device.deviceNetworkId)
def hubAction = new hubitat.device.HubAction(zwave.multiChannelV3.multiChannelCmdEncap(
sourceEndPoint: 0x01,
destinationEndPoint: device.deviceNetworkId,
commandClass:0x20,
command:0x02
).format()
, hubitat.device.Protocol.ZWAVE)
sendHubCommand(hubAction)
That is not the endpoint..
What are you trying to do here?
Are you trying to encapsulate to a multi-channel endpoint?
if so..
sendHubCommand(new hubitat.device.HubAction(zwave.multiChannelV3.multiChannelCmdEncap(sourceEndpoint: 1, destinationEndpoint: ??).encapsulatedCommand(zwave.basicV1.basicGet()).format(), hubitat.device.Protocol.ZWAVE))
and if you are using S2 or S0 you will want:
sendHubCommand(new hubitat.device.HubAction(zwaveSecureEncap(zwave.multiChannelV3.multiChannelCmdEncap(sourceEndpoint: 1, destinationEndpoint: ??).encapsulatedCommand(zwave.basicV1.basicGet()).format()), hubitat.device.Protocol.ZWAVE))
I simplify multi-channel encapsulation with a method I put in my drivers:
String epEncap(ep, cmd) {
return zwave.multiChannelV4.multiChannelCmdEncap(sourceEndPoint: 0, bitAddress: 0, res01: 0, destinationEndPoint: ep).encapsulate(cmd).format()
}
now.. I suspect that since you are attempting to use this .. You may not even be truly needing multi-channel right?
yep indeed, just want to send a command to a single device, but with cluster & command
Ok.. so based on the 0x20 0x02 I'm assuming a basic get..
so ..
sendHubCommand(new hubitat.device.HubAction(zwaveSecureEncap(zwave.basicV1.basicGet().format()), hubitat.device.Protocol.ZWAVE))
thanks, though I really need this being send as cluster 0x20 & command 0x02, rather than ```
zwave.basicV1.basicGet()
basicGet().format() returns 2002
as need to send various clusters & commands, let say passing them as parameter to a function. and this cannot be done in this form.
I'm not following what you are trying to accomplish here.. But if you want to manually write out hex here ya go:
sendHubCommand(new hubitat.device.HubAction(zwaveSecureEncap("2002"), hubitat.device.Protocol.ZWAVE))
THANK YOU.
BTW I am in touch with Qubino tech folks and about to end 16A plug driver to publish it for free so to help users connect it to Hubitat. Can I send you prio to take a look so to be best fit. Those folks were good enough to give me even OTA code so I've upgraded my devices via the integrated Hubitat app.
1 Like
system
Closed
September 24, 2022, 10:56am
15
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.