From afea9cd4a7780ac7186ee9cd5b4528904c07d644 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 23 Dec 2021 12:06:14 +0100 Subject: [PATCH] Increase max power value for Sonoff Pow R3 Increase max power value for Sonoff Pow R3 (#14156) --- tasmota/xnrg_02_cse7766.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasmota/xnrg_02_cse7766.ino b/tasmota/xnrg_02_cse7766.ino index 445781b37..552e2b209 100644 --- a/tasmota/xnrg_02_cse7766.ino +++ b/tasmota/xnrg_02_cse7766.ino @@ -20,7 +20,7 @@ #ifdef USE_ENERGY_SENSOR #ifdef USE_CSE7766 /*********************************************************************************************\ - * CSE7759 and CSE7766 - Energy (Sonoff S31 and Sonoff Pow R2) + * CSE7759 and CSE7766 - Energy (Sonoff S31 and Sonoff Pow R2/R3) * HLW8032 - Energy (Blitzwolf SHP5) * * Needs GPIO_CSE7766_RX only @@ -203,7 +203,9 @@ void CseEverySecond(void) { uint32_t delta = (cf_pulses * Settings->energy_power_calibration) / 36; // prevent invalid load delta steps even checksum is valid (issue #5789): // prevent invalid load delta steps even checksum is valid but allow up to 4kW (issue #7155): - if (delta <= (4000 * 1000 / 36)) { // max load for S31/Pow R2: 4.00kW +// if (delta <= (4000 * 1000 / 36)) { // max load for S31/Pow R2: 4.00kW + // prevent invalid load delta steps even checksum is valid but allow up to 5.5kW (issue #14156): + if (delta <= (5500 * 1000 / 36)) { // max load for Pow R3: 5.50kW Cse.cf_pulses_last_time = Cse.cf_pulses; Energy.kWhtoday_delta[0] += delta; }