Shelly: Add support for Shelly Pro 3EM 400A model

master
Simon Stürz 2025-05-28 14:19:38 +02:00
parent 6693e6c509
commit 6e3892e814
3 changed files with 8 additions and 2 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
nymea-plugins (1.11.0+202505281205~6693e6c5~bookworm) UNRELEASED; urgency=medium
* New Package build
-- <timon@nymea-plugins-bookworm-amd64-armhf> Wed, 28 May 2025 12:12:22 +0000
nymea-plugins (1.11.0) jammy; urgency=medium
[ Simon Stürz ]

View File

@ -18,7 +18,7 @@ The currently supported devices are:
* Shelly Button 1
* Shelly EM
* Shelly 3EM
* Shelly Pro 3EM
* Shelly Pro 3EM (including 400A model)
* Shelly H+T
* Shelly i3
* Shelly Motion

View File

@ -119,7 +119,7 @@ void IntegrationPluginShelly::discoverThings(ThingDiscoveryInfo *info)
} else if (info->thingClassId() == shellyEm3ThingClassId) {
namePattern = QRegularExpression("^shellyem3-[0-9A-Z]+$");
} else if (info->thingClassId() == shellyPro3EMThingClassId) {
namePattern = QRegularExpression("^ShellyPro3EM-[0-9A-Z]+$", QRegularExpression::CaseInsensitiveOption);
namePattern = QRegularExpression("^ShellyPro3EM(400)?-[0-9A-Z]+$", QRegularExpression::CaseInsensitiveOption);
} else if (info->thingClassId() == shellyHTThingClassId) {
namePattern = QRegularExpression("shellyht(g3)?-[0-9A-Z]+$", QRegularExpression::CaseInsensitiveOption);
} else if (info->thingClassId() == shellyI3ThingClassId) {