Is it implied that the below configuration will automatically reset respective sensors values to 0 exactly at midnight? Or, do I need to explicitly specify the time as well?
The reason I ask is because my sensors didn’t reset to 0 at midnight: 12:00am. The values continue grow.
utility_meter:
daily_solar_energy_produced:
source: sensor.mka_net_solar_power
cycle: daily
daily_energy_consumption:
source: sensor.mka_net_load_power
cycle: daily
daily_solar_export:
source: sensor.mka_net_solar_export
cycle: daily
daily_site_import:
source: sensor.mka_net_site_import
cycle: daily
daily_battery_import:
source: sensor.mka_net_battery_import
cycle: daily
UPDATE: I noticed that for each utility_meter I create, a duplicate sensor is generated (see below screenshot): I see duplicate entities created for each utility meter sensor I added to configuration.yaml. I think this has to do with the issue.
Example:
I have no idea why and totally confused.
sensor.daily_solar_energy_produced
(respective State Attributes)
state_class: total
source: sensor.mka_net_solar_power
unit_of_measurement: kWh
device_class: energy
friendly_name: daily_solar_energy_produced
sensor.daily_solar_energy_produced_2
(respective State Attributes)
state_class: total_increasing
source: sensor.mka_net_solar_power
status: collecting
last_period: '0'
last_valid_state: '3.54'
meter_period: daily
cron pattern: 0 0 * * *
last_reset: '2023-11-02T20:00:09.907884+00:00'
unit_of_measurement: kW
icon: mdi:counter
friendly_name: daily_solar_energy_produced
PS: I didn’t create the utility_meter items in the Home Assistant GUI. In fact, I don’t even know how to.