Skip to content
Permalink
Browse files

Updates

* Eco-mode activation when nobody's home
* Connect data sync optimizing
  • Loading branch information...
sergejey committed Mar 15, 2019
1 parent fd93edf commit 48a9e6dea5dcef636cc5f4672484cc583a96b268
@@ -2,4 +2,8 @@
if (defined('DISABLE_SIMPLE_DEVICES') && DISABLE_SIMPLE_DEVICES==1) return;
require(DIR_MODULES.'devices/Rooms_updateActivityStatus.php');
require(DIR_MODULES.'devices/Rooms_updateActivityStatus.php');
if (!gg('EconomMode.active')) {
callMethod('EconomMode.activate');
}
@@ -4,3 +4,6 @@
require(DIR_MODULES.'devices/Rooms_updateActivityStatus.php');
if (gg('EconomMode.active')) {
callMethod('EconomMode.deactivate');
}
@@ -852,10 +852,10 @@ function setProperty($property, $value, $no_linked=0, $source='') {
saveToCache($cached_name, $value);
$p_lower=strtolower($property);
if (!defined('DISABLE_SIMPLE_DEVICES') &&
$this->device_id &&
$property!='updated' &&
$property!='updatedText'
($p_lower=='value' || $p_lower=='status')
) {
addToOperationsQueue('connect_device_data',$this->object_title.'.'.$property,$value,true);
}

0 comments on commit 48a9e6d

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