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 should allow setting a yearly offset on a specific day #20918

Closed
RezzZ opened this issue Feb 9, 2019 · 12 comments · Fixed by #20926
Closed

Utility Meter should allow setting a yearly offset on a specific day #20918

RezzZ opened this issue Feb 9, 2019 · 12 comments · Fixed by #20926

Comments

@RezzZ
Copy link

RezzZ commented Feb 9, 2019

Home Assistant release with the issue:
0.87.0

Last working Home Assistant release (if known):

Operating environment (Hass.io/Docker/Windows/etc.):
RPi3b+, raspbian stretch (up to date), docker
Component/platform:
utility_meter

Description of problem:
I just enabled the new utility_meter:
https://www.home-assistant.io/components/utility_meter/
and want to set the offset for the yearly sensors to May 11th.

According to @dgomes (who was kind enough to reply awesomely quick here (#19718 (comment)) the offset for yearly sensors is the nr of months.
Unfortunately in the Netherlands cycles never start on the 1st of a month (unless you actually buy a house on the 1st of a month and start your energy contract at that date). Did I misunderstand of can we actually set a specific day of a year for the offset cycle? like daynr?

@dgomes dgomes self-assigned this Feb 9, 2019
@ghost ghost added the in progress label Feb 10, 2019
@pilievwm
Copy link

Hi @RezzZ
So what if I need to reset it on 15th every month? What should i add to the offset?

@dgomes
Copy link
Contributor

dgomes commented Feb 10, 2019

Currently you use 15

@pilievwm
Copy link

Thanks @dgomes ! And one more question.
My source is current power in kWh which is constantly changing based on the usage.
If I use it the utility meter is going crazy and shows me that for 10 minutes my usage is more than 20kWh :)
What source do you use? current power consumption or aggregated? My electricity sensor is pzem004
image

@dgomes
Copy link
Contributor

dgomes commented Feb 10, 2019

The utility_meter source MUST be an energy value (therefore expressed in kWh)

I would use "Energy Total"

@pilievwm
Copy link

Sorry for all the question!
Do i have to add it like this?

offset: days: 15

or

offset: 15

It is not very clear into the description

@dgomes
Copy link
Contributor

dgomes commented Feb 10, 2019

currently:

offset: 15

If my PR gets merged (fixing this issue):

offset:
  - days: 15

@pilievwm
Copy link

pilievwm commented Feb 10, 2019

I am converting the current power usage into kWh and it is energy value, but it is changing all the time (based on my consumption).
Energy total will reset on a specific time of the day. It is built-in feature of the pzem004
power consumption sensor - main menu - edited

@dgomes
Copy link
Contributor

dgomes commented Feb 10, 2019

Take my word, use Energy Total.

If you setup a daily utility_meter the values in "Energy Today" and "Energy Yesterday" will hopefully be the same, proving that the utility_meter is working correctly.

Even if the energy total resets, you will lose a very small amount of energy account .

@pilievwm
Copy link

Ok thanks for that info!

@pilievwm
Copy link

And last ... promise!
Do i have to set automation to reset the values every month on 15th?

@dgomes
Copy link
Contributor

dgomes commented Feb 10, 2019

no, that's the all point of utility_meter, it resets for you

@pilievwm
Copy link

Awesome!

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

Successfully merging a pull request may close this issue.

4 participants