diff --git a/fhem/FHEM/10_RESIDENTS.pm b/fhem/FHEM/10_RESIDENTS.pm index d750ab009..b9dc09dd5 100644 --- a/fhem/FHEM/10_RESIDENTS.pm +++ b/fhem/FHEM/10_RESIDENTS.pm @@ -213,7 +213,7 @@ sub RESIDENTS_Notify($$) { # update statistics readingsBeginUpdate($hash); - readingsBulkUpdate( $hash, "lastActivity", $change ); + readingsBulkUpdate( $hash, "lastActivity", ReadingsVal($devName, "state", $change) ); readingsBulkUpdate( $hash, "lastActivityBy", $realname ); readingsBulkUpdate( $hash, "lastActivityByDev", $devName ); readingsEndUpdate( $hash, 1 );