archives
This commit is contained in:
parent
a27db71327
commit
8974d3de84
@ -45,10 +45,9 @@ class etage_bureau_eclairage extends hook
|
||||
//{
|
||||
logger(INFO, sprintf(_("publishing message: %s to %s"), json_encode($msg), $device->friendlyName));
|
||||
$device->payload = $msg;
|
||||
$device->set();
|
||||
$device->properties["state"]["method"] = $method;
|
||||
if ($delayState !== false) setDelay($device, $this->delay, $this->timeUnit, "state", $delayState, true);
|
||||
|
||||
$device->set("state", $method);
|
||||
//$device->properties["state"]["method"] = $method;
|
||||
if ($delayState !== false) setDelay($device, $this->delay, $this->timeUnit, "state", $delayState, true, IDLE);
|
||||
|
||||
//}else
|
||||
//{
|
||||
|
@ -37,9 +37,9 @@ class etage_plan_travail_eclairage extends hook
|
||||
//{
|
||||
logger(INFO, sprintf(_("publishing message: %s to %s"), json_encode($msg), $device->friendlyName));
|
||||
$device->payload = $msg;
|
||||
$device->set();
|
||||
$device->properties["state_l1"]["method"] = $method;
|
||||
if ($delayState !== false) setDelay($device, $this->delay, $this->timeUnit, "state_l1", $delayState, true);
|
||||
$device->set("state_l1", $method);
|
||||
//$device->properties["state_l1"]["method"] = $method;
|
||||
if ($delayState !== false) setDelay($device, $this->delay, $this->timeUnit, "state_l1", $delayState, true, IDLE);
|
||||
|
||||
$device = & $indexDevices[ETAGE_CUISINE_PLAN_TRAVAIL_ECLAIRAGE];
|
||||
$msg = array("state" => $state);
|
||||
@ -47,9 +47,9 @@ class etage_plan_travail_eclairage extends hook
|
||||
//{
|
||||
logger(INFO, sprintf(_("publishing message: %s to %s"), json_encode($msg), $device->friendlyName));
|
||||
$device->payload = $msg;
|
||||
$device->set();
|
||||
$device->properties["state"]["method"] = $method;
|
||||
if ($delayState !== false) setDelay($device, $this->delay, $this->timeUnit, "state", $delayState, true);
|
||||
$device->set("state", $method);
|
||||
//$device->properties["state"]["method"] = $method;
|
||||
if ($delayState !== false) setDelay($device, $this->delay, $this->timeUnit, "state", $delayState, true, IDLE);
|
||||
|
||||
|
||||
//}else
|
||||
|
Loading…
Reference in New Issue
Block a user