32_TechemHKV.pm: timestamp at midnight for log

git-svn-id: https://svn.fhem.de/fhem/trunk@10499 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
herrmannj
2016-01-14 11:30:33 +00:00
parent ea49fd9c3e
commit d6426c0e0b

View File

@@ -132,7 +132,7 @@ TechemHKV_Receive(@) {
readingsBeginUpdate($hash);
$hash->{".updateTimestamp"} = $ts;
readingsBulkUpdate($hash, "current_period", $msg->{actualVal});
$hash->{CHANGETIME}[0] = $ts;
$hash->{CHANGETIME}->[0] = $ts;
readingsEndUpdate($hash, 1);
delete $hash->{CHANGETIME};
}
@@ -144,7 +144,7 @@ TechemHKV_Receive(@) {
readingsBeginUpdate($hash);
$hash->{".updateTimestamp"} = $ts;
readingsBulkUpdate($hash, "previous_period", $msg->{lastVal});
$hash->{CHANGETIME}[0] = $ts;
$hash->{CHANGETIME}->[0] = $ts;
readingsEndUpdate($hash, 1);
delete $hash->{CHANGETIME};
}