From 2eae99f2604fe9fda95d7d3945c46f9312c7b7ac Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Fri, 20 Mar 2020 13:37:04 +0100 Subject: [PATCH] Shelly: Fix channel setup for generated light switch on shelly 1 --- shelly/integrationpluginshelly.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/shelly/integrationpluginshelly.cpp b/shelly/integrationpluginshelly.cpp index 3b0fca36..f0cd3617 100644 --- a/shelly/integrationpluginshelly.cpp +++ b/shelly/integrationpluginshelly.cpp @@ -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); }