Skip to content
Permalink
Browse files
Merge pull request #670 from Aleks130699/patch-2
Update SMotions_motionDetected.php
  • Loading branch information
sergejey committed Jan 30, 2020
2 parents 4897d9c + 5e72c7a commit 089323b1edd6ff062cfb780859fc6d8167c04ea6
Showing 1 changed file with 5 additions and 5 deletions.
@@ -31,18 +31,18 @@
$nobodyhome_timeout = SETTINGS_BEHAVIOR_NOBODYHOME_TIMEOUT * 60;
}

$is_blocked=(int)$this->getProperty('blocked');
if ($is_blocked) {
return;
}

$resetNobodysHome=$this->getProperty('resetNobodysHome');
if ($nobodyhome_timeout && !$resetNobodysHome) {
setTimeOut('nobodyHome', "callMethodSafe('NobodyHomeMode.activate');", $nobodyhome_timeout);
} elseif ($resetNobodysHome) {
clearTimeout('nobodyHome');
}

$is_blocked=(int)$this->getProperty('blocked');
if ($is_blocked) {
return;
}

$linked_room = $this->getProperty('linkedRoom');
if ($linked_room) {
callMethodSafe($linked_room . '.onActivity', array('sensor' => $ot));

0 comments on commit 089323b

Please sign in to comment.