1
0

- debugage\n- version avec plugins fonctionnels

This commit is contained in:
2022-02-25 20:42:33 +01:00
parent f6b7b9e664
commit a29aa9b653
6 changed files with 20 additions and 18 deletions

View File

@@ -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;