1
0
moha/config/devices_constants.php

33 lines
1.1 KiB
PHP
Raw Normal View History

<?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",
2022-01-06 13:03:26 +01:00
"0x00158d0005c1a998" => "RDC_SDB_WC_ECLAIRAGE",
"0x00124b001f90ee7e" => "ENTREE_PORTE",
"0x00124b002226d9a2" => "GARAGE_PORTE",
"0x00124b001f90e725" => "RDC_CHAMBRE_BAIE",
"0x00124b002226e384" => "RDC_SALON_BAIE"
);
foreach($deviceTable as $device => $name)
{
define($name, $device);
logger(INFO, _("defining constant ") . $name);
}
?>