Minor modif to moha.php\nDebug\nAdded script rdc_temperature_int_ext
This commit is contained in:
@ -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__);
|
||||
|
Reference in New Issue
Block a user