Difference between revisions of "Function devices.system.resetCumulativeConsumption()"

From wiki.netio-products.com
Jump to navigation Jump to search
(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…“)
 
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Function devices.system.resetCumulativeconsumption()}}
+
{{DISPLAYTITLE:function devices.system.resetCumulativeConsumption()}}
Resets the energy counter for the outlet. To read the counter, use [[Number devices.system.output1 cumulatedConsumption|devices.system.output1 cumulatedConsumption]]. <b>Warning!</b> Note the name inconsistency: <u>output1</u>_cumulat<u>ed</u>Consumption and resetCumulat<u>ive</u>Consumption{<u>output=1</u>}. Supported firmware 2.3.2+
+
Resets the energy counter for the outlet. To read the counter, use [[Number devices.system.output1 cumulatedConsumption|devices.system.output1_cumulatedConsumption]].
  
  <i>nil</i> devices.system.resetCumulativeconsumption{<u>config</u>}
+
<b>Warning!</b><br>Note the name inconsistency: <i><u>output1</u>_cumulat<u>ed</u>Consumption</i> and <i>resetCumulat<u>ive</u>Consumption{<u>output=1</u>}</i>.
 +
 
 +
  <i>nil</i> <b>devices.system.resetCumulativeconsumption</b>(<code>config</code>)
  
 
=== Parameters ===
 
=== Parameters ===
  <i>table</i> <u>config</u>
+
  <i>table</i> config{<code>number</code>}
* <i>number</i> <u>output</u> outlet where to reset the counter (1 to 4)
+
* <i>number</i> <code>output</code> outlet where to reset the counter (1 to 4)
  
 
=== Return value ===
 
=== Return value ===
Line 16: Line 18:
  
 
=== See also ===
 
=== See also ===
* [[Number devices.system.output1 cumulatedConsumption|devices.system.output1 cumulatedConsumption]] - reads the energy counter
+
* [[Number devices.system.output1 cumulatedConsumption|devices.system.output1_cumulatedConsumption]] - reads the energy counter
 +
 
 +
__NOTOC__

Latest revision as of 22:07, 19 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}
  • 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