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

Integrate Cheapest Energy Hours Macro #48

Open
greteOne opened this issue Dec 11, 2024 · 2 comments
Open

Integrate Cheapest Energy Hours Macro #48

greteOne opened this issue Dec 11, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@greteOne
Copy link

Hello everyone,

not an issue but unfortunately the best place for this idea:
is it possible to include the following macro via a helper entity, for example, so that dynamic charging according to the cheapest energy price would be possible? The combination of the add-on with the macro would be a gamechanger in my eyes.

https://github.com/TheFes/cheapest-energy-hours

Kind regards

@atbore-phx atbore-phx added the good first issue Good for newcomers label Dec 15, 2024
@atbore-phx
Copy link
Owner

Hi @greteOne,

Thanks for your feature request!

This feature could automatically define start_hr and end_hr in the SBAM configuration. While I’m not familiar with this extension, if someone wants to create a PR to implement it, I’m fine with that.

Possible Implementation

  • Introduce a boolean variable, auto_setup_time_range (default: false).
    • If true, start_hr and end_hr will be defined via the output of the macro (via API request ?).
    • If false, they will be defined manually as usual.

I’ve labeled this as a Good First Issue for anyone interested in contributing.

@atbore-phx atbore-phx added the enhancement New feature or request label Dec 15, 2024
@greteOne
Copy link
Author

greteOne commented Jan 22, 2025

think that the boolean and the start time are sufficient. The easiest way would be to integrate the start time as an entity as a timestamp.
The specification for the end time results from the maximum charging power from the grid to the battery and can be included in the macro.
What is the maximum charging power from the grid?

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

No branches or pull requests

2 participants