24.10.2018, 14:05
(24.10.2018, 13:42)admin Wrote: Try adding log to all checkwrite calls, like this:
Code:if opened then
fullyOpened = (os.microtime() - firstTimestamp) >= openingValveTime
if fullyOpened then
log(grp.checkwrite(pumpGA, true))
nextCalculationAfter = minInterval
else
log(grp.checkwrite(pumpGA, false))
nextCalculationAfter = openingValveTime + 1 - (os.microtime() - firstTimestamp) -- run a little after possible change
end
else
log(grp.checkwrite(pumpGA, false))
nextCalculationAfter = openingValveTime + 1
end
Ok, here below. The log of checkwrite is done only the first time. Everything change but not the 2/0/2.
Thanks.
Tesy_pompa_circolazione_mansarda 24.10.2018 16:01:48
* arg: 1
* nil
* arg: 2
* string: same boolean value
[size=undefined]
Tesy_pompa_circolazione_mansarda 24.10.2018 16:01:48
* table:
[1]
* table:
[export]
* number: 0
[disablelog]
* number: 1
[tagcache]
* string: clima, pompa_circolazione_mansarda_inverno, pompa_circolazione_mansarda_estate
[datahex]
* string: 00
[units]
* string:
[value]
* bool: false
[comment]
* string:
[updatetime]
* number: 1540389692
[datatype]
* number: 1009
[address]
* string: 2/0/107
[id]
* number: 4203
[data]
* bool: false
[highpriolog]
* number: 0
[pollinterval]
* string:
[readoninit]
* number: 0
[name]
* string: T7 FB Elettrovalvola pavimento mansarda
[decoded]
* bool: true
[/size]
[size=undefined]
Tesy_pompa_circolazione_mansarda 24.10.2018 16:01:48
* arg: 1
* bool: true
* arg: 2
* bool: false
* arg: 3
* number: 1540389708
* arg: 4
* number: 0
[/size]
[size=undefined]
Tesy_pompa_circolazione_mansarda 24.10.2018 16:03:29
* table:
[1]
* table:
[export]
* number: 0
[disablelog]
* number: 1
[tagcache]
* string: clima, pompa_circolazione_mansarda_inverno, pompa_circolazione_mansarda_estate
[datahex]
* string: 01
[units]
* string:
[value]
* bool: true
[comment]
* string:
[updatetime]
* number: 1540389805
[datatype]
* number: 1009
[address]
* string: 2/0/107
[id]
* number: 4203
[data]
* bool: true
[highpriolog]
* number: 0
[pollinterval]
* string:
[readoninit]
* number: 0
[name]
* string: T7 FB Elettrovalvola pavimento mansarda
[decoded]
* bool: true
[/size]
[size=undefined]
Tesy_pompa_circolazione_mansarda 24.10.2018 16:03:29
* arg: 1
* bool: true
* arg: 2
* bool: true
* arg: 3
* number: 1540389809
* arg: 4
* number: 1540389805
[/size]