mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
RESIDENTS: fix statistics (forum #37364)
git-svn-id: https://svn.fhem.de/fhem/trunk@8616 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9e63361be4
commit
f2aeff8757
@ -999,7 +999,7 @@ sub RESIDENTS_UpdateReadings (@) {
|
||||
readingsBulkUpdate( $hash, "presence", $newpresence );
|
||||
|
||||
# update statistics
|
||||
if ( $presence eq "present" ) {
|
||||
if ( $newpresence eq "present" ) {
|
||||
readingsBulkUpdate( $hash, "lastArrival", $datetime );
|
||||
|
||||
# absence duration
|
||||
|
Loading…
x
Reference in New Issue
Block a user