-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
Comments
Hey there @dgomes, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) utility_meter documentation |
Same issue with weekly reset. |
Funnily enough, my daily utility meter did reset correctly at midnight. |
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. |
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. |
Which is all very strange as neither midnight nor 23:05 happens twice. The time change happens later in the night. |
I've meanwhile traced the issue to the used dependency: kiorky/croniter#70 |
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. |
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:
The timezone configured in my HA is set to "(GMT+01:00) Berlin".
When I render the template
{{ now() }}
I get2024-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
The text was updated successfully, but these errors were encountered: