From 044dab3ce10bc82128fd64178fa233ef4279a996 Mon Sep 17 00:00:00 2001 From: koenkk Date: Fri, 23 Jun 2023 17:36:43 +0200 Subject: [PATCH] fix: Fix TuYa TS000F_power current value incorrect https://github.com/Koenkk/zigbee2mqtt/issues/18041 --- src/devices/tuya.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/devices/tuya.ts b/src/devices/tuya.ts index 85c5898e1703e..22cad3e03e66d 100644 --- a/src/devices/tuya.ts +++ b/src/devices/tuya.ts @@ -1906,6 +1906,7 @@ const definitions: Definition[] = [ await reporting.rmsVoltage(endpoint, {change: 5}); await reporting.rmsCurrent(endpoint, {change: 50}); await reporting.currentSummDelivered(endpoint); + endpoint.saveClusterAttributeKeyValue('haElectricalMeasurement', {acCurrentDivisor: 1000, acCurrentMultiplier: 1}); endpoint.saveClusterAttributeKeyValue('seMetering', {divisor: 100, multiplier: 1}); device.save(); },