From 8dfc1027cdcbf30a24bdb3888d811fe043d953e7 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Sat, 29 Jul 2023 12:13:20 +0200 Subject: [PATCH 1/2] Zigbee decode Aqara 0000/FF01 attribute 03 as Temperature --- CHANGELOG.md | 1 + tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b2050d403d4..c2db4782fee6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. ### Added - Support for MAX17043 fuel-gauge systems Lipo batteries (#18788) - Support for multiple PCA9685 with extended functionality (#18805) +- Zigbee decode Aqara 0000/FF01 attribute 03 as Temperature ### Breaking Changed diff --git a/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino b/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino index 6c682450c1e4..a089b23d1223 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino @@ -1214,6 +1214,8 @@ void ZCLFrame::syntheticAqaraSensor(Z_attribute_list &attr_list, class Z_attribu attr_list.addAttribute(0x0001, 0x0020).setFloat(batteryvoltage); uint8_t batterypercentage = toPercentageCR2032(uval32); attr_list.addAttribute(0x0001, 0x0021).setUInt(batterypercentage * 2); + } else if (0x03 == attrid) { + attr_list.addAttributePMEM("Temperature").copyVal(attr); // Temperature } else if ((nullptr != modelId) && ((0 == getManufCode()) || (0x115F == getManufCode()))) { translated = true; if (modelId.startsWith(F("lumi.sensor_magnet"))) { // door / window sensor From a93625f8116b3c71cfa98cbb486051bd81e62f9a Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Sat, 29 Jul 2023 14:00:37 +0200 Subject: [PATCH 2/2] Changed to AqaraTemperature --- tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino b/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino index a089b23d1223..67929f7582e9 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino @@ -1215,7 +1215,7 @@ void ZCLFrame::syntheticAqaraSensor(Z_attribute_list &attr_list, class Z_attribu uint8_t batterypercentage = toPercentageCR2032(uval32); attr_list.addAttribute(0x0001, 0x0021).setUInt(batterypercentage * 2); } else if (0x03 == attrid) { - attr_list.addAttributePMEM("Temperature").copyVal(attr); // Temperature + attr_list.addAttributePMEM("AqaraTemperature").copyVal(attr); // Temperature } else if ((nullptr != modelId) && ((0 == getManufCode()) || (0x115F == getManufCode()))) { translated = true; if (modelId.startsWith(F("lumi.sensor_magnet"))) { // door / window sensor