somfytahoma: Ignore irrelevant device types

Ignore ProtocolGateways (Homekit), ignore Hue lights, ignore internal
alarm device.
master
Christian Fetzer 2021-04-04 23:09:40 +02:00
parent 52435b27fc
commit 828598e2da
1 changed files with 4 additions and 0 deletions

View File

@ -139,6 +139,10 @@ void IntegrationPluginSomfyTahoma::setupThing(ThingSetupInfo *info)
descriptor.setParams(ParamList() << Param(lightThingDeviceUrlParamTypeId, deviceUrl));
unknownDevices.append(descriptor);
}
} else if (type == QStringLiteral("ProtocolGateway") ||
type == QStringLiteral("Alarm") ||
(type == QStringLiteral("Light") && deviceUrl.startsWith("hue"))) {
continue;
} else {
qCInfo(dcSomfyTahoma()) << "Found unsupperted Somfy device:" << label << type << deviceUrl;
}