I want to track how my DTH file is run through Z-Wave Zniffer. But some functions do not seem to be called. I try to send commands to track, but the sent commands seem to interfere with the process. I hope that there is a method similar to log.trace or log.debug, which can observe the value of certain variables in Z-Wave Zniffer or know where the program is running, but this command cannot affect the normal process. Excuse me, does such auxiliary debugging command exist?
So, you want to see the logs of the commands sent from the handler to the physical device?
Have you already tried the
log.debug in your DTH parse methods but you need more info?
In the IDE simulator, I can see the information I want through log.trace and log.debug. The problem I have now is that I find that preferences do not work, but I cannot track the cause in the simulator.
ooh, so you receive the value of the preference correctly but when you send the
zwave.configuration to the device, it doesn’t take effect, is this correct?
Please, share your preferences config and the commands you use to send them to the device.
My DTH file is implemented by referring to aeotec-trisensor.groovy, and the virtual device using aeotec-trisensor.groovy also has the same problem. But another file eva-logik-in-wall-smart-switch.groovy, the virtual machine created will not have such a problem.
Ok, I reviewed your situation with the engineering team and the feedback is:
- The configuration Get command helps you verify if the device is saving the values you sent
- Check if the values you send for the device attributes are correct ( that depends on the physical device config).
- They suggest using the
scaledConfigurationValueparameter in the configuration set instead of calling your own parsing method to avoid having issues with it -
configurationValue: intToHexBytes(param.value, param.size).
Let me know if you have any questions.
Thank you for your reply, I noticed this difference, because in my comparative test, the DTH file eva-logik-in-wall-smart-switch.groovy was implemented using the method you mentioned, and I also synchronized this to my file. I tracked the running track of the device loaded with eva-logik-in-wall-smart-switch.groovy, and found that after the preferences were changed, the “updated()” method was first called in eva-logik-in-wall-smart-switch.groovy, the method “executeConfigureCmds” involved in the statement "runIn(5, executeConfigureCmds, [overwrite: true]) "in “updated()” will be called quickly. But in my file, even if I use the same method to call, “executeConfigureCmds” will not be called immediately. I have observed that it is called after a long time, but it is random. If I don’t use the “runIn” method and call “executeConfigureCmds” directly, a large number of “Routed Errors” will be observed in Z-Wave Zniffer.
I don’t understand the function of the “runIn” method. Where can I find the instructions for using this method? The current observation is that there are differences in the implementation of this method.