From 26d2d91c1f06ef865ce84dae44733e4f96cbbfee Mon Sep 17 00:00:00 2001 From: augustynski-lukasz Date: Wed, 19 Jun 2024 19:30:57 +0200 Subject: [PATCH] Update get_total_energy_consumption_t_kwh --- driver_amiplus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver_amiplus.h b/driver_amiplus.h index a770056..f7ba266 100755 --- a/driver_amiplus.h +++ b/driver_amiplus.h @@ -62,7 +62,7 @@ struct Amiplus: Driver esphome::optional ret_val{}; uint32_t usage = 0; size_t i = 11; - uint32_t total_register = 0x8E0003 | ((tarrif*10) << 8); + uint32_t total_register = 0x8E0003 | ((tarrif*16) << 8); while (i < telegram.size()) { uint32_t c = (((uint32_t)telegram[i+0] << 16) | ((uint32_t)telegram[i+1] << 8 ) | ((uint32_t)telegram[i+2]) ); if (c == total_register) {