-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Allow DayOfWeek filter in rates_import #1926
Comments
You could use the predbat manual api to set rates_import_override for the weekend. Would need an automation to set it each week for the specific weekend dates This would work, but I agree with your FR, having the ability to specify days of the week in rates_import in apps.yaml would make this easier to configure |
Yup - that's what I was referring to in my |
How are you dealing with energy rates on home assistant's energy dashboard? I already had to do an automation for that, so extending it to set predbat's rate prices as well should be just a small extra step. (although I do find Predbat's solution for simple rates much easier to configure than home assistant's one. I wish HA could do it more like predbat does it). |
The way I would do it would be to have 'entity contains current rate' and an automation to set the entity value at the appropriate days/times. Alternatively you could use a utility meter with different tariffs, e.g. weekday/weekend, which means you can see the different rates and import kWh in say the monthly view, but I do find utility meters can 'spike' when you restart HA which messes up the Energy dashboard and requires manual correction to the HA statistics. Personally I'd do the first with an entity containing the rate |
* Day of week filter #1926 * [pre-commit.ci lite] apply automatic fixes * Updated * [pre-commit.ci lite] apply automatic fixes * Update energy-rates.md * [pre-commit.ci lite] apply automatic fixes * Update energy-rates.md --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
I've just completed adding this and merged the code to 'main' for testing. The option is 'day_of_week' and it takes a number between 1 and 7 which is Monday-Sunday e.g.
|
Nice one I wish home assistant would do something like this for it's own energy dashboard. So much easier to set up in predbat compared to home assistant itself. |
I think the main thing is home assistant has an entity to track, which wouldn't really work for predbat as it needs to predict the future, which is why I didn't suggest that as an alternative. The home assistant method with a single template sensor works quite well, and thanks to @springfall2008, now so does predbat. Thanks 🙏 |
My retailer (and I don't believe I'm the only one) charges different rates on the weekend, vs weekdays. I can't see any way with the current
rates_import
configuration options to reflect this accurately in my setup.Describe the solution you'd like
Add an optional
dayOfWeek
property that can accept days of the week in your desired format.E.G.
Describe alternatives you've considered
I believe there's ways to achieve this with additional overrides, but this seems fragile and overly complex
The text was updated successfully, but these errors were encountered: