Shelly: Add support for the Shelly Dimmer 2

master
Michael Zanetti 2020-06-29 13:28:32 +02:00
parent ed44b0e19c
commit f745ee3cbd
1 changed files with 1 additions and 1 deletions

View File

@ -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]+$");
}