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

Feature proposal: add low_price_periods #208

Open
Pluimvee opened this issue Oct 13, 2024 · 0 comments
Open

Feature proposal: add low_price_periods #208

Pluimvee opened this issue Oct 13, 2024 · 0 comments

Comments

@Pluimvee
Copy link
Contributor

Pluimvee commented Oct 13, 2024

There is a need for simple-to-use low_price_period indicators which we could add as attributes to one of the sensors.

Next to the minimum price period which we have as sensor (reflecting a low_1hr_period) we could add some attributes indicating

  • low_2hr_period: off
  • low_3hr_period: off
  • low_4hr_period: on
  • low_5hr_period: on

The attributed would turn 'on' when x-hrs of sequential hours are the lowest in the configured analysis_window and turn 'off' when that period has passed.
It may be expected that the low_5hr_period turns on earlier than the low_2hr_period as the latter would wait for a lower price. But they can also turn on at the same time and differ only in the moment of turn off again.

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

1 participant