mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 05:06:32 +00:00
Zigbee decode Aqara 0000/FF01 attribute 03 as Temperature (#19210)
* Zigbee decode Aqara 0000/FF01 attribute 03 as Temperature * Changed to AqaraTemperature
This commit is contained in:
parent
de3b0a4b00
commit
f2ab3b36a9
@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
### Added
|
### Added
|
||||||
- Support for MAX17043 fuel-gauge systems Lipo batteries (#18788)
|
- Support for MAX17043 fuel-gauge systems Lipo batteries (#18788)
|
||||||
- Support for multiple PCA9685 with extended functionality (#18805)
|
- Support for multiple PCA9685 with extended functionality (#18805)
|
||||||
|
- Zigbee decode Aqara 0000/FF01 attribute 03 as Temperature
|
||||||
|
|
||||||
### Breaking Changed
|
### Breaking Changed
|
||||||
|
|
||||||
|
@ -1214,6 +1214,8 @@ void ZCLFrame::syntheticAqaraSensor(Z_attribute_list &attr_list, class Z_attribu
|
|||||||
attr_list.addAttribute(0x0001, 0x0020).setFloat(batteryvoltage);
|
attr_list.addAttribute(0x0001, 0x0020).setFloat(batteryvoltage);
|
||||||
uint8_t batterypercentage = toPercentageCR2032(uval32);
|
uint8_t batterypercentage = toPercentageCR2032(uval32);
|
||||||
attr_list.addAttribute(0x0001, 0x0021).setUInt(batterypercentage * 2);
|
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()))) {
|
} else if ((nullptr != modelId) && ((0 == getManufCode()) || (0x115F == getManufCode()))) {
|
||||||
translated = true;
|
translated = true;
|
||||||
if (modelId.startsWith(F("lumi.sensor_magnet"))) { // door / window sensor
|
if (modelId.startsWith(F("lumi.sensor_magnet"))) { // door / window sensor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user