Difference between revisions of "Function devices.system.SetOut()"
Jump to navigation
Jump to search
(Založena nová stránka s textem „Changes state of specified outlet. Supported firmware: 2.3.2+ <i>nil</i> devices.system.SetOut{<u>config</u>} === Parameters === <i>table</i> <u>config<…“) |
|||
Line 1: | Line 1: | ||
− | Changes state of | + | Changes the state (on or off) of the outlet. Supported firmware: 2.3.2+ |
<i>nil</i> devices.system.SetOut{<u>config</u>} | <i>nil</i> devices.system.SetOut{<u>config</u>} | ||
Line 5: | Line 5: | ||
<i>table</i> <u>config</u> | <i>table</i> <u>config</u> | ||
* <i>number</i> <u>output</u> outlet to change (1 to 4) | * <i>number</i> <u>output</u> outlet to change (1 to 4) | ||
− | * <i>boolean</i> <u>value</u> true = on, false = off | + | * <i>boolean</i> <u>value</u> true = turn on, false = turn off |
=== Return value === | === Return value === |
Revision as of 19:55, 14 April 2017
Changes the state (on or off) of the outlet. Supported firmware: 2.3.2+
nil devices.system.SetOut{config}
Parameters
table config
- number output outlet to change (1 to 4)
- boolean value true = turn on, false = turn off
Return value
nil
Usage
-- turns outlet No.1 on devices.system.SetOut{output=1,value=true}