mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 13:24:56 +00:00
CUL_FHTTK bugfix
git-svn-id: https://svn.fhem.de/fhem/trunk@1219 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
573d4120e7
commit
ec2ab5a7b5
@ -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