Understanding device events (when they're delayed)

Hey all --

I spent a lot of time trying to write my own garage door controller to learn the process and the new Hubitat C7 I just received. I'm using a Remotec ZFM-80 relay and a standard wireless door open/closed switch.

Since the relay needs to be turned off after it is turned on, I saw some weird delays in that happening and I was thinking that my code was wrong. Then I would see the relay blinking a lot later on - well after it should have almost as if the commands to it were delayed.

Is there any way I can check to see if things are backed up in the system or something so I can tell if it's my code that is wrong, or if the commands to the device are just delayed or one reason or another? How would you go about debugging this so I don't spend time trying to debug my code when it's really just a delay in the system trying to do what it needs to do?

Thank you,

-Alli

I rely on the auto off function on the driver i use for the relay

The issue with that is the shortest time you can select with it is 1m. As I understand, the generic driver for it you can set to as little as 1 second but it is software based and susceptible to the same lag. Thatโ€™s what Iโ€™m using right now, the generic driver and it is set to 1 second.