Passing a timer handle between rules and functions

Even though it is not recommended, I have included examples that show how to use threading.Timer (I need to push a doc update). The examples include the use of a dict to store the timers. I use this in Area Triggers and Actions, where there is a dict that potentially holds a timer for each Item.

Actually, from what you’ve posted, Area Triggers and Actions could provide the functionality you are trying to implement, plus a LOT more…