Modbus Daily and Total reg data screwed up from 6th May.

Post Reply
v1lad
Posts: 16
Joined: Thu Dec 07, 2023 9:25 pm

If anyone's had the same problem. Since yesterday the daily and total values are not displayed correctly in HA. Momentary values are correct.
As example :
h3web Battery Discharge daily
5,435.5 kWh
h3web Feed-in daily
6,534.3 kWh
Raw data from ESPHome are correct. Example:
[09:22:03][D][modbus_controller.sensor:025]: Sensor new state: 18.00
[09:22:03][D][sensor:093]: 'PV Energy daily': Sending state 1.80000 kWh with 1 decimals of accuracy
Attachments
pv.jpg
FoxESS Hybrid-WR H3-8.0-E
FoxESS Batterie ECM 2900 Master/Slave with BMS
LiFePo4, 2,9 kWh x 3
Astronergy PV Modul CHSM54M-HC BL 400Wp x 20
Dave Foster
Posts: 1294
Joined: Thu Oct 13, 2022 7:21 pm

I've seen inverter registers get corrupted following a firmware update, where it corrupts the top bits in the generation totals register, but it's usually the total yield register it happens to and this looks to be different - is this the inverters 'total' charge/discharge registers, they are 'uint32' have you taken that into account ?
v1lad
Posts: 16
Joined: Thu Dec 07, 2023 9:25 pm

Seems it is issue between HA<----->ESPHome communication. Raw data in ESPHome is correct for Total too.
Example:
[09:22:03][D][modbus_controller.sensor:025]: Sensor new state: 5137.00
[09:22:03][D][sensor:093]: 'Battery Charge total': Sending state 513.70001 kWh with 1 decimals of accuracy

[09:22:03][D][modbus_controller.sensor:025]: Sensor new state: 17466.00
[09:22:03][D][sensor:093]: 'PV Energy total': Sending state 1746.59998 kWh with 1 decimals of accuracy
FoxESS Hybrid-WR H3-8.0-E
FoxESS Batterie ECM 2900 Master/Slave with BMS
LiFePo4, 2,9 kWh x 3
Astronergy PV Modul CHSM54M-HC BL 400Wp x 20
Post Reply