Add validation checks for ParseSetpointCacheCategoryID in MqttSync method to ensure proper category and variable existence

This commit is contained in:
jhartworks
2026-04-22 10:31:30 +02:00
parent c8efd08a0e
commit a6dea2b32f
+12
View File
@@ -126,6 +126,18 @@ class MonitoringClient extends IPSModule {
$cacheCat = $this->ReadPropertyInteger("ParseSetpointCacheCategoryID");
if ($cacheCat == 0){
return false;
}
if (IPS_CategoryExists($cacheCat) == false){
return false;
}
if (IPS_VariableExists($source) == false){
return false;
}
// ensure server instance exists
if(!IPS_InstanceExists($server_id)) {
return false;