Skip to content

Commit fab4317

Browse files
authored
Merge pull request #3184 from SwoopX/FNB56-GAS
Add initial support for Feibit FNB56-GAS05FB1.4 gas leak detector
2 parents a53012e + aaf7e88 commit fab4317

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

bindings.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2350,6 +2350,8 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
23502350
sensor->modelId().startsWith(QLatin1String("45127")) ||
23512351
// Plugwise
23522352
sensor->modelId().startsWith(QLatin1String("160-01")) ||
2353+
// Feibit
2354+
sensor->modelId().startsWith(QLatin1String("FNB56")) ||
23532355
// Niko
23542356
sensor->modelId() == QLatin1String("Connected socket outlet") ||
23552357
// Sage

de_web_plugin.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ struct SupportedDevice {
118118
};
119119

120120
static const SupportedDevice supportedDevices[] = {
121+
{ VENDOR_3A_SMART_HOME, "FNB56-GAS", jennicMacPrefix }, // Feibit FNB56-GAS05FB1.4 gas leak detector
121122
{ VENDOR_BUSCH_JAEGER, "RB01", bjeMacPrefix },
122123
{ VENDOR_BUSCH_JAEGER, "RM01", bjeMacPrefix },
123124
{ VENDOR_BOSCH, "ISW-ZDL1-WP11G", boschMacPrefix },
@@ -4552,7 +4553,8 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ::
45524553
modelId.startsWith(QLatin1String("SF2")) || // ORVIBO (Heiman) smoke sensor
45534554
modelId.startsWith(QLatin1String("lumi.sensor_smoke")) || // Xiaomi Mi smoke sensor
45544555
modelId.startsWith(QLatin1String("TS0204")) || // Tuya gas sensor
4555-
modelId.startsWith(QLatin1String("MOT003"))) // Hive motion sensor
4556+
modelId.startsWith(QLatin1String("MOT003")) || // Hive motion sensor
4557+
modelId.startsWith(QLatin1String("FNB56-GAS"))) // Feibit gas sensor
45564558
{
45574559
// Gas sensor detects combustable gas, so fire is more appropriate than CO.
45584560
fpFireSensor.inClusters.push_back(ci->id());

0 commit comments

Comments
 (0)