some debugging
This commit is contained in:
parent
5224d00d5a
commit
c97f05d2b6
@ -24,11 +24,11 @@ class availability
|
||||
$log = INFO;
|
||||
}
|
||||
$device->availability = $value;
|
||||
logger($log, sprintf(_("Device: %s/%s is %s"), $topic, $fn , $value));
|
||||
logger($log, sprintf(_("Device: %s/%s is %s"), $device->topic, $device->friendlyName, $value));
|
||||
}
|
||||
break;
|
||||
}
|
||||
echo _("notification received from MQTT") . EOL;
|
||||
echo sprintf(_("notification received from MQTT -> device %s is %s"), $device->friendlyName , $value). EOL;
|
||||
//echo $param . "=> " . $value . EOL;
|
||||
}
|
||||
public function getHook()
|
||||
|
@ -47,7 +47,7 @@ class rdc_salon_eclairage
|
||||
if ($value >= $this->luminance_max) $this->send("OFF");
|
||||
break;
|
||||
}
|
||||
logger (sprintf(_(INFO, "%s: notification received from MQTT from %s => parameter: %s value: %s"), $hookName, $device["friendlyName"], $param, $value));
|
||||
logger (INFO, sprintf(_("%s: notification received from MQTT from %s => parameter: %s value: %s"), $this->hookName, $device->friendlyName, $param, $value));
|
||||
}
|
||||
|
||||
private function send($state)
|
||||
|
@ -56,7 +56,7 @@ class rdc_sdb_eclairage
|
||||
}
|
||||
break;
|
||||
}
|
||||
logger (INFO, _("%s: notification received from MQTT from %s => parameter: %s value: %s"), $hookName, $device["friendlyName"], $param, $value);
|
||||
logger (INFO, _("%s: notification received from MQTT from %s => parameter: %s value: %s"), $this->hookName, $device->friendlyName, $param, $value);
|
||||
}
|
||||
|
||||
private function send($state)
|
||||
@ -71,5 +71,5 @@ class rdc_sdb_eclairage
|
||||
}
|
||||
}
|
||||
|
||||
$hooks["rdc-sdb-eclairage"] = new rdc_sdb_eclairage();
|
||||
$hooks["rdc_sdb_eclairage"] = new rdc_sdb_eclairage();
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user