mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
32_TechemWZ.pm: fix for event-on fix
git-svn-id: https://svn.fhem.de/fhem/trunk@10662 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
24de0ff609
commit
5ef175bef5
@ -162,6 +162,7 @@ TechemWZ_Receive(@) {
|
|||||||
$ats = ReadingsTimestamp($hash->{NAME},"previous_period", "0");
|
$ats = ReadingsTimestamp($hash->{NAME},"previous_period", "0");
|
||||||
$ts = sprintf ("20%02d-%02d-%02d 00:00:00", $msg->{last}->{year}, $msg->{last}->{month}, $msg->{last}->{day});
|
$ts = sprintf ("20%02d-%02d-%02d 00:00:00", $msg->{last}->{year}, $msg->{last}->{month}, $msg->{last}->{day});
|
||||||
if ($ats ne $ts) {
|
if ($ats ne $ts) {
|
||||||
|
my $i;
|
||||||
readingsBeginUpdate($hash);
|
readingsBeginUpdate($hash);
|
||||||
$hash->{".updateTimestamp"} = $ts;
|
$hash->{".updateTimestamp"} = $ts;
|
||||||
$i = $#{ $hash->{CHANGED} };
|
$i = $#{ $hash->{CHANGED} };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user