Add Shelly Plus 1 (no PM) support too
This commit is contained in:
parent
70e0f2c7ce
commit
4b70216f65
@ -267,7 +267,7 @@ void IntegrationPluginShelly::discoverThings(ThingDiscoveryInfo *info)
|
||||
qCDebug(dcShelly()) << "Have entry" << entry;
|
||||
QRegExp namePattern;
|
||||
if (info->thingClassId() == shelly1ThingClassId) {
|
||||
namePattern = QRegExp("^shelly1-[0-9A-Z]+$");
|
||||
namePattern = QRegExp("^(shelly1|ShellyPlus1)-[0-9A-Z]+$");
|
||||
} else if (info->thingClassId() == shelly1pmThingClassId) {
|
||||
namePattern = QRegExp("^(shelly1pm|ShellyPlus1PM)-[0-9A-Z]+$");
|
||||
} else if (info->thingClassId() == shelly1lThingClassId) {
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
{
|
||||
"id": "f810b66a-7177-4397-9771-4229abaabbb6",
|
||||
"name": "shelly1",
|
||||
"displayName": "Shelly 1",
|
||||
"displayName": "Shelly 1/Plus 1",
|
||||
"createMethods": ["discovery"],
|
||||
"interfaces": [ "gateway", "wirelessconnectable", "update" ],
|
||||
"paramTypes": [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user