From f745ee3cbdf1f10f29a462ad617c95b6f7056674 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 29 Jun 2020 13:28:32 +0200 Subject: [PATCH] Shelly: Add support for the Shelly Dimmer 2 --- shelly/integrationpluginshelly.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shelly/integrationpluginshelly.cpp b/shelly/integrationpluginshelly.cpp index 1a3f58a9..658c1581 100644 --- a/shelly/integrationpluginshelly.cpp +++ b/shelly/integrationpluginshelly.cpp @@ -200,7 +200,7 @@ void IntegrationPluginShelly::discoverThings(ThingDiscoveryInfo *info) } else if (info->thingClassId() == shellyRgbw2ThingClassId) { namePattern = QRegExp("^shellyrgbw2-[0-9A-Z]+$"); } else if (info->thingClassId() == shellyDimmerThingClassId) { - namePattern = QRegExp("^shellydimmer-[0-9A-Z]+$"); + namePattern = QRegExp("^shellydimmer(2)?-[0-9A-Z]+$"); } else if (info->thingClassId() == shelly25ThingClassId) { namePattern = QRegExp("^shellyswitch25-[0-9A-Z]+$"); }