Skip to content
Permalink
Browse files

Fixes

* Simple devices: minor fixes
  • Loading branch information...
sergejey committed May 29, 2019
1 parent b65793f commit 6f49a9780db9df43aea5d58494c1c62c951e1733
Showing with 6 additions and 2 deletions.
  1. +5 −1 modules/devices/SMotions_motionDetected.php
  2. +1 −1 modules/devices/SSensors_valueUpdated.php
@@ -30,8 +30,12 @@
if (defined('SETTINGS_BEHAVIOR_NOBODYHOME_TIMEOUT')) {
$nobodyhome_timeout = SETTINGS_BEHAVIOR_NOBODYHOME_TIMEOUT * 60;
}
if ($nobodyhome_timeout && !$this->getProperty('resetNobodysHome')) {
$resetNobodysHome=$this->getProperty('resetNobodysHome');
if ($nobodyhome_timeout && !$resetNobodysHome) {
setTimeOut('nobodyHome', "callMethodSafe('NobodyHomeMode.activate');", $nobodyhome_timeout);
} elseif ($resetNobodysHome) {
clearTimeout('nobodyHome');
}
$linked_room = $this->getProperty('linkedRoom');
@@ -11,7 +11,7 @@
$directionTimeout = 1*60*60;
}
$value = (float)$params['NEW_VALUE'];
$value = (float)$this->getProperty('value');
$minValue = (float)$this->getProperty('minValue');
$maxValue = (float)$this->getProperty('maxValue');
$is_normal = (int)$this->getProperty('normalValue');

0 comments on commit 6f49a97

Please sign in to comment.
You can’t perform that action at this time.