2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

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 b99fbd5723
commit 37fbcb5453

View File

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