CUL_FHTTK bugfix
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1219 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -194,8 +194,10 @@ CUL_FHTTK_Parse($$)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($defs{$self}{PREV}{STATE} ne $state) {
|
my $prevState = $defs{$self}{PREV}{STATE};
|
||||||
$defs{$self}{READINGS}{"PreviousWindow"}{VAL} = $def->{PREVSTATE};
|
if ($prevState != $state) {
|
||||||
|
my ($windowReading,$windowState) = split(/:/, $fhttfk_codes{$prevState});
|
||||||
|
$defs{$self}{READINGS}{"PreviousWindow"}{VAL} = $windowState;
|
||||||
$defs{$self}{READINGS}{"PreviousWindow"}{TIME} = $def->{PREVTIMESTAMP};
|
$defs{$self}{READINGS}{"PreviousWindow"}{TIME} = $def->{PREVTIMESTAMP};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user