rossko57
(Rossko57)
April 28, 2019, 8:33pm
6
Yes, this is very common. The trick is to keep a “handle” to the Timer in a global variable, allowing you check if one is off already and then cancel or reschedule it.
There is now a rule template in the marketplace that implements this. See below for instructions on how to set it up for this DP.
Please see Design Pattern: What is a Design Pattern and How Do I Use Them for details on how to use DPs.
Problem Statement
Many motion detectors only report ON when they detect motion but do not send a corresponding OFF after no motion has been detected after a period of time. In addition, often one wants to control a device like a light for a certain period after …