Hello.
I downloaded the csv from my energy dashboard today and wondered about the many decimal places in the values. I see up to 18 decimal places, regardless of which integration the values come from.
Here is a shortened example:
entity_id, type, unit, 2024-09-12T11:00:00.000Z, 2024-09-12T12:00:00.000Z
sensor.shellypro3em_34987a45cbc0_em2_total_active_energy, grid_consumption, kWh, 0.18765999999999394, 1.1883699999999635
sensor.shellypro3em_34987a45cbc0_em2_total_active_energy_cost, grid_consumption_cost, EUR, 0.07412569999999619, 0.4694061499999691
sensor.shellypro3em_34987a45cbc0_em2_total_active_returned_energy, grid_return, kWh, 0.09189999999999543, 0.009650000000000603
sensor.solar_wechselrichter_ez1_m_gesamtproduktion_uber_die_gesamte_lebensdauer, solar_production, kWh, 0.31793000000000404, 0.25316999999999723
sensor.wz_medien_wlan_switch_energy_total, device_consumption, kWh, 0.014999999999986358, 0.01500000000001478
sensor.kueche_kuehlschrank_wlan_switch_energy_total, device_consumption, kWh, 0.024999999999977263, 0.09600000000000364
sensor.bad_my_waschmaschine_wlan_switch_energy_total, device_consumption, kWh, 0.15399999999999636, 1.2379999999999995
sensor.wz_pc_wlan_switch_energy_total, device_consumption, kWh, 0.015999999999991132, 0.016000000000005343
sensor.shellypro3em_34987a45cbc0_em0_total_active_energy, device_consumption, kWh, 0.09990999999999417, 0.1031900000000121
sensor.shellypro3em_34987a45cbc0_em1_total_active_energy, device_consumption, kWh, 0.01442000000000121, 0.030509999999999593
All source sensors come from core integrations:
- Shelly (grid_consumption / grid_return / 2x device_consumption)
- APsystems (solar_production)
- Tasmota (4x device_consumption)
The source sensors themselves provide a maximum of up to 5 decimal places.
My question is whether this is normal or whether homeassistant might run into some fpu-precision-rounding problems here.
The latter seems more plausible to me.
The energy dashboard itself is plausible, there are only 2 decimals shown.
My system is:
Home Assistant OS 13.1 (as VM under Proxmox / Intel N100 Host)
supervisor-2024.08.0
core-2024.9.1
Thanks for reading…