-
Notifications
You must be signed in to change notification settings - Fork 27
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
[FR]: Find the next period with low price based on entity or a set period #35
Comments
Great idea. I am using a modified template made for Nordpol to find the cheapest 3 consecutive hours (time to charge a car). |
Very interested in this as well for a pool pump/heater setup. Best case would be something like a simple "On/Off" value to be used in Node-Red for turning everything on or off. Find best timeslot for running 5 hours between times 08:00 and 22:00 |
I use the 3 cheapest consecutive hours to heat up my buffertank (Via Geothermal heating). And even if we could input the number of consecutive hours during configuration of the integration. RIght now, I use three hours, but I may change for two. |
Just for the fun of it, I have mapped the power usage of my dishwasher hour by hour. |
Could be interesting to have directly, i guess it would be something much like https://github.com/JBoye/HA-Energy-Price-Calculator ? |
I'm really hoping to see something like this. I think it's too complicated for most people to use yaml templates |
Would be great. It would be nice to be able to setup some entities, that can be named for instance Dishwasher-mode-eco and you set that it requires X hours at X kWh (inputs) and then the entity spits out when to turn on and what it would cost if turned on at that time. Minstrøm app does something similar but its not in HA. I would love to have a little epaper display next to the dishwasher & washing machine that displays how long delay i should set and what the load will cost! |
I have created a custom_component (still alpha) that takes history from a sensor like Shelly Plug S and start and end time. Using numpy and Energi Data Service calculates the energy price for each minute and summes it up, and doing this for every possible start time. It does not solve the cases where you need to set a dynamic usage time like 'charge battery to x%' and it does not have to be consecutive, but does exactly what @SinnoTech asks for. |
I found something similar, but for the Nordpool integration: |
Would you mind sharing? Trying to get this also running for my PHEV |
Thank you, @MTrab! You have made a great integration to which I wrote a solution to this FR. If you like it, you can put it into your repo. The solution is a Jinja macro that finds the cheapest period of consecutive hours. The macro receives as input the earliest and latest allowed start time of the requested period. Additionally, the macro receives the period length and a boolean that tells if first or last finding of cheapest period is prioritized as output. The output from the macro is the start time of the founded period:
In general, the macro can be used for automations, sensors, frontend etc.
I use the macro to automatically start my washing machine in the cheapest possible period. |
Like we have daily min, max and mean it could be a nice feature to be able to set a period of time, either a static period or from an entity (ie. date_time helper), and have the integration return start/end time and total price for that period.
The text was updated successfully, but these errors were encountered: