Difference between revisions of "Function devices.system.resetCumulativeConsumption()"
Jump to navigation
Jump to search
(→See also) |
|||
Line 18: | Line 18: | ||
=== See also === | === See also === | ||
− | * [[Number devices.system.output1 cumulatedConsumption|devices.system. | + | * [[Number devices.system.output1 cumulatedConsumption|devices.system.output1_cumulatedConsumption]] - reads the energy counter |
__NOTOC__ | __NOTOC__ |
Revision as of 10:15, 15 April 2017
Resets the energy counter for the outlet. To read the counter, use devices.system.output1_cumulatedConsumption.
Warning!
Note the name inconsistency: output1_cumulatedConsumption and resetCumulativeConsumption{output=1}.
nil devices.system.resetCumulativeconsumption{config}
Parameters
table config
- number output outlet where to reset the counter (1 to 4)
Return value
nil
Usage
-- reset the counter for output No.1 devices.system.resetCumulativeConsumption{output=1}
See also
- devices.system.output1_cumulatedConsumption - reads the energy counter