Add logging for ID and value retrieval in MqttSync method to enhance traceability
This commit is contained in:
@@ -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"];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user