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