some debugging and modifying hooks functions to fetch parameters
This commit is contained in:
28
config/devices_constants.php
Normal file
28
config/devices_constants.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/************************************************************************************/
|
||||
/*edit this file for defining constants of devices */
|
||||
/*e.g. */
|
||||
/* $deviceTable = array( <ieeeAdress of device> => <name of the constant>, ...); */
|
||||
/************************************************************************************/
|
||||
|
||||
$deviceTable = array(
|
||||
"0x00124b0022ebac5c" => "RDC_SALON_MVMT2",
|
||||
"0x588e81fffe2cf695" => "RDC_SALON_MVMT",
|
||||
"0x00124b001f900753" => "RDC_ENTREE_PORTE",
|
||||
"0x04cf8cdf3c78aff0" => "RDC_SALON_LUMINOSITE",
|
||||
"0x588e81fffe343e8f" => "RDC_SALON_ECLAIRAGE_PANNEAU",
|
||||
"0x00158d0003f0f3b4" => "RDC_SDB_DOUCHE",
|
||||
"0x842e14fffe1c0cd1" => "RDC_SDB_PLAFOND_MVMT",
|
||||
"0x00124b0022ec05dc" => "RDC_SDB_MVMT",
|
||||
"0x00158d0005c1a998" => "RDC_SDB_WC_ECLAIRAGE"
|
||||
);
|
||||
|
||||
foreach($deviceTable as $device => $name)
|
||||
{
|
||||
define($name, $device);
|
||||
logger(INFO, _("defining constant ") . $name);
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user