Shelly: Fix channel setup for generated light switch on shelly 1
parent
ac6dcf0765
commit
2eae99f260
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue