From 6d284cd40f423859dbaaf124d2a421dc66931c25 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 4 May 2020 11:45:33 +0200 Subject: [PATCH] Shelly: Add switch devices to Shelly Dimmer --- shelly/integrationpluginshelly.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shelly/integrationpluginshelly.cpp b/shelly/integrationpluginshelly.cpp index a3b1e765..1a3f58a9 100644 --- a/shelly/integrationpluginshelly.cpp +++ b/shelly/integrationpluginshelly.cpp @@ -732,7 +732,8 @@ void IntegrationPluginShelly::setupShellyGateway(ThingSetupInfo *info) } // Create 2 switches for shelly 2.5 - if (info->thing()->thingClassId() == shelly25ThingClassId) { + if (info->thing()->thingClassId() == shelly25ThingClassId + || info->thing()->thingClassId() == shellyDimmerThingClassId) { ThingDescriptor switchChild(shellySwitchThingClassId, info->thing()->name() + " switch 1", QString(), info->thing()->id()); switchChild.setParams(ParamList() << Param(shellySwitchThingChannelParamTypeId, 1)); autoChilds.append(switchChild);