1
0

debbuging hooks

This commit is contained in:
2022-09-09 16:53:19 +02:00
parent 7eaaad0911
commit 918a571b5c
7 changed files with 304 additions and 289 deletions

View File

@@ -71,15 +71,15 @@ class rdc_chambre_eclairage extends hook
{
logger(DEBUG, _("CASE: state => value = 'OFF'"), __FILE__ . ":" . __LINE__);
$targetAmbiance->properties[$property]["method"] = IDLE;
removeEvent($targetAmbiance, $property, "OFF", IDLE);
removeEvent($targetAmbiance, $property, "OFF");
}
}elseif ($property == "state_l1")
{
if ($value == "OFF")
{
logger(DEBUG, _("CASE: state_l1 => value = 'OFF'"), __FILE__ . ":" . __LINE__);
//$targetEclairage->properties[$property]["method"] = IDLE;
removeEvent($targetAmbiance, $property, "OFF", IDLE);
$targetEclairage->properties[$property]["method"] = IDLE;
removeEvent($targetAmbiance, $property, "OFF");
}
}elseif ($property == "action")
{