epaulsen/energytariff

Average peak hour energy reset on new month?

Closed this issue · 3 comments

Should this sensor not reset when we enter a new month?

These max values is from the previous month

image

@laageide , thank you for your kind words 😃

This is indeed a (rather embarassing) bug. Somehow the callback that should reset the attributes at monthly rollover did not get called as they should have been. I will investigate and hopefully release a fix this evening.

@laageide : Fixed in release 0.2.2(hopefully)
https://github.com/epaulsen/energytariff/releases/tag/0.2.2

Available via HACS update now.

Special note in the release notes related to how to clear out old attributes, you will need to fire HA event energytariff_reset_top_three_hours via developer tools in order to clear the attributes. Please note that this will clear all values, including any values aggregated this month.

@epaulsen : Nice work 👍 the reset function in developer tools works as described.
Thanks 😄