debuggage

This commit is contained in:
DTux committed 2022-06-20 10:34:55 +02:00
1 parent da3f4ab51f
commit 58812c442f
13 files changed
+130 -87

No files matched your search

+4 -2
View File
@@ -330,9 +330,11 @@ function apiSet($argList)
}else
{
$response = "setting property " . $argList["property"] . " of " . $argList["fn"] . " to value: " . $argList["value"];
$payload = array($argList["property"] => $argList["value"]);
$device = $indexFriendlyNames[$argList["fn"]];
$device->payload = array($argList["property"] => $argList["value"]);
$device->set($argList["property"], IDLE);
publish($argList["topic"] . "/" . $argList["fn"], $payload, "set");
//removeEvent($indexFriendlyName($argList["fn"]), $argList["property"], "OFF");
//removeEvent($indexFriendlyNames($argList["fn"]), $argList["property"], "OFF");
}
return $response;
}