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

Dynamic Tariff UI: Add support for shorter time slots (< 1h) #12915

Open
IamMattM opened this issue Mar 13, 2024 · 6 comments
Open

Dynamic Tariff UI: Add support for shorter time slots (< 1h) #12915

IamMattM opened this issue Mar 13, 2024 · 6 comments
Assignees
Labels
backlog Things to do later

Comments

@IamMattM
Copy link

IamMattM commented Mar 13, 2024

I would like to clarify how a smart grid tariff like the one from octopusenergy AGILE-23-12-06 , which changes every 30minutes, is handled by EVCC ?

I can see that the U.I only presents the cost of the Kwh in a full hourly slot, with the cost for this hour slot based on the cost at the beginning of the hour only (no averaging with the second half of the hour).

Is evcc correctly handling tariffs that have Kwh costs changing within a one-hour period ?

evcc tariff API request command , for AGILE-23-12-06correcly shows those half-hourly costs changing but I am not certain as to whether evcc works in the backgground "honouring" those intra-hourly varying costs ?

https://imgur.com/a/yxKRL3v

@IamMattM IamMattM changed the title Tariffs: ocotpusenergy - 30 Minutes interval - U.I using initial hourly cost / no averaging - Tariffs: octopusenergy - 30-minutes interval / U.I using initial hourly cost / no averaging - Mar 13, 2024
@naltatis
Copy link
Member

The UI currently assumes that prices only change every hour. Cheap grid charging, cost calculations and afaik also the planning algorithm are not limited to fixed time intervals.

What would your expectation for the UI be? Half hour slots? Avg. values? Is it always 30m intervals at octopus?

@naltatis naltatis added the ux User experience/ interface label Mar 13, 2024
@IamMattM
Copy link
Author

IamMattM commented Mar 13, 2024

@naltatis

Thanks for confirming that the grid charging + cost calculations + planning algorithm are not bound by a fixed 1 hour time interval. That's great news.

With regards to Octopus energy, I can confirm that at least in the U.K. , the shortest tariff interval is indeed a minimum of 30mins.

I have come across this post, that implies other energy supplier smart tariffs might be also worked on a very short 15minutes intervals:
From : #12698 , "VARIO_PLUS -> this is the tariff who can change every 15 minutes."

