From d9f363c55a1fdaa4a7782812e56011bda09a0795 Mon Sep 17 00:00:00 2001 From: DigiH Date: Fri, 6 Oct 2023 11:25:09 +0200 Subject: [PATCH] [BT] Mi Scales adjustment (#1769) --- main/ZgatewayBT.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/ZgatewayBT.ino b/main/ZgatewayBT.ino index e6c4e8c366..0e477e72e4 100644 --- a/main/ZgatewayBT.ino +++ b/main/ZgatewayBT.ino @@ -1108,7 +1108,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 ((p->sensorModel_id == TheengsDecoder::XMTZC04HM || p->sensorModel_id == TheengsDecoder::XMTZC05HM) && + } else if ((p->sensorModel_id == TheengsDecoder::XMTZC04HMKG || p->sensorModel_id == TheengsDecoder::XMTZC04HMLB || p->sensorModel_id == TheengsDecoder::XMTZC05HMKG || p->sensorModel_id == TheengsDecoder::XMTZC05HMLB) && strcmp(prop.key().c_str(), "weighing_mode") == 0) { createDiscovery("sensor", discovery_topic.c_str(), entity_name.c_str(), unique_id.c_str(), @@ -1117,7 +1117,7 @@ void launchBTDiscovery(bool overrideDiscovery) { 0, "", "", false, "", model.c_str(), brand.c_str(), model_id.c_str(), macWOdots.c_str(), false, stateClassMeasurement, nullptr, nullptr, "[\"person\",\"object\"]"); - } else if ((p->sensorModel_id == TheengsDecoder::XMTZC04HM || p->sensorModel_id == TheengsDecoder::XMTZC05HM) && + } else if ((p->sensorModel_id == TheengsDecoder::XMTZC04HMKG || p->sensorModel_id == TheengsDecoder::XMTZC04HMLB || p->sensorModel_id == TheengsDecoder::XMTZC05HMKG || p->sensorModel_id == TheengsDecoder::XMTZC05HMLB) && strcmp(prop.key().c_str(), "unit") == 0) { createDiscovery("sensor", discovery_topic.c_str(), entity_name.c_str(), unique_id.c_str(),