debug
This commit is contained in:
@ -5,7 +5,9 @@ if (!array_key_exists("pws2mqtt", $devices)) $devices["pws2mqtt"] = array();
|
||||
function pws2mqttCallback($topic, $message)
|
||||
{
|
||||
global $logFh, $devices, $included, $topics;
|
||||
|
||||
$topicName = $topic[0];
|
||||
$topics[$topicName]->lastSeen = time();
|
||||
$fn = $topic[1];
|
||||
logger(INFO, sprintf(_("Incoming notification of device %s => friendly name : %s"), $topicName, $fn), __FILE__ . ":" . __LINE__);
|
||||
$device = & $devices[$topicName];
|
||||
@ -30,7 +32,6 @@ function pws2mqttCallback($topic, $message)
|
||||
{
|
||||
$device = &$device[$fn];
|
||||
}
|
||||
$topics[$topicName]->lastSeen = time();
|
||||
unset($payloadArray["friendly_name"]);
|
||||
unset($payloadArray["ieeeAddress"]);
|
||||
unset($payloadArray["type"]);
|
||||
|
@ -6,7 +6,8 @@ if (!array_key_exists("zigbee2mqtt", $devices)) $devices["zigbee2mqtt"] = array
|
||||
function zigbee2mqttCallback($topic, $message)
|
||||
{
|
||||
global $topics, $devices, $included, $logFh, $indexFriendlyNames, $devicesRequest;
|
||||
|
||||
|
||||
logger(DEBUG, _("CallBack Zigbee2mqtt"), __FILE__ . ":" . __LINE__);
|
||||
$topics[$topic[0]]->lastSeen = time();
|
||||
if ($topic[1] == "bridge")
|
||||
{
|
||||
|
Reference in New Issue
Block a user