mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-09 07:44:19 +00:00
CUL_FHTTK previous state
git-svn-id: https://svn.fhem.de/fhem/trunk@1218 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4e1367982a
commit
573d4120e7
@ -193,9 +193,18 @@ CUL_FHTTK_Parse($$)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($defs{$self}{PREV}{STATE} ne $state) {
|
||||
$defs{$self}{READINGS}{"PreviousWindow"}{VAL} = $def->{PREVSTATE};
|
||||
$defs{$self}{READINGS}{"PreviousWindow"}{TIME} = $def->{PREVTIMESTAMP};
|
||||
}
|
||||
|
||||
$def->{PREVTIMESTAMP} = defined($defs{$self}{PREV}{TIMESTAMP})?$defs{$self}{PREV}{TIMESTAMP}:time();
|
||||
$def->{PREVSTATE} = defined($def->{STATE})?$def->{STATE}:"Unknown";
|
||||
$defs{$self}{PREV}{STATE}=$state;
|
||||
|
||||
|
||||
|
||||
#READINGS
|
||||
my ($reading,$val) = split(/:/, $fhttfk_codes{$state});
|
||||
$defs{$self}{READINGS}{$reading}{VAL} = $val;
|
||||
|
Loading…
x
Reference in New Issue
Block a user