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

master
Michael Zanetti 2020-03-20 13:37:04 +01:00
parent ac6dcf0765
commit 2eae99f260
1 changed files with 1 additions and 0 deletions

View File

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