debugging hooks and events
This commit is contained in:
@ -33,14 +33,14 @@ class availability
|
||||
if ($device->availability != $value)
|
||||
{
|
||||
//echo "==========>>>>>> Availability $value" . EOL;
|
||||
if (!empty($device->availability))
|
||||
{
|
||||
$log = WARNING;
|
||||
}else
|
||||
{
|
||||
$log = INFO;
|
||||
}
|
||||
$device->availability = $value;
|
||||
//if (!empty($device->availability))
|
||||
//{
|
||||
$log = ALERT;
|
||||
//}else
|
||||
//{
|
||||
// $log = INFO;
|
||||
//}
|
||||
//$device->availability = $value;
|
||||
logger($log, sprintf(_("Device: %s/%s is %s"), $device->topic, $device->friendlyName, $value));
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user