elden1337 / hass-peaqnext

Utility sensors to help find the next best usage of your appliances
Other
7 stars 0 forks source link

Create custom consumption pattern #11

Closed elden1337 closed 1 year ago

elden1337 commented 1 year ago

":I know the pattern of my appliance in watts. Maybe an option for a custom pattern would be possible. To make the calculation of the price more accurate."

Originally posted by @sjoukebakker in https://github.com/elden1337/hass-peaqnext/issues/5#issuecomment-1663492397

elden1337 commented 1 year ago

@sjoukebakker can you post an example of this consumption pattern?

groen-sb commented 1 year ago

Well to be honest, I only have the data from my plug. Which looks like this: afbeelding

But I could somehow try to convert it to a profile like in this example (watts per 15 minutes):

        self.timestep = 900 

        # Profiles in Watts
        # Vaatwasser = 1.3kWh
        self.profile = [200, 1704, 1139, 66, 44, 1592, 462, 4, 5]

I found this in GENETX's code: https://github.com/GENETX/homeassistant/blob/master/appdaemon/apps/vaatwasser.py#L29C10-L29C10

elden1337 commented 1 year ago

Oh what kind of repo is that? Looks like a similar one

elden1337 commented 1 year ago

And yeah i would convert it to percent of total energy in the steps later.

elden1337 commented 1 year ago

handled in https://github.com/elden1337/hass-peaqnext/releases/tag/v0.4.0