diff --git a/shelly/README.md b/shelly/README.md index 32638409..e6f5b2a8 100644 --- a/shelly/README.md +++ b/shelly/README.md @@ -8,7 +8,7 @@ The currently supported devices are: * Shelly 2.5 * Shelly Plug / PlugS * Shelly RGBW2 -* Shelly Dimmer +* Shelly Dimmer / Dimmer 2 ## Requirements Shelly devices communicate with via MQTT. This means, in order to add Shelly devices to nymea, the nymea instance is required diff --git a/shelly/integrationpluginshelly.cpp b/shelly/integrationpluginshelly.cpp index c3ec6a12..824ce060 100644 --- a/shelly/integrationpluginshelly.cpp +++ b/shelly/integrationpluginshelly.cpp @@ -199,7 +199,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]+$"); } diff --git a/shelly/integrationpluginshelly.json b/shelly/integrationpluginshelly.json index b92ea6a2..83160a1d 100644 --- a/shelly/integrationpluginshelly.json +++ b/shelly/integrationpluginshelly.json @@ -365,7 +365,7 @@ { "id": "3a1d6fc1-c623-4b45-9c81-1573fcc15f99", "name": "shellyDimmer", - "displayName": "Shelly Dimmer", + "displayName": "Shelly Dimmer / Dimmer 2", "createMethods": ["discovery"], "interfaces": ["dimmablelight", "connectable"], "paramTypes": [ diff --git a/shelly/translations/6162773b-0435-408c-a4f8-7860d38031a9-en_US.ts b/shelly/translations/6162773b-0435-408c-a4f8-7860d38031a9-en_US.ts index e4966a40..c963e6c8 100644 --- a/shelly/translations/6162773b-0435-408c-a4f8-7860d38031a9-en_US.ts +++ b/shelly/translations/6162773b-0435-408c-a4f8-7860d38031a9-en_US.ts @@ -4,38 +4,38 @@ IntegrationPluginShelly - + Unable to find the thing in the network. - + Roller shutter mode can't be mixed with relay mode. Please configure both connected devices to control a shutter or relays. - - + + For using a roller shutter, one channel must be set to up, the other to down. - + Error creating MQTT channel. Please check MQTT server settings. - + Username and password not set correctly. - + Error connecting to Shelly device. - + Unexpected data received from Shelly device. @@ -665,7 +665,7 @@ The name of the plugin shelly ({6162773b-0435-408c-a4f8-7860d38031a9}) - Shelly Dimmer + Shelly Dimmer / Dimmer 2 The name of the ThingClass ({3a1d6fc1-c623-4b45-9c81-1573fcc15f99})