From 592dcd3be67f443cab933990ed6590538a6fa57a Mon Sep 17 00:00:00 2001 From: DigiH Date: Fri, 22 Sep 2023 18:23:33 +0200 Subject: [PATCH] BM2 name extension (#1750) (#1754) BM2 name extension for connection --- main/ZgatewayBT.ino | 2 +- platformio.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/ZgatewayBT.ino b/main/ZgatewayBT.ino index 0841ffe..eed31ad 100644 --- a/main/ZgatewayBT.ino +++ b/main/ZgatewayBT.ino @@ -1230,7 +1230,7 @@ void process_bledata(JsonObject& BLEdata) { model_id = BLEconectable::id::LYWSD03MMC; else if (name.compare("DT24-BLE") == 0) model_id = BLEconectable::id::DT24_BLE; - else if (name.compare("Battery Monitor") == 0) + else if (name.compare("Battery Monitor") == 0 || name.compare("Li Battery Monitor") == 0 || name.compare("ZX-1689") == 0) model_id = BLEconectable::id::BM2; else if (name.compare("MHO-C401") == 0) model_id = BLEconectable::id::MHO_C401; diff --git a/platformio.ini b/platformio.ini index 282091a..a634df0 100644 --- a/platformio.ini +++ b/platformio.ini @@ -152,7 +152,7 @@ somfy_remote=Somfy_Remote_Lib@0.3.0 rtl_433_ESP = https://github.com/NorthernMan54/rtl_433_ESP.git#v0.3.0 emodbus = miq19/eModbus@1.0.0 gfSunInverter = https://github.com/BlackSmith/GFSunInverter.git#v1.0.1 -decoder = https://github.com/theengs/decoder.git#v1.5.7 +decoder = https://github.com/theengs/decoder.git ssd1306 = https://github.com/ThingPulse/esp8266-oled-ssd1306.git#f96fd6a lm75 = jeremycole/I2C Temperature Sensors derived from the LM75@^1.0.3 rn8209 = https://github.com/theengs/RN8209C-SDK.git#arduino