1
0

Minor modif to moha.php\nDebug\nAdded script rdc_temperature_int_ext

This commit is contained in:
2022-08-05 17:24:11 +02:00
parent d0489c7353
commit 4e04dfdfd6
6 changed files with 42 additions and 7 deletions

View File

@ -46,11 +46,13 @@ class rdc_wc_eclairage extends hook
{
//$targetDevice->properties["state_l2"]["method"] = AUTO;
$this->send($targetDevice, "ON", AUTO);
removeEvent($targetDevice, "state_l2", "OFF");
}elseif ($value === false and $targetDevice->properties["state_l2"]["method"] == AUTO)
{
//$targetDevice->properties["state_l2"]["method"] = IDLE;
//$this->send($targetDevice, "OFF");
setDelay($targetDevice, $this->delay, $this->timeUnit, "state_l2", "OFF", true, IDLE);
//setDelay($targetDevice, $this->delay, $this->timeUnit, "state_l2", "OFF", true, IDLE);
$this->send($targetDevice, "OFF", IDLE);
}
}
logger (INFO, sprintf(_("%s: notification received from MQTT from %s => parameter: %s value: %s"), $this->hookName, $device->friendlyName, $property, bool2string($value)), __FILE__ . ":" . __LINE__);