Skip to content

Commit

Permalink
Update get_total_energy_consumption_t_kwh
Browse files Browse the repository at this point in the history
  • Loading branch information
augustynski-lukasz authored Jun 19, 2024
1 parent 7107b89 commit 26d2d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver_amiplus.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ struct Amiplus: Driver
esphome::optional<double> 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) {
Expand Down

0 comments on commit 26d2d91

Please sign in to comment.