Skip to content

Commit c5e6daf

Browse files
committed
Minor updates
* Simple devices: openable level fix
1 parent e1e0db1 commit c5e6daf

6 files changed

+13
-2
lines changed

modules/devices/SOpenable_levelUpdated.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$level = $this->getProperty('level');
44
$status = $this->getProperty('status');
55

6-
if ($level>1 && $level!=100) {
6+
if ($level>1) {
77
$this->setProperty('levelSaved',$level);
88
}
99

modules/devices/econommode_activate.php

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
if (defined('DISABLE_SIMPLE_DEVICES') && DISABLE_SIMPLE_DEVICES==1) return;
44

5+
$this->setProperty('active', 1);
6+
57
//groupEco
68
$objects = getObjectsByProperty('groupEco', '=', 1);
79
$total = count($objects);

modules/devices/econommode_deactivate.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
if (defined('DISABLE_SIMPLE_DEVICES') && DISABLE_SIMPLE_DEVICES==1) return;
3+
if (defined('DISABLE_SIMPLE_DEVICES') && DISABLE_SIMPLE_DEVICES == 1) return;
4+
5+
$this->setProperty('active', 0);
46

57
//groupEcoOn
68
$objects = getObjectsByProperty('groupEcoOn', '=', 1);

modules/devices/nightmode_activate.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?php
22
if (defined('DISABLE_SIMPLE_DEVICES') && DISABLE_SIMPLE_DEVICES==1) return;
3+
4+
$this->setProperty('active', 1);
5+
36
//groupNight
47
$objects = getObjectsByProperty('groupNight', '=', 1);
58
$total = count($objects);

modules/devices/nobodyhomemode_activate.php

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
if (defined('DISABLE_SIMPLE_DEVICES') && DISABLE_SIMPLE_DEVICES==1) return;
44

5+
$this->setProperty('active', 1);
6+
57
ClearTimeOut("nobodyHome");
68
require(dirname(__FILE__).'/Rooms_updateActivityStatus.php');
79

modules/devices/nobodyhomemode_deactivate.php

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
if (defined('DISABLE_SIMPLE_DEVICES') && DISABLE_SIMPLE_DEVICES==1) return;
44

5+
$this->setProperty('active', 0);
6+
57
require(dirname(__FILE__).'/Rooms_updateActivityStatus.php');
68

79
if (gg('EconomMode.active')) {

0 commit comments

Comments
 (0)