diff --git a/Shelly_Parser_MQTT/module.php b/Shelly_Parser_MQTT/module.php index 823ab30..cdfa4e6 100644 --- a/Shelly_Parser_MQTT/module.php +++ b/Shelly_Parser_MQTT/module.php @@ -207,7 +207,7 @@ private function HandleRPC(string $deviceID, string $payload): void * ---------------------------------------------------------*/ private function EnsureBooleanVariable(string $deviceID, string $ident, string $name): int { - $folderID = $this->GetDeviceFolder($deviceID); + $folderID = @IPS_GetObjectIDByIdent($folderIdent, $this->InstanceID); // Immer im Ordner suchen foreach (IPS_GetChildrenIDs($folderID) as $cid) {