Shelly: Fix channel setup for generated light switch on shelly 1

This commit is contained in:
Michael Zanetti 2020-03-20 13:37:04 +01:00
parent ac6dcf0765
commit 2eae99f260

View File

@ -715,6 +715,7 @@ void IntegrationPluginShelly::setupShellyGateway(ThingSetupInfo *info)
if (info->thing()->thingClassId() == shelly1ThingClassId if (info->thing()->thingClassId() == shelly1ThingClassId
|| info->thing()->thingClassId() == shelly1pmThingClassId) { || info->thing()->thingClassId() == shelly1pmThingClassId) {
ThingDescriptor switchChild(shellySwitchThingClassId, info->thing()->name() + " switch", QString(), info->thing()->id()); ThingDescriptor switchChild(shellySwitchThingClassId, info->thing()->name() + " switch", QString(), info->thing()->id());
switchChild.setParams(ParamList() << Param(shellySwitchThingChannelParamTypeId, 1));
autoChilds.append(switchChild); autoChilds.append(switchChild);
} }