User Tools

Site Tools


dictionary:unitcontrol:turnoff

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dictionary:unitcontrol:turnoff [2016/03/14 15:45] – external edit 127.0.0.1dictionary:unitcontrol:turnoff [2023/02/13 14:52] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====Turn Off===+====Turn Off====
 Turns off a real unit, group or pseudo. Turns off a real unit, group or pseudo.
  
Line 7: Line 7:
  
 ===Optional Parameters:=== ===Optional Parameters:===
-**in** (integer, number of seconds)\\ 
-**at** (date, like the in parameter, an applescript date when you would like the unit to turn off)\\ 
-\\ 
-**for** (integer, number of seconds)\\ 
-**until** (date, like the for parameter, an applescript date when you like the unit to return to it’s current state)\\ 
-\\ 
-**with no script** (stops the ON or OFF script from running)\\ 
-**with no transmit** (updates the database but doesn't actually send the command)\\ 
-**rate** (integer, if supported by the device this ramp rate will be included in the command)\\ 
  
 +  * **in** (integer) If specified an event will be created to turn the device off in this number of seconds.
 +  * **at** (date) Like the in parameter, an Apple Script date when you would like the unit to turn off.
 +  * **for** (integer) Like the in parameter, if specified an event will be created to return the unit to it’s current state after this number of seconds. If you also specify an in or at parameter then this second event will be this number of seconds after the first one.
 +  * **until** (date) like the for parameter, an applescript date when you like the unit to return to it’s current state)
 +  * **rate** (number) The number of seconds you wish the transition to take. You may specify a fractional number of seconds such as 0.2 or 7.5. Not all devices support a rate parameter.
 +  * **with no script** (stops the ON or OFF script from running)
 +  * **with no transmit** (updates the database but doesn't actually send the command)
 ===Examples:=== ===Examples:===
 <code applescript> <code applescript>
Line 28: Line 26:
 </code> </code>
  
 +<code applescript>
 +--do a slow fade to off
 +turnoff “Bedroom Overhead” rate 5 * minutes
 +</code>
 ===Notes:=== ===Notes:===
 The command will do nothing if the unit is [[block|Blocked]].\\ The command will do nothing if the unit is [[block|Blocked]].\\
dictionary/unitcontrol/turnoff.1457970319.txt.gz · Last modified: 2023/02/13 14:51 (external edit)