mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
CUL_FHTTK fix
git-svn-id: https://svn.fhem.de/fhem/trunk@1234 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
216cb7676f
commit
31507f44dc
@ -199,10 +199,10 @@ CUL_FHTTK_Parse($$)
|
||||
$defs{$self}{READINGS}{"Previous"}{TIME} = "";
|
||||
}
|
||||
|
||||
my $prevState = $defs{$self}{PREV}{STATE};
|
||||
if ($prevState != $state) {
|
||||
if (defined($defs{$self}{PREV}{STATE}) && $defs{$self}{PREV}{STATE} != $state) {
|
||||
my $prevState = $defs{$self}{PREV}{STATE};
|
||||
my ($windowReading,$windowState) = split(/:/, $fhttfk_codes{$prevState});
|
||||
$defs{$self}{READINGS}{"Previous"}{VAL} = $windowState if $windowState ne "";
|
||||
$defs{$self}{READINGS}{"Previous"}{VAL} = $windowState if defined($windowState) && $windowState ne "";
|
||||
$defs{$self}{READINGS}{"Previous"}{TIME} = TimeNow();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user