- debug
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
class radiateurs extends hook
|
||||
{
|
||||
public $hookName = "radiateurs";
|
||||
public $active = false;
|
||||
public $active = true;
|
||||
|
||||
/* already defined in hook class */
|
||||
// public $active = true;
|
||||
@ -25,6 +25,7 @@ class radiateurs extends hook
|
||||
// ETAGE_BUREAU_FENETRE => "contact"
|
||||
);
|
||||
|
||||
// list of actions (sensor => hvac)
|
||||
protected $hvac = array(
|
||||
RDC_CHAMBRE_BAIE => RDC_CHAMBRE_RADIATEUR,
|
||||
RDC_SALON_BAIE => RDC_SALON_RADIATEUR,
|
||||
@ -49,6 +50,11 @@ class radiateurs extends hook
|
||||
// ETAGE_CHAMBRE_RADIATEUR => 0
|
||||
);
|
||||
|
||||
function installHooks(&$indexDevices)
|
||||
{
|
||||
return $this->installHooksFunction($indexDevices);
|
||||
}
|
||||
|
||||
// callback fonction. Is called with these 3 parameters
|
||||
public function callBack(&$device, $property, $value)
|
||||
{
|
||||
@ -107,7 +113,7 @@ class radiateurs extends hook
|
||||
$t = getValue($device->ieeeAddress, "current_heating_setpoint");
|
||||
if ($t != $this->minTemp)
|
||||
{
|
||||
$this->prevTemp[$device->ieeeAddress] = getValue($device->ieeeAddress, "current_heating_setpoint");
|
||||
$this->prevTemp[$device->ieeeAddress] = $t;
|
||||
}
|
||||
$setTo = $minTemp;
|
||||
}else
|
||||
@ -125,7 +131,6 @@ class radiateurs extends hook
|
||||
if ($flag === false)
|
||||
{
|
||||
$setTo = (!empty($this->prevTemp[$device->ieeeAddress])?$this->prevTemp[$device->ieeeAddress]:19);
|
||||
|
||||
}
|
||||
}
|
||||
if ($setTo <> 0)
|
||||
|
Reference in New Issue
Block a user