From 4ff05d5ac4f40c831a28a42cd8184b355a579620 Mon Sep 17 00:00:00 2001 From: Florian Date: Tue, 27 Jun 2023 08:03:46 -0500 Subject: [PATCH] Bump decoder to 1.5.5 (#1699) Filter the new attribute mac to avoid creating discovery sensor for it --- 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 5979df8..d6f06f7 100644 --- a/main/ZgatewayBT.ino +++ b/main/ZgatewayBT.ino @@ -1122,7 +1122,7 @@ void launchBTDiscovery(bool overrideDiscovery) { Gateway_AnnouncementMsg, will_Message, false, subjectMQTTtoBTset, model.c_str(), brand.c_str(), model_id.c_str(), macWOdots.c_str(), false, stateClassNone, "off", "on"); - } else if (strcmp(prop.key().c_str(), "device") != 0) { + } else if (strcmp(prop.key().c_str(), "device") != 0 || strcmp(prop.key().c_str(), "mac") != 0) { // Exception on device and mac as these ones are not sensors createDiscovery("sensor", discovery_topic.c_str(), entity_name.c_str(), unique_id.c_str(), will_Topic, prop.value()["name"], value_template.c_str(), diff --git a/platformio.ini b/platformio.ini index 2cbd0d8..6db51ec 100644 --- a/platformio.ini +++ b/platformio.ini @@ -151,7 +151,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.0 +decoder = https://github.com/theengs/decoder.git#v1.5.5 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