1
0
This commit is contained in:
2022-09-02 17:59:33 +02:00
parent 0f9f3d5a98
commit e313205148
10 changed files with 82 additions and 30 deletions

View File

@@ -16,7 +16,7 @@ class rdc_salon_eclairage extends hook
protected $actionneurs = array(
array(RDC_SALON_MVMT, "occupancy", 1),
array(RDC_SALON_MVMT2, "occupancy", 1),
array(RDC_SALON_PRESENCE => "presence", 1)
array(RDC_SALON_PRESENCE, "presence", 1)
);
public $delay = 3; // amount of time in $timeunit
public $timeUnit = "minute"; // unit of time for delay, second, minute, hour, day, week, month, year
@@ -61,7 +61,7 @@ class rdc_salon_eclairage extends hook
}else
{
logger(INFO, _("Value is OFF"), __FILE__ . ":" . __LINE__);
if (testActionneurs($this->actionneurs) and $method = AUTO)
if (testActionneurs($this->actionneurs) === false and $method == AUTO)
//if ((getValue(RDC_SALON_MVMT, "occupancy") == OFF) and (getValue(RDC_SALON_MVMT2, "occupancy") == OFF) and $method == AUTO)
{
logger(INFO, _("Setting to OFF"), __FILE__ . ":" . __LINE__);