Shelly: Add support for the Shelly Dimmer 2
This commit is contained in:
parent
ed44b0e19c
commit
f745ee3cbd
@ -200,7 +200,7 @@ void IntegrationPluginShelly::discoverThings(ThingDiscoveryInfo *info)
|
|||||||
} else if (info->thingClassId() == shellyRgbw2ThingClassId) {
|
} else if (info->thingClassId() == shellyRgbw2ThingClassId) {
|
||||||
namePattern = QRegExp("^shellyrgbw2-[0-9A-Z]+$");
|
namePattern = QRegExp("^shellyrgbw2-[0-9A-Z]+$");
|
||||||
} else if (info->thingClassId() == shellyDimmerThingClassId) {
|
} else if (info->thingClassId() == shellyDimmerThingClassId) {
|
||||||
namePattern = QRegExp("^shellydimmer-[0-9A-Z]+$");
|
namePattern = QRegExp("^shellydimmer(2)?-[0-9A-Z]+$");
|
||||||
} else if (info->thingClassId() == shelly25ThingClassId) {
|
} else if (info->thingClassId() == shelly25ThingClassId) {
|
||||||
namePattern = QRegExp("^shellyswitch25-[0-9A-Z]+$");
|
namePattern = QRegExp("^shellyswitch25-[0-9A-Z]+$");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user