2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 11:26:55 +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:
jpawlowski 2015-05-21 09:45:44 +00:00
parent 9e63361be4
commit f2aeff8757

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