I need some help understanding what is happening with my rule machine code to trigger a dryer notification. Sometimes the global variable does not get reset and I don't know why. Is it the Wait for event, the timeout, or something else entirely? I'm using a Tuya Zigbee vibration sensor on the dryer. Thanks for your help.
Here is the rule:
Here is the log from the latest activity: