Difference between revisions of "String devices.system.output1 consumptionStart"
Jump to navigation
Jump to search
(Založena nová stránka s textem „{{DISPLAYTITLE:string devices.system.output1_consumptionStart}} Date and time since the last reset of the consumption counter. See Number devices.system.…“) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:string devices.system.output1_consumptionStart}} | {{DISPLAYTITLE:string devices.system.output1_consumptionStart}} | ||
− | Date and time since the last reset of the consumption counter. See [[Number devices.system.output1 cumulatedConsumption| devices.system. | + | 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> |
+ | |||
+ | |||
+ | <b>last consumption counter reset of outlet 1</b><br> | ||
+ | <i>string</i> <code>devices.system.output1_consumptionStart</code> | ||
+ | |||
+ | |||
+ | <b>last consumption counter reset of outlet 2</b><br> | ||
+ | <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])