Skip to content

Commit

Permalink
Added initial support for Stelpro ST218 thermostat
Browse files Browse the repository at this point in the history
  • Loading branch information
SwoopX committed Feb 11, 2020
1 parent 4768465 commit b334872
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1880,7 +1880,9 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
// Zen
sensor->modelId().contains(QLatin1String("Zen-01")) ||
// eCozy
sensor->modelId().contains(QLatin1String("Thermostat")))
sensor->modelId() == QLatin1String("Thermostat") ||
// Stelpro
sensor->modelId().contains(QLatin1String("ST218")))
{
deviceSupported = true;
if (!sensor->node()->nodeDescriptor().receiverOnWhenIdle() ||
Expand Down
1 change: 1 addition & 0 deletions de_web_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ static const SupportedDevice supportedDevices[] = {
{ VENDOR_C2DF, "3157100-E", emberMacPrefix }, // Centralite Thermostat
{ VENDOR_EMBER, "Super TR", emberMacPrefix }, // Elko Thermostat
{ VENDOR_ATMEL, "Thermostat", ecozyMacPrefix }, // eCozy Thermostat
{ VENDOR_STELPRO, "ST218", xalMacPrefix }, // Stelpro Thermostat
{ VENDOR_DEVELCO, "SMSZB-120", develcoMacPrefix }, // Develco smoke sensor
{ VENDOR_DEVELCO, "HESZB-120", develcoMacPrefix }, // Develco heat sensor
{ VENDOR_DEVELCO, "SPLZB-131", develcoMacPrefix }, // Develco smart plug
Expand Down
3 changes: 3 additions & 0 deletions de_web_plugin_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@
#define VENDOR_LDS 0x1168 // Used by Samsung SmartPlug 2019
#define VENDOR_INSTA 0x117A
#define VENDOR_IKEA 0x117C
#define VENDOR_STELPRO 0x1185
#define VENDOR_LEDVANCE 0x1189
#define VENDOR_SINOPE 0x119C
#define VENDOR_119C 0x119C // Used by Sinope
Expand Down Expand Up @@ -477,6 +478,8 @@ inline bool checkMacVendor(quint64 addr, quint16 vendor)
return prefix == silabsMacPrefix ||
prefix == energyMiMacPrefix ||
prefix == ikeaMacPrefix; // belongs to SiLabs
case VENDOR_STELPRO:
return prefix == xalMacPrefix;
case VENDOR_UBISYS:
return prefix == ubisysMacPrefix;
case VENDOR_VISONIC:
Expand Down

0 comments on commit b334872

Please sign in to comment.