From de40260f3eaa3bf1d7ce690af76c963ac8649d67 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Sun, 10 May 2020 10:18:23 +0200 Subject: [PATCH] Fix BatteryPercentage calculation --- tasmota/xdrv_23_zigbee_5_converters.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_23_zigbee_5_converters.ino b/tasmota/xdrv_23_zigbee_5_converters.ino index a0c59f20b..07b5f5ef1 100644 --- a/tasmota/xdrv_23_zigbee_5_converters.ino +++ b/tasmota/xdrv_23_zigbee_5_converters.ino @@ -703,7 +703,7 @@ const Z_AttributeConverter Z_PostProcess[] PROGMEM = { { Zuint16, Cx0001, 0x0000, Z(MainsVoltage), &Z_Copy }, { Zuint8, Cx0001, 0x0001, Z(MainsFrequency), &Z_Copy }, { Zuint8, Cx0001, 0x0020, Z(BatteryVoltage), &Z_FloatDiv10 }, - { Zuint8, Cx0001, 0x0021, Z(BatteryPercentage), &Z_Copy }, + { Zuint8, Cx0001, 0x0021, Z(BatteryPercentage), &Z_FloatDiv2 }, // Device Temperature Configuration cluster { Zint16, Cx0002, 0x0000, Z(CurrentTemperature), &Z_Copy },