debug
This commit is contained in:
@@ -1,19 +1,4 @@
|
||||
<?php
|
||||
function aliases($fn, $property)
|
||||
{
|
||||
global $aliases;
|
||||
logger(DEBUG, "Function aliases " . $fn . "/" . $property, __FILE__ . ":" . __LINE__);
|
||||
if (array_key_exists($fn . "/" . $property, $aliases))
|
||||
{
|
||||
logger(DEBUG, "exists " . $fn . "/" . $property, __FILE__ . ":" . __LINE__);
|
||||
return "/" . $aliases[$fn . "/" . $property];
|
||||
}else
|
||||
{
|
||||
return "/" . _($property);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
$aliases = array(
|
||||
"rdc/wc-sdb/eclairage/state_l1" => "sdb",
|
||||
|
||||
@@ -35,6 +35,7 @@ $properties2log = array(
|
||||
"UV" => null,
|
||||
"indoortempc" => 0.5,
|
||||
"indoorhumidity" => 0.5,
|
||||
"baromin" => 10
|
||||
"baromin" => 10,
|
||||
"presence" => null
|
||||
);
|
||||
|
||||
|
||||
@@ -26,6 +26,6 @@ $types = array(
|
||||
"cover" => array(
|
||||
"0x842e14fffe9be0fc"
|
||||
),
|
||||
"hvac" =>
|
||||
"hvac" => array()
|
||||
);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user