Difference between revisions of "Function devices.system.ResetOut()"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{DISPLAYTITLE:function devices.system.ResetOut()}} | {{DISPLAYTITLE:function devices.system.ResetOut()}} | ||
Resets the outlet: if it was off, it stays off. If it was on, it is turned off for specified time (its led blinks green), and then turned on again. | Resets the outlet: if it was off, it stays off. If it was on, it is turned off for specified time (its led blinks green), and then turned on again. | ||
− | <i>nil</i> devices.system.ResetOut{< | + | <i>nil</i> devices.system.ResetOut{<code>config</code>} |
=== Parameters === | === Parameters === | ||
− | <i>table</i> < | + | <i>table</i> <tt>config</tt> |
− | * <i>number</i> < | + | * <i>number</i> <code>output</code> outlet to reset (1 to 4) |
− | * optional <i>number</i> < | + | * optional <i>number</i> <code>resetDelay</code> time period (in seconds) to keep the outlet off (default 1) |
=== Return value === | === Return value === |
Revision as of 19:23, 18 April 2017
Resets the outlet: if it was off, it stays off. If it was on, it is turned off for specified time (its led blinks green), and then turned on again.
nil devices.system.ResetOut{config
}
Parameters
table config
- number
output
outlet to reset (1 to 4) - optional number
resetDelay
time period (in seconds) to keep the outlet off (default 1)
Return value
nil
Usage
-- turns outlet No.1 off and resets its previous state after 10 seconds devices.system.ResetOut{output=1,resetDelay=10}