debug
This commit is contained in:
@@ -68,18 +68,22 @@ class rdc_temperature_int_ext extends hook
|
||||
}
|
||||
logger (INFO, sprintf(_("%s: notification received from MQTT from %s => parameter: %s value: %s"), $this->hookName, $device->friendlyName, $property, bool2string($value)), __FILE__ . ":" . __LINE__, $device);
|
||||
}
|
||||
$portes = $hooks["alerte_intrusion"]->testPortes($this->portesList, false, true);
|
||||
print_r($portes);
|
||||
if ($status == 1)
|
||||
{
|
||||
$portes = $hooks["test_portes"]->testPortes($this->portesList, false, false);
|
||||
if (empty($portes))
|
||||
{
|
||||
logger(ALERT, _("Open doors to climate"), null, $device);
|
||||
$time = now();
|
||||
foreach($portes as $porte)
|
||||
{
|
||||
$msg .= $porte . "\n";
|
||||
}
|
||||
logger(ALERT, _("Open doors to climate") . $msg, null, $device);
|
||||
}
|
||||
}else
|
||||
{
|
||||
//$portes = $hooks["alerte_intrusion"]->testPortes(false, true);
|
||||
$portes = $hooks["test_portes"]->testPortes($this->portesList, false, true);
|
||||
if (!empty($portes))
|
||||
{
|
||||
$time = now();
|
||||
|
Reference in New Issue
Block a user