Add logging for ID and value retrieval in MqttSync method to enhance traceability

This commit is contained in:
jhartworks
2026-04-22 13:15:07 +02:00
parent 9bb1636ddf
commit 1855868435
+4 -1
View File
@@ -204,12 +204,15 @@ class MonitoringClient extends IPSModule {
IPS_LogMessage("Monitoring Client", "Could not connect device to server instance for Setpoint Sync."); IPS_LogMessage("Monitoring Client", "Could not connect device to server instance for Setpoint Sync.");
} }
} }
IPS_LogMessage("Monitoring Client", "Parentid was :".$id);
$id = $this->IPS_GetChildrenIDs($id)[0]; $id = $this->IPS_GetChildrenIDs($id)[0];
IPS_LogMessage("Monitoring Client", "ID was :".$id);
$valSelf = $this->GetValue($id); $valSelf = $this->GetValue($id);
$valSource = $this->GetValue($source); $valSource = $this->GetValue($source);
IPS_LogMessage("Monitoring Client", "Self value: " . $valSelf . " Source value: " . $valSource);
$varInfoSelf = IPS_GetVariable($id); $varInfoSelf = IPS_GetVariable($id);
$changedtimeSelf = $varInfoSelf["VariableChanged"]; $changedtimeSelf = $varInfoSelf["VariableChanged"];