Start of the Week for Energy... not changed

I am not sure what I am missing…
I have now defined in HA that the week starts on Sunday… i.e. the “reset” (going to zero) of the energy graphs should be on Sunday.

But the graphs still has a reset on Monday i.e Sunday 23:59:59.

How can I force the graph to reflect this please?

Cheers

Which integration is providing this sensor?

If it is a utility meter you need to set the cycle correctly.

Otherwise that is likely to be a setting on your device, not Home Assistant.

first: may thanks for replying! really appreciate the help.

I am reading this from Tasmota, and it provides total consumed, total produced (sold) and current comsumption… so I am not reading any weekly values.

I use the total to calculate the weekly values through a sensor defined in the [utility_meter: ] section… using the following (among others)

My profile in HA has Sunday as first day and the Mac also… nothing changed.

the code part

mt1681_weekly_energy:
unique_id: “mt1681-weeky”
source: sensor.bitshake_smartmeterreader_mt681_total_in
name: From netz weekly
cycle: weekly
mt1681_monthly_energy:
source: sensor.bitshake_smartmeterreader_mt681_total_in
name: From netz monthly
cycle: monthly
unique_id: “mt1681-monthly”

soooo… I tried now something else… I added CRON to the config (I though the default would always be the start of the week as I defined… )

mt1681_weekly_energy:
unique_id: “mt1681-weeky”
source: sensor.bitshake_smartmeterreader_mt681_total_in
name: From netz weekly
cron: “0 0 * * 7”

is this what you mean?

1 Like

Yes indeed. The utility meter cycle is customisable to your requirements and the cron pattern you have selected should reset the accumulated energy first thing each Sunday.

1 Like