Function devices.system.resetCumulativeConsumption()

From wiki.netio-products.com
Revision as of 00:28, 15 April 2017 by Jturon (talk | contribs) (Založena nová stránka s textem „{{DISPLAYTITLE:Function devices.system.resetCumulativeconsumption()}} Resets the energy counter for the outlet. To read the counter, use Number devices.s…“)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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}. Supported firmware 2.3.2+

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