Merge PR #263: Shelly: Add switch device to Shelly Dimmer

pull/273/head
Jenkins nymea 2020-06-09 18:19:22 +02:00
commit 99907f7d27
1 changed files with 2 additions and 1 deletions

View File

@ -732,7 +732,8 @@ void IntegrationPluginShelly::setupShellyGateway(ThingSetupInfo *info)
}
// Create 2 switches for shelly 2.5
if (info->thing()->thingClassId() == shelly25ThingClassId) {
if (info->thing()->thingClassId() == shelly25ThingClassId
|| info->thing()->thingClassId() == shellyDimmerThingClassId) {
ThingDescriptor switchChild(shellySwitchThingClassId, info->thing()->name() + " switch 1", QString(), info->thing()->id());
switchChild.setParams(ParamList() << Param(shellySwitchThingChannelParamTypeId, 1));
autoChilds.append(switchChild);