From 04a3c16bb4f1da0eeb01bc5971ecc8d43301a5f4 Mon Sep 17 00:00:00 2001 From: Juhaki Park <37175353+juhaki@users.noreply.github.com> Date: Wed, 26 Aug 2020 02:41:21 +0900 Subject: [PATCH] [ICP-13555] EZEX power meter patch. (#41807) [ICP-13555] EZEX power meter patch. --- .../zigbee-power-meter.src/zigbee-power-meter.groovy | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/devicetypes/smartthings/zigbee-power-meter.src/zigbee-power-meter.groovy b/devicetypes/smartthings/zigbee-power-meter.src/zigbee-power-meter.groovy index 860d517cf6e..d86972d89a4 100755 --- a/devicetypes/smartthings/zigbee-power-meter.src/zigbee-power-meter.groovy +++ b/devicetypes/smartthings/zigbee-power-meter.src/zigbee-power-meter.groovy @@ -52,8 +52,13 @@ def parse(String description) { if (event) { log.info event if (event.name == "power") { - event.value = event.value/1000 - event.unit = "W" + if (event.cluster == 0x0B04 && event.attrId == 0x050b) { + event.value = event.value + event.unit = "W" + } else { + event.value = event.value/1000 + event.unit = "W" + } } else if (event.name == "energy") { event.value = event.value/1000000 event.unit = "kWh"