Skip to content

Commit

Permalink
Add initial support for Bosch Motion sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
manup committed Nov 7, 2018
1 parent 79deea2 commit 0dc7d2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions de_web_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const quint64 emberMacPrefix = 0x000d6f0000000000ULL;
const quint64 instaMacPrefix = 0x000f170000000000ULL;
const quint64 tiMacPrefix = 0x00124b0000000000ULL;
const quint64 netvoxMacPrefix = 0x00137a0000000000ULL;
const quint64 boschMacPrefix = 0x00155f0000000000ULL;
const quint64 jennicMacPrefix = 0x00158d0000000000ULL;
const quint64 philipsMacPrefix = 0x0017880000000000ULL;
const quint64 ubisysMacPrefix = 0x001fee0000000000ULL;
Expand All @@ -90,6 +91,8 @@ struct SupportedDevice {
static const SupportedDevice supportedDevices[] = {
{ VENDOR_BUSCH_JAEGER, "RB01", bjeMacPrefix },
{ VENDOR_BUSCH_JAEGER, "RM01", bjeMacPrefix },
{ VENDOR_BOSCH, "ISW-ZDL1-WP11G", boschMacPrefix },
{ VENDOR_BOSCH, "ISW-ZPR1-WP13", boschMacPrefix },
{ VENDOR_CENTRALITE, "Motion Sensor-A", emberMacPrefix },
{ VENDOR_CENTRALITE, "3325-S", emberMacPrefix },
{ VENDOR_CENTRALITE, "3321-S", emberMacPrefix },
Expand Down Expand Up @@ -4011,6 +4014,10 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const SensorFi
{
sensorNode.setManufacturer("BEGA Gantenbrink-Leuchten KG");
}
else if (node->nodeDescriptor().manufacturerCode() == VENDOR_BOSCH)
{
sensorNode.setManufacturer("BOSCH");
}
else if (node->nodeDescriptor().manufacturerCode() == VENDOR_IKEA)
{
sensorNode.setManufacturer("IKEA of Sweden");
Expand Down
2 changes: 2 additions & 0 deletions de_web_plugin_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@
#define VENDOR_BEGA 0x1105
#define VENDOR_PHYSICAL 0x110A // Used by SmartThings
#define VENDOR_OSRAM 0x110C
#define VENDOR_BOSCH 0x1133
#define VENDOR_DDEL 0x1135
#define VENDOR_LUTRON 0x1144
#define VENDOR_KEEN_HOME 0x115B
Expand Down Expand Up @@ -338,6 +339,7 @@ extern const quint64 emberMacPrefix;
extern const quint64 heimanMacPrefix;
extern const quint64 ikeaMacPrefix;
extern const quint64 instaMacPrefix;
extern const quint64 boschMacPrefix;
extern const quint64 jennicMacPrefix;
extern const quint64 keenhomeMacPrefix;
extern const quint64 lutronMacPrefix;
Expand Down

0 comments on commit 0dc7d2f

Please sign in to comment.