Project Home‎ > ‎Documentation‎ > ‎Attributes‎ > ‎

Delay

Delay is used to add a time delay to a device operation. For example you might want to turn a light off 2 minutes after it turned on. Or you might want to extend the time a device is in a particular state. All time is valued in seconds but can be a math equation, so 300 seconds could be 5*60 seconds.

Syntax:

delay={
	Attribute.COMMAND:	Command.<State>,
       	Attribute.SOURCE:	<source device>,
	Attribute.SECS: 	<time in seconds>
},



Example:

Set a delay of 10 seconds after a MOTION device sends a STILL command until it the state actually changes to STILL.

delay={ Attribute.COMMAND: Command.STILL, Attribute.SOURCE: m_livingroom Attribute.SECS: 10 },
Comments