From 4ea1b4d7c985d4b352634976db2da9c8dcfa8a70 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Tue, 2 Mar 2021 21:16:30 +0100 Subject: [PATCH] Zigbee support for lumi.sensor_wleak --- tasmota/xdrv_23_zigbee_5_converters.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasmota/xdrv_23_zigbee_5_converters.ino b/tasmota/xdrv_23_zigbee_5_converters.ino index 182ebfe69..46bd5ea93 100644 --- a/tasmota/xdrv_23_zigbee_5_converters.ino +++ b/tasmota/xdrv_23_zigbee_5_converters.ino @@ -1739,6 +1739,10 @@ void ZCLFrame::syntheticAqaraSensor(Z_attribute_list &attr_list, class Z_attribu if (0x64 == attrid) { attr_list.addAttributePMEM(PSTR("SmokeDensity")).copyVal(attr); } + } else if (modelId.startsWith(F("lumi.sensor_wleak"))) { // gas leak + if (0x64 == attrid) { + attr_list.addAttributePMEM(PSTR("Water")).copyVal(attr); + } } else if (modelId.startsWith(F("lumi.sensor_natgas"))) { // gas leak if (0x64 == attrid) { attr_list.addAttributePMEM(PSTR("GasDensity")).copyVal(attr);