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:
loredo
2015-05-21 09:45:44 +00:00
parent 78cbf2a9df
commit 32d8bb5eaa

View File

@@ -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