How to write a Device Handler that sends a Z-Wave command some time after a button is pressed


i’m beginning to lose my mind here. I’m trying to issue a command 5 minutes after a button is pressed but the command itself doesn’t seem to be firing at all. If i do not delay the execution via runIn() or any other shceduling function the command fires off on the z-wave level immediately, but the delayed one never does even though the code to send the command is identical as before. The only change is that it’s now called from a delayed execution method.

I’m guessing it has to do with how you are issuing the Z-Wave command. When using runIn(), if you are sending the command by returning the value from the function, you’ll likely have to use hubAction instead.