Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utility meter with monthly reset resetted one hour too early #114547

Open
envy opened this issue Mar 31, 2024 · 11 comments
Open

Utility meter with monthly reset resetted one hour too early #114547

envy opened this issue Mar 31, 2024 · 11 comments

Comments

@envy
Copy link

envy commented Mar 31, 2024

The problem

I have a utility meter that I configured to reset monthly.

27 minutes ago of this writing (2024-03-31 23:27 CEST), it reset:

grafik

The timezone configured in my HA is set to "(GMT+01:00) Berlin".

When I render the template {{ now() }} I get 2024-03-31 23:28:13.972397+02:00

So, HA seems to be aware of the fact, that today (2024-03-31) there was a switch to daylight savings.

But somehow, the utlity meter thinks it's already 2024-04-01, that would be GMT+03:00 which is wrong, so it's observing double daylight savings?

What version of Home Assistant Core has the issue?

core-2024.3.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Utility Meter

Link to integration documentation on our website

https://www.home-assistant.io/integrations/utility_meter/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @dgomes, mind taking a look at this issue as it has been labeled with an integration (utility_meter) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of utility_meter can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign utility_meter Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


utility_meter documentation
utility_meter source
(message by IssueLinks)

@oivindklausen
Copy link

oivindklausen commented Apr 1, 2024

Same issue with weekly reset.

@envy
Copy link
Author

envy commented Apr 1, 2024

Funnily enough, my daily utility meter did reset correctly at midnight.

@maweki
Copy link
Contributor

maweki commented Apr 2, 2024

I also live in the Berlin TZ. For me the "last period" attribute also zeroed, which makes me believe it somehow reset twice.

@LukasNitsche
Copy link

LukasNitsche commented Apr 3, 2024

To add to the same situation, reset early, Berlin TZ, last period zeroed; I have also noticed that the entire statistic for March is gone, but onyl for state, not change...
State:
image
Change:
image

@malonip
Copy link

malonip commented Apr 4, 2024

I also live in the Berlin TZ. For me the "last period" attribute also zeroed, which makes me believe it somehow reset twice.

Same on my system : all my monthly utility meters have resetted twice, once (too early) with the correct value and a bit later with now a zero value.

@whalik
Copy link

whalik commented Apr 4, 2024

I have a utility meter setup to reset at 23:05 every 1st, 11th, 21st of each month. We had summer time kicking in at midnight 30/31st of March. On March 1st the meter reset activated twice one hour apart, at 22:05 then at 23:05.

@maweki
Copy link
Contributor

maweki commented Apr 4, 2024

Which is all very strange as neither midnight nor 23:05 happens twice. The time change happens later in the night.

@dgomes
Copy link
Contributor

dgomes commented Apr 7, 2024

I've meanwhile traced the issue to the used dependency: kiorky/croniter#70

@whalik
Copy link

whalik commented Apr 7, 2024

Which is all very strange as neither midnight nor 23:05 happens twice. The time change happens later in the night.

Note that my meter reset was 24 hours after the DST change (as scheduled) but it executed twice. I have two separate HA systems (for redundancy) with same meter setup and they acted the same way i.e. double reset. The setup has been running for one year without a noticeable issue.

@tomlut
Copy link

tomlut commented Apr 7, 2024

Daylight savings ended on Sunday the 6th at 2am here (TZ: Australia/Hobart). HA shows the correct time but all my daily cycle utility meters are now resetting at 1am instead of midnight.

Screenshot 2024-04-08 at 08-57-20 History – Home Assistant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants