From f745ee3cbdf1f10f29a462ad617c95b6f7056674 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 29 Jun 2020 13:28:32 +0200 Subject: [PATCH 1/3] 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]+$"); } From 9ba8908578620b3c49b9da59b130d7a9025f3fae Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 29 Jun 2020 13:30:38 +0200 Subject: [PATCH 2/3] update readme --- shelly/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From d3d0d0387e98ded3732a18570e390e8921b4adc2 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 29 Jun 2020 13:34:57 +0200 Subject: [PATCH 3/3] Update shelly dimmer description --- shelly/integrationpluginshelly.json | 2 +- ...62773b-0435-408c-a4f8-7860d38031a9-en_US.ts | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/shelly/integrationpluginshelly.json b/shelly/integrationpluginshelly.json index e0298565..f0c50a45 100644 --- a/shelly/integrationpluginshelly.json +++ b/shelly/integrationpluginshelly.json @@ -372,7 +372,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})