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

[FR]: Push low price variable if the price is the lowest of the day #47

Closed
Sleazified opened this issue Apr 20, 2022 · 2 comments
Closed

Comments

@Sleazified
Copy link

Sleazified commented Apr 20, 2022

Hello.

I would like the integration to deliver a variable which is true, if the price is within the x lowest hours of the day.

Eg. when the component is setup, you can put an setting with the requested number of hours of low price.

Like, if i wanted the 5 hours with the lowest price, it would be true in those 5 hours, and false the rest of the day.

Example:
Electricty price - Hour of the day - Status of the variable
2.59 - 0 - Low_Price: False
2.51 - 1 - Low_Price: False
2.31 - 2 - Low_Price: True
2.32 - 3 - Low_Price: True
2.31 - 4 - Low_Price: True
2.59 - 5 - Low_Price: False
2.57 - 6 - Low_Price: False
2.65 - 7 - Low_Price: False
2.77 - 8 - Low_Price: False
2.81 - 9 - Low_Price: False
2.93 - 10 - Low_Price: False
2.88 - 11 - Low_Price: False
2.75 - 12 - Low_Price: False
2.11 - 13 - Low_Price: True
2.22 - 14 - Low_Price: True
2.63 - 15 - Low_Price: False
2.77 - 16 - Low_Price: False
2.98 - 17 - Low_Price: False
3.01 - 18 - Low_Price: False
3.11 - 19 - Low_Price: False
3.09 - 20 - Low_Price: False
3.15 - 21 - Low_Price: False
2.97 - 22 - Low_Price: False
2.88 - 23 - Low_Price: False

And of course, if i wanted the 10 hours with the lowest price of the day, i would put in 10 instead of 5 in the setup menu.

@Sleazified Sleazified changed the title Feature Request - Push low price variable if the price is the lowest of the day FR - Push low price variable if the price is the lowest of the day Apr 20, 2022
@Sleazified Sleazified changed the title FR - Push low price variable if the price is the lowest of the day FR: Push low price variable if the price is the lowest of the day Apr 20, 2022
@MTrab
Copy link
Owner

MTrab commented Apr 20, 2022

Actually, excact such feature I'm already building ;) It'll take either an input_number helper entity with the length you want to look for or a static number of hours.

So just hang on - will be coming in the near future.

@MTrab
Copy link
Owner

MTrab commented Apr 20, 2022

Actually it's issue #35

@MTrab MTrab changed the title FR: Push low price variable if the price is the lowest of the day [FR]: Push low price variable if the price is the lowest of the day May 2, 2022
@MTrab MTrab closed this as completed Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants