Difference between revisions of "String devices.system.output1 consumptionStart"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
Date and time since the last reset of the consumption counter. See [[Number devices.system.output1 cumulatedConsumption| devices.system.output1_cumulatedConsumption]]. <b>The property is read only!</b> | Date and time since the last reset of the consumption counter. See [[Number devices.system.output1 cumulatedConsumption| devices.system.output1_cumulatedConsumption]]. <b>The property is read only!</b> | ||
− | last consumption counter reset of outlet 1 | + | |
− | + | <b>last consumption counter reset of outlet 1</b><br> | |
− | last consumption counter reset of outlet 2 | + | <i>string</i> <code>devices.system.output1_consumptionStart</code> |
− | + | ||
− | last consumption counter reset of outlet 3 | + | |
− | + | <b>last consumption counter reset of outlet 2</b><br> | |
− | last consumption counter reset of outlet 4 | + | <i>string</i> <code>devices.system.output2_consumptionStart</code> |
− | + | ||
+ | |||
+ | <b>last consumption counter reset of outlet 3</b><br> | ||
+ | <i>string</i> <code>devices.system.output3_consumptionStart</code> | ||
+ | |||
+ | |||
+ | <b>last consumption counter reset of outlet 4</b><br> | ||
+ | <i>string</i> <code>devices.system.output4_consumptionStart</code> | ||
+ | |||
=== Value === | === Value === |
Latest revision as of 19:33, 18 April 2017
Date and time since the last reset of the consumption counter. See devices.system.output1_cumulatedConsumption. The property is read only!
last consumption counter reset of outlet 1
string devices.system.output1_consumptionStart
last consumption counter reset of outlet 2
string devices.system.output2_consumptionStart
last consumption counter reset of outlet 3
string devices.system.output3_consumptionStart
last consumption counter reset of outlet 4
string devices.system.output4_consumptionStart
Value
The format is space separated date and time
YYYY-MM-DD hh:mm:ss
Usage
local cs = devices.system.output1_consumptionStart local date,time = string.match(cs,"(%S+) (%S+)") local dateValues = {} for value in string.gmatch(date,"(%d+)") do table.insert(dateValues,tonumber(value)) end local timeValues = {} for value in string.gmatch(time,"(%d+)") do table.insert(timeValues,tonumber(value)) end logf("Minute of last consumption counter reset: %d",timeValues[2])