In terms of U.I. , I would imagine that if possible, it would be fantastic to actually derive the interval duration from the API request (So if there are any records for change of tariff at time xx:15:xx or xx:30:xx beyond the xx:00:xx (hh:min:sec) , it is then known that the intervals to be displayed in the U.I would want to match...?

For example , from octopus I get a total of 24hours ahead (+ 24hours in the past, no longer relevant), 30minutes intervals indicated by some xx:30:xx and no xx:15:xx

2024-03-12 21:00:00    2024-03-12 21:30:00    0.138
2024-03-12 21:30:00    2024-03-12 22:00:00    0.125
2024-03-12 22:00:00    2024-03-12 22:30:00    0.138
2024-03-12 22:30:00    2024-03-12 23:00:00    0.119
2024-03-12 23:00:00    2024-03-12 23:30:00    0.131
2024-03-12 23:30:00    2024-03-13 00:00:00    0.101
2024-03-13 00:00:00    2024-03-13 00:30:00    0.101
2024-03-13 00:30:00    2024-03-13 01:00:00    0.115
2024-03-13 01:00:00    2024-03-13 01:30:00    0.106
2024-03-13 01:30:00    2024-03-13 02:00:00    0.084
2024-03-13 02:00:00    2024-03-13 02:30:00    0.092
2024-03-13 02:30:00    2024-03-13 03:00:00    0.088
2024-03-13 03:00:00    2024-03-13 03:30:00    0.091
2024-03-13 03:30:00    2024-03-13 04:00:00    0.086
2024-03-13 04:00:00    2024-03-13 04:30:00    0.108
2024-03-13 04:30:00    2024-03-13 05:00:00    0.108
2024-03-13 05:00:00    2024-03-13 05:30:00    0.123
2024-03-13 05:30:00    2024-03-13 06:00:00    0.139
2024-03-13 06:00:00    2024-03-13 06:30:00    0.154
2024-03-13 06:30:00    2024-03-13 07:00:00    0.178
2024-03-13 07:00:00    2024-03-13 07:30:00    0.151
2024-03-13 07:30:00    2024-03-13 08:00:00    0.179
2024-03-13 08:00:00    2024-03-13 08:30:00    0.154
2024-03-13 08:30:00    2024-03-13 09:00:00    0.155
2024-03-13 09:00:00    2024-03-13 09:30:00    0.146
2024-03-13 09:30:00    2024-03-13 10:00:00    0.148
2024-03-13 10:00:00    2024-03-13 10:30:00    0.146
2024-03-13 10:30:00    2024-03-13 11:00:00    0.143
2024-03-13 11:00:00    2024-03-13 11:30:00    0.137
2024-03-13 11:30:00    2024-03-13 12:00:00    0.132
2024-03-13 12:00:00    2024-03-13 12:30:00    0.126
2024-03-13 12:30:00    2024-03-13 13:00:00    0.130
2024-03-13 13:00:00    2024-03-13 13:30:00    0.132
2024-03-13 13:30:00    2024-03-13 14:00:00    0.127
2024-03-13 14:00:00    2024-03-13 14:30:00    0.127
2024-03-13 14:30:00    2024-03-13 15:00:00    0.125
2024-03-13 15:00:00    2024-03-13 15:30:00    0.115
2024-03-13 15:30:00    2024-03-13 16:00:00    0.124
2024-03-13 16:00:00    2024-03-13 16:30:00    0.272
2024-03-13 16:30:00    2024-03-13 17:00:00    0.271
2024-03-13 17:00:00    2024-03-13 17:30:00    0.272
2024-03-13 17:30:00    2024-03-13 18:00:00    0.292
2024-03-13 18:00:00    2024-03-13 18:30:00    0.312
2024-03-13 18:30:00    2024-03-13 19:00:00    0.316
2024-03-13 19:00:00    2024-03-13 19:30:00    0.170
2024-03-13 19:30:00    2024-03-13 20:00:00    0.151
2024-03-13 20:00:00    2024-03-13 20:30:00    0.149
2024-03-13 20:30:00    2024-03-13 21:00:00    0.128
2024-03-13 21:00:00    2024-03-13 21:30:00    0.146
2024-03-13 21:30:00    2024-03-13 22:00:00    0.134
2024-03-13 22:00:00    2024-03-13 22:30:00    0.121
2024-03-13 22:30:00    2024-03-13 23:00:00    0.109
2024-03-13 23:00:00    2024-03-13 23:30:00    0.131
2024-03-13 23:30:00    2024-03-14 00:00:00    0.115
2024-03-14 00:00:00    2024-03-14 00:30:00    0.102
2024-03-14 00:30:00    2024-03-14 01:00:00    0.122
2024-03-14 01:00:00    2024-03-14 01:30:00    0.121
2024-03-14 01:30:00    2024-03-14 02:00:00    0.108
2024-03-14 02:00:00    2024-03-14 02:30:00    0.110
2024-03-14 02:30:00    2024-03-14 03:00:00    0.106
2024-03-14 03:00:00    2024-03-14 03:30:00    0.099
2024-03-14 03:30:00    2024-03-14 04:00:00    0.088
2024-03-14 04:00:00    2024-03-14 04:30:00    0.102
2024-03-14 04:30:00    2024-03-14 05:00:00    0.100
2024-03-14 05:00:00    2024-03-14 05:30:00    0.125
2024-03-14 05:30:00    2024-03-14 06:00:00    0.132
2024-03-14 06:00:00    2024-03-14 06:30:00    0.154
2024-03-14 06:30:00    2024-03-14 07:00:00    0.168
2024-03-14 07:00:00    2024-03-14 07:30:00    0.132
2024-03-14 07:30:00    2024-03-14 08:00:00    0.158
2024-03-14 08:00:00    2024-03-14 08:30:00    0.143
2024-03-14 08:30:00    2024-03-14 09:00:00    0.148
2024-03-14 09:00:00    2024-03-14 09:30:00    0.152
2024-03-14 09:30:00    2024-03-14 10:00:00    0.152
2024-03-14 10:00:00    2024-03-14 10:30:00    0.144
2024-03-14 10:30:00    2024-03-14 11:00:00    0.137
2024-03-14 11:00:00    2024-03-14 11:30:00    0.143
2024-03-14 11:30:00    2024-03-14 12:00:00    0.134
2024-03-14 12:00:00    2024-03-14 12:30:00    0.139
2024-03-14 12:30:00    2024-03-14 13:00:00    0.136
2024-03-14 13:00:00    2024-03-14 13:30:00    0.126
2024-03-14 13:30:00    2024-03-14 14:00:00    0.122
2024-03-14 14:00:00    2024-03-14 14:30:00    0.119
2024-03-14 14:30:00    2024-03-14 15:00:00    0.119
2024-03-14 15:00:00    2024-03-14 15:30:00    0.116
2024-03-14 15:30:00    2024-03-14 16:00:00    0.122
2024-03-14 16:00:00    2024-03-14 16:30:00    0.258
2024-03-14 16:30:00    2024-03-14 17:00:00    0.280
2024-03-14 17:00:00    2024-03-14 17:30:00    0.285
2024-03-14 17:30:00    2024-03-14 18:00:00    0.302
2024-03-14 18:00:00    2024-03-14 18:30:00    0.298
2024-03-14 18:30:00    2024-03-14 19:00:00    0.298
2024-03-14 19:00:00    2024-03-14 19:30:00    0.154
2024-03-14 19:30:00    2024-03-14 20:00:00    0.143
2024-03-14 20:00:00    2024-03-14 20:30:00    0.138
2024-03-14 20:30:00    2024-03-14 21:00:00    0.126
2024-03-14 21:00:00    2024-03-14 21:30:00    0.141
2024-03-14 21:30:00    2024-03-14 22:00:00    0.130
2024-03-14 22:00:00    2024-03-14 22:30:00    0.116
2024-03-14 22:30:00    2024-03-14 23:00:00    0.060

I quite like the way, evcc presents those stuitable slots (in green) when the cost per Kwh is below the targetted price limit.
The only changes I would make, if do-able, would be to create each of the individual time-intervals as reported when the evcc tariff command is called from the current date/time

In my case that would be around 48 records (24hours ahead in 30minutes intervals)

I don't know if adapting a U.I to do such is at all possible.
Some scrolling along might be required, if for example a tariff is 15minutes based, and there is just not enough pixels in one window to display them all at once.

@naltatis naltatis added the backlog Things to do later label Mar 13, 2024
@naltatis naltatis changed the title Tariffs: octopusenergy - 30-minutes interval / U.I using initial hourly cost / no averaging - Dynamic Tariff UI: Add support for shorter time slots (< 1h) Mar 13, 2024
@naltatis naltatis self-assigned this Mar 13, 2024
@naltatis
Copy link
Member

In terms of U.I. , I would imagine that if possible, it would be fantastic to actually derive the interval duration from the API request

Yes, this sounds like a good compromise where users with hourly prices (every tariff in Germany I know of) don't get unnecessary detail and users of finer tariffs (30m, 15m) get more bars depending on the API response.

This is not a trivial change. But since the underlying logic should work as expected, right now, I'd see this as a lower priority feature. But we should definitely do this.

@andig
Copy link
Member

andig commented Mar 14, 2024

Planner accepts full hours only, too.

@naltatis
Copy link
Member

Planner accepts full hours only, too.

🙄

@naltatis naltatis added enhancement New feature or request and removed ux User experience/ interface labels Mar 14, 2024
@premultiply
Copy link
Member

Perspektivisch müssten wir wohl auf die 15 Minuten Basistakt des Strommarkts kommen.

@andig andig removed the enhancement New feature or request label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Things to do later
Projects
None yet
Development

No branches or pull requests

4 participants