debug
This commit is contained in:
parent
9d20399d76
commit
559039b5e3
@ -10,8 +10,8 @@ class rdc_temperature_int_ext extends hook
|
||||
|
||||
protected $devicelist = array(
|
||||
METEO => "tempc",
|
||||
RDC_CHAMBRE_TEMPERATURE => "temperature",
|
||||
RDC_SALON_TEMPERATURE => "temperature"
|
||||
//RDC_CHAMBRE_TEMPERATURE => "temperature",
|
||||
//RDC_SALON_TEMPERATURE => "temperature"
|
||||
);
|
||||
|
||||
protected $portesList = array(
|
||||
@ -43,6 +43,8 @@ class rdc_temperature_int_ext extends hook
|
||||
if ((now()->format("U") - $time->format("U")) > 300)
|
||||
{
|
||||
|
||||
if ($property == "tempc")
|
||||
{
|
||||
$indoorTemp = $device->properties["indoortempc"]["value"];
|
||||
|
||||
|
||||
@ -70,7 +72,8 @@ class rdc_temperature_int_ext extends hook
|
||||
}
|
||||
logger (INFO, sprintf(_("%s: notification received from MQTT from %s => parameter: %s value: %s"), $this->hookName, $device->friendlyName, $property, bool2string($value)), __FILE__ . ":" . __LINE__, $device);
|
||||
}
|
||||
print_r($portes);
|
||||
|
||||
//print_r($portes);
|
||||
if ($status == 1)
|
||||
{
|
||||
$portes = $hooks["test_portes"]->testPortes($this->portesList, false, false);
|
||||
@ -98,6 +101,7 @@ class rdc_temperature_int_ext extends hook
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$hooks["rdc_temperature_int_ext"] = new rdc_temperature_int_ext();
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user