Shelly: Add switch devices to Shelly Dimmer

master
Michael Zanetti 2020-05-04 11:45:33 +02:00
parent 657bc7d187
commit 6d284cd40f
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);