32_TechemWZ.pm: timestamp at midnight for log

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

View File

@@ -149,7 +149,7 @@ TechemWZ_Receive(@) {
$hash->{".updateTimestamp"} = $ts;
readingsBulkUpdate($hash, "meter", $msg->{meter});
readingsBulkUpdate($hash, "current_period", $msg->{actualVal});
$hash->{CHANGETIME}[0] = $ts;
$hash->{CHANGETIME}->[0] = $ts;
readingsEndUpdate($hash, 1);
delete $hash->{CHANGETIME};
}
@@ -161,7 +161,7 @@ TechemWZ_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};
}
@@ -355,7 +355,7 @@ TechemWZ_ParseLastDate(@) {
###############################################################################
#
# Vario 5 heatmeter
# Compact 5 heatmeter
#
###############################################################################