Hi,
I written a have a driver for the Shelly Wave Pro Dimmer 2PM QPDM-0A2P01EU and this uses the centralSceneV3 command centralSceneConfigurationSet. It used to work with Zwave-ZIP, but after migrating to Zwave-JS I noticed it stopped working and a groovy error is thrown:
groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method com.hubitat.hub.executor.DeviceExecutor#zwaveSecureEncap. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class hubitat.zwave.Command] [class java.lang.String] on line 955 (method setCentralSceneRefreshRate)
The code is basically this:
void setCentralSceneRefreshRate(state) {
logDebug "setCentralSceneRefreshRate(${state})"
runCommand zwave.centralSceneV3.centralSceneConfigurationSet(slowRefresh: state == "True")
}
private void runCommand(hubitat.zwave.Command command) {
logDebug "Entering runCommand(${command})"
sendHubCommand(new hubitat.device.HubAction(zwaveSecureEncap(command), hubitat.device.Protocol.ZWAVE))
}
The debug log for runCommand shows the expected command:
Entering runCommand(CentralSceneConfigurationSet(slowRefresh:true))
For some reason with Zwave.JS the zwaveSecureEncap cannot handle the command. When I log command.format() it returns null rather than the correct formatted command.
Also when going into the Zwave settings, Node states for the device and click the Central Scene setConfiguration command an error is displayed that the command cannot be send.
I am running this on a C8, latest firmware 2.5.2.139.
To me it seems the centralSceneConfigurationSet command is not implemented correctly in the Zwave.JS part. Can this issue be fixed please?
Cheers Rene