Modbus Daily and Total reg data screwed up from 6th May.
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
Re: Modbus Daily and Total reg data screwed up from 6th May.
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.
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