Page 1 of 1

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

Posted: Tue May 07, 2024 8:01 am
by v1lad
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

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

Posted: Tue May 07, 2024 9:21 am
by Dave Foster
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 ?

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

Posted: Tue May 07, 2024 9:53 am
by v1lad
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