mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
CUL_FHTTK bugfix
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@1219 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bd64297db8
commit
dd68a4db9a
@ -194,8 +194,10 @@ CUL_FHTTK_Parse($$)
|
||||
}
|
||||
}
|
||||
|
||||
if ($defs{$self}{PREV}{STATE} ne $state) {
|
||||
$defs{$self}{READINGS}{"PreviousWindow"}{VAL} = $def->{PREVSTATE};
|
||||
my $prevState = $defs{$self}{PREV}{STATE};
|
||||
if ($prevState != $state) {
|
||||
my ($windowReading,$windowState) = split(/:/, $fhttfk_codes{$prevState});
|
||||
$defs{$self}{READINGS}{"PreviousWindow"}{VAL} = $windowState;
|
||||
$defs{$self}{READINGS}{"PreviousWindow"}{TIME} = $def->{PREVTIMESTAMP};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user