debug
This commit is contained in:
@@ -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__);
|
||||
|
Reference in New Issue
Block a user