mirror of https://github.com/arendst/Tasmota.git
Merge pull request #9607 from s-hadinger/zigbee_battpercent
Zigbee fix battery percentage
This commit is contained in:
commit
94ddea4db1
|
@ -1824,7 +1824,7 @@ void ZCLFrame::postProcessAttributes(uint16_t shortaddr, Z_attribute_list& attr_
|
||||||
switch (ccccaaaa) {
|
switch (ccccaaaa) {
|
||||||
case 0x00000004: zigbee_devices.setManufId(shortaddr, attr.getStr()); break;
|
case 0x00000004: zigbee_devices.setManufId(shortaddr, attr.getStr()); break;
|
||||||
case 0x00000005: zigbee_devices.setModelId(shortaddr, attr.getStr()); break;
|
case 0x00000005: zigbee_devices.setModelId(shortaddr, attr.getStr()); break;
|
||||||
case 0x00010021: zigbee_devices.setBatteryPercent(shortaddr, uval16); break;
|
case 0x00010021: zigbee_devices.setBatteryPercent(shortaddr, uval16 / 2); break;
|
||||||
case 0x00060000:
|
case 0x00060000:
|
||||||
case 0x00068000: device.setPower(attr.getBool(), src_ep); break;
|
case 0x00068000: device.setPower(attr.getBool(), src_ep); break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue