From b18397a9b48609caf635380d0c5dd720bbce9cab Mon Sep 17 00:00:00 2001 From: koenkk Date: Thu, 31 Aug 2023 09:29:00 +0200 Subject: [PATCH] fix(ignore): fix 888918c119756090bb123b061c83587155168ae0 --- src/devices/tuya.ts | 4 ++-- src/lib/tuya.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devices/tuya.ts b/src/devices/tuya.ts index bdd55abf6880f..aededbf42b655 100644 --- a/src/devices/tuya.ts +++ b/src/devices/tuya.ts @@ -5961,8 +5961,8 @@ const definitions: Definition[] = [ [104, 'energy_flow_b', tuya.valueConverterBasic.lookup({'consuming': 0, 'producing': 1})], [106, 'energy_a', tuya.valueConverter.divideBy100], [108, 'energy_b', tuya.valueConverter.divideBy100], - [107, 'energy_produced_A', tuya.valueConverter.divideBy100], - [109, 'energy_produced_B', tuya.valueConverter.divideBy100], + [107, 'energy_produced_a', tuya.valueConverter.divideBy100], + [109, 'energy_produced_b', tuya.valueConverter.divideBy100], [129, 'update_frequency', tuya.valueConverter.raw], ], }, diff --git a/src/lib/tuya.ts b/src/lib/tuya.ts index a08f6b9c49da4..5115ab5f90aec 100644 --- a/src/lib/tuya.ts +++ b/src/lib/tuya.ts @@ -254,7 +254,7 @@ const tuyaExposes = { gasValue: () => e.numeric('gas_value', ea.STATE).withDescription('Measured gas concentration'), energyWithPhase: (phase: string) => e.numeric(`energy_${phase}`, ea.STATE).withUnit('kWh') .withDescription(`Sum of consumed energy (phase ${phase.toUpperCase()})`), - energyProducedWithPhase: (phase: string) => e.numeric(`energy_${phase}`, ea.STATE).withUnit('kWh') + energyProducedWithPhase: (phase: string) => e.numeric(`energy_produced_${phase}`, ea.STATE).withUnit('kWh') .withDescription(`Sum of produced energy (phase ${phase.toUpperCase()})`), energyFlowWithPhase: (phase: string) => e.enum(`energy_flow_${phase}`, ea.STATE, ['consuming', 'producing']) .withDescription(`Direction of energy (phase ${phase.toUpperCase()})`),