1
0
This commit is contained in:
2022-02-23 10:23:16 +01:00
parent 7d1dd25f2a
commit 34dca81ba5
21 changed files with 738 additions and 533 deletions

View File

@ -9,6 +9,9 @@ function bool2string($var)
}elseif($var === true)
{
return "true";
}elseif ($var === null)
{
return "null";
}else
{
return $var;
@ -72,13 +75,13 @@ function getDevice($topic, $fn)
function getValue($ieeeAddress, $property)
{
global $indexDevices;
return $indexDevices[$ieeeAddress]->$property["value"];
return $indexDevices[$ieeeAddress]->properties[$property]["value"];
}
function setValue($fn, $property, $value)
{
global $indexDevices;
$indexDevices(RDC_SALON_MVMT2)->occupancy["value"] = $value;
$indexDevices[$ieeeAddress]->properties[$property]["value"] = $value;
}
logger(DEBUG, _("signal handling"), __FILE__ . ":" . __LINE__, false);