1
0
This commit is contained in:
Daniel Tartavel 2022-10-05 20:37:01 +02:00
parent 9d20399d76
commit 559039b5e3

View File

@ -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);
@ -99,5 +102,6 @@ class rdc_temperature_int_ext extends hook
}
}
}
}
$hooks["rdc_temperature_int_ext"] = new rdc_temperature_int_ext();
?>