From f2ab3b36a97b2314972b7eec750e2738790173b3 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Sat, 29 Jul 2023 14:19:15 +0200 Subject: [PATCH] Zigbee decode Aqara 0000/FF01 attribute 03 as Temperature (#19210) * Zigbee decode Aqara 0000/FF01 attribute 03 as Temperature * Changed to AqaraTemperature --- 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 bb3a66d80af2..7d078da4dbf9 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..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 @@ -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("AqaraTemperature").copyVal(attr); // Temperature } else if ((nullptr != modelId) && ((0 == getManufCode()) || (0x115F == getManufCode()))) { translated = true; if (modelId.startsWith(F("lumi.sensor_magnet"))) { // door / window sensor