Function devices.system.SetOut(): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 13: | Line 13: | ||
-- turns outlet No.1 on | -- turns outlet No.1 on | ||
devices.system.SetOut{output=1,value=true} | devices.system.SetOut{output=1,value=true} | ||
=== See also === | |||
* [[Function devices.system.ResetOut()|devices.system.ResetOut()]] to conveniently reset the state | |||
__NOTOC__ | __NOTOC__ | ||
Revision as of 21:15, 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}
See also
- devices.system.ResetOut() to conveniently reset the state