Thank you, glad i got it figured out. I will provide feedback.
Utility meter sensor randomly shows incorrect readings, summing up the energy sensor readings.
I have no idea WTF how to fix my trouble.
The energy sensor has no abnormal values, but monthly energy sensor shows wrong values…
Sensors:
em5.storage_energy_kwh (modbus)
#===== Storage Active Energy (kWh) =============#
- name: em5_Storage_kwh
unique_id: em5_storage_kwh
slave: 5
address: 342
scan_interval: 60
input_type: input
data_type: float32
device_class: energy
state_class: total_increasing
unit_of_measurement: kWh
precision: 2
#===============================
Monthly energy (utility meter)
sensor.energy_monthly_storage
#===============================
energy_monthly_storage:
source: sensor.em5_storage_kwh
unique_id: energy_monthly_storage
cycle: monthly
always_available: true
#===============================
#===============================
Sensors data in HA database:
em5.storage_energy_kwh
States
SELECT * FROM states WHERE metadata_id=131 and last_updated_ts>1748192400.0
Statistics
SELECT * FROM statistics WHERE metadata_id=250 and created_ts>1748192400
Statistics_short_term
SELECT * FROM statistics_short_term WHERE metadata_id=250 and created_ts>1748192400
…
sensor.energy_monthly_storage
States_Meta
SELECT * FROM states_meta WHERE entity_id LIKE 'sensor.energy_monthly_storage'

States
SELECT * FROM states WHERE metadata_id=968 and last_updated_ts>1748192400
Hello,
I have the same mistake with the utility meter when the proxmox server restart with a VM Homeassistant.
I don’t have this mistake if I restart only the VM homeassistant.
Anyone can help me ?
Best regard.





