Skip to content

Commit

Permalink
Zigbee decode Aqara 0000/FF01 attribute 03 as Temperature (#19210)
Browse files Browse the repository at this point in the history
* Zigbee decode Aqara 0000/FF01 attribute 03 as Temperature

* Changed to AqaraTemperature
  • Loading branch information
s-hadinger authored Jul 29, 2023
1 parent de3b0a4 commit f2ab3b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2ab3b3

Please sign in to comment.