You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the suggestion. I have actually been thinking a bit about this.
For testing I have 3 instances of this integration. The instance that is used for discharging of the household battery pack uses template helpers that inverted the SOC entities {{ 100.0 - states('entity.providing_soc') | float(0) }} and then I use an instance of the Nordpool integration which is configured to invert the price {{ (current_price * -1.0 ) | float }}. This works fine, but is of course quite ugly. A switch would be a proper implementation.
However, I felt that this would be too simple. To make sense, I thought you need to add knowledge of the high and low price levels. If the purpose of this is to do price arbitrage, then it only make sense of the high price is a certain amount above the low price. This felt a bit complicated to implemented, so I didn't do anything more...
What is your comments on this? Is just a switch enough?
Let's start with a switch, if someone wants to further expand logic, another layer of template sensors can be used.
I don't know if switch is sufficient in terms of UX design. Maybe with custom translations you can translate off/on to discharge/charge, but select seems more natural for most users.
Is your feature request related to a problem? Please describe.
I want to use two instances of this integration to perform two tasks:
Describe the solution you'd like
Add a
binary switch
orselect
entity to determine expected result from algorithmDescribe alternatives you've considered
It's already available in Jinja2 macro: https://github.com/TheFes/cheapest-energy-hours/
Additional context
Actually, I will run 3 instances of this integration:
To control (dis)charge of household battery pack and to charge EV.
The text was updated successfully, but these errors were encountered: