1
0
This commit is contained in:
2022-07-07 22:46:05 +02:00
parent c0aef550ab
commit 6e216d776b
11 changed files with 97 additions and 92 deletions

View File

@ -10,7 +10,7 @@ class rdc_wc_eclairage extends hook
RDC_WC_MVMT => "occupancy"
);
public $delay = 1; // amount of time in $timeunit
public $delay = 3; // amount of time in $timeunit
public $delayManual = 10; // amount of time in $timeunit for manual mode
public $timeUnit = "minute"; // unit of time for delay, second, minute, day, week, month, year
@ -41,6 +41,7 @@ class rdc_wc_eclairage extends hook
break;
case "occupancy":
logger(DEBUG, "CASE: occupancy", __FILE__ . ":" . __LINE__);
logger(DEBUG, "method =" . $targetDevice->properties["state_l2"]["method"], __FILE__ . ":" . __LINE__);
if ($value === true and $targetDevice->properties["state_l2"]["method"] == IDLE)
{
//$targetDevice->properties["state_l2"]["method"] = AUTO;