- debugage\n- version avec plugins fonctionnels
This commit is contained in:
@@ -39,8 +39,8 @@ class rdc_chambre_eclairage extends hook
|
||||
private function send($deviceObject, $state, $delayState = false, $method = MANUAL)
|
||||
{
|
||||
global $devices, $indexDevices;
|
||||
$msg = array("state" => $state);
|
||||
if ($deviceObject->properties["state"]["value"] != $state)
|
||||
$msg = array("state_l1" => $state);
|
||||
if ($deviceObject->properties["state_l1"]["value"] != $state)
|
||||
{
|
||||
logger(INFO, sprintf(_("publishing message: %s to %s"), json_encode($msg), $deviceObject->friendlyName), __FILE__ . ":" . __LINE__);
|
||||
$deviceObject->payload = $msg;
|
||||
|
Reference in New Issue
Block a user