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

Do some proper work in the STATIC planner variant #54

Closed
8 tasks done
dala318 opened this issue Sep 27, 2024 · 4 comments · Fixed by #55
Closed
8 tasks done

Do some proper work in the STATIC planner variant #54

dala318 opened this issue Sep 27, 2024 · 4 comments · Fixed by #55
Assignees
Labels
enhancement New feature or request

Comments

@dala318
Copy link
Owner

dala318 commented Sep 27, 2024

The selection of STATIC planner is enabled but there is almost no logic connected to it. Implement and test it...

  • Fix the basics (just get a proper end-time from exact time instead of offset from now) [DONE in Fix STATIC planner #55 ]
  • How to keep track of "used" hours for every cycle (need some persistent memory so that it don't reset if HA is restarted).
  • Make some use of the "used_hours" data to stop if fulfilled (off if used_hours >= duration)
  • Add service/button to reset the used hour within an active span (could sort of solve the "car not connected" issue, reset by external automation when car is connected)
  • Enable option to split the hours over the entire day (the cheapest hours don't have to be consecutive). In reality the duration becomes "find the X cheapest hours" and the duration in logic is set to 1 Split out to separate issue Add feature to static to select if the active time can be split over duration or not #71
  • Set a start-hour (specially for a car charger the vehicle is likely not connected during the day when used and then the integration should not be enabled)
  • Postpone start-hour if external condition not fulfilled (ex. car not connected). Will likely be split to separate task, and could be that it not even fits to this integration. Won't do!
  • Test it for release!
@dala318 dala318 added the enhancement New feature or request label Sep 27, 2024
@dala318 dala318 self-assigned this Sep 27, 2024
@dala318 dala318 linked a pull request Sep 27, 2024 that will close this issue
@ojm88
Copy link

ojm88 commented Nov 27, 2024

Hi.

Thank you for creating an integration that makes it easy to control by electricity price without using NodeRed :)

How is the progress of the work with "STATIC planner"?
Do you want to implement control by power levels (kWh average over an hour), and add prioritized loads/units in the future?

Can you look into the possibility of a sensor that sets the water temperature in the hot water tank, depending on the electricity price?

Regards Ole Jørgen

@dala318
Copy link
Owner Author

dala318 commented Nov 28, 2024

How is the progress of the work with "STATIC planner"? Do you want to implement control by power levels (kWh average over an hour), and add prioritized loads/units in the future?

Can you look into the possibility of a sensor that sets the water temperature in the hot water tank, depending on the electricity price?

Hi, progress is slow on this particular part of the planner (most likely because I don't have an immediate use of it myself), but should maybe start a poll or something to see how large the interest of it is.

About your proposals above, improvements and suggestions are always welcomed. Could you explain a bit more what you're after. Maybe as one or two separate tickets. (this particular ticket only aims to finalize the core functionality of the static planner)

@ojm88
Copy link

ojm88 commented Nov 28, 2024

Hi, and thanks for your reply.

See my new "issue" I have started. Answering your questions there.

How is the progress of the work with "STATIC planner"? Do you want to implement control by power levels (kWh average over an hour), and add prioritized loads/units in the future?
Can you look into the possibility of a sensor that sets the water temperature in the hot water tank, depending on the electricity price?

Hi, progress is slow on this particular part of the planner (most likely because I don't have an immediate use of it myself), but should maybe start a poll or something to see how large the interest of it is.

About your proposals above, improvements and suggestions are always welcomed. Could you explain a bit more what you're after. Maybe as one or two separate tickets. (this particular ticket only aims to finalize the core functionality of the static planner)

Hi, and thanks for your reply.

See my new "issue" I have started. Answering your questions there.

@dala318
Copy link
Owner Author

dala318 commented Dec 3, 2024

I also looked a bit closer on the priceanalyzer code and version 2 draft.

The part where it compares price-trend is sort of what my planner does. But mine do not compare the entire time-span to a fixed "plan" of prices but only looks ahead from "now" and finds the next cheap/expensive spot in the search-range. Those should be somewhat comparable in function.

What prizeanalyzer also does but my planner lacks proper function is within the "static" planner and where you can select a number of hours during a time-span (or end-time) to activate "high consumption". This would be a natural part of the static planner which I never seem to find time to solve. But maybe getting some inspiration from the priceanalyzer will help there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants