Skip to content

introduce weekdays to fixed_hours tariff#3252

Open
tpd-opitz wants to merge 3 commits into
openWB:masterfrom
tpd-opitz:fixed-hours-per-weekday
Open

introduce weekdays to fixed_hours tariff#3252
tpd-opitz wants to merge 3 commits into
openWB:masterfrom
tpd-opitz:fixed-hours-per-weekday

Conversation

@tpd-opitz
Copy link
Copy Markdown
Contributor

@tpd-opitz tpd-opitz commented Mar 29, 2026

https://forum.openwb.de/viewtopic.php?t=11934

  • extend config fail save
  • update overlap detection
  • update current price fetch
TODO: update UI
  • add list of weekdays a time frame should be active
  • values in this list range from 0 (monday) to 6 (sunday) eg:
                [
                    {
                        "name": "tariff1",
                        "price": 100,
                        "active_times": {
                            "dates": [("01-01", "31-12")],
                            "times": [("08:00", "12:00")],
                            "weekdays": [0, 1, 2, 3, 4],  # active on weekdays
                        },
                    },
                    {
                        "name": "tariff1",
                        "price": 200,
                        "active_times": {
                            "dates": [("01-01", "31-12")],
                            "times": [("08:00", "12:00")],
                            "weekdays": [5, 6],  # active on weekends
                        },
                    },
                ]

@tpd-opitz tpd-opitz force-pushed the fixed-hours-per-weekday branch from bd6cec9 to 0e4119e Compare March 29, 2026 11:19
@tpd-opitz tpd-opitz changed the title introduce weekdas to fixed_hours tariff introduce weekdays to fixed_hours tariff Mar 29, 2026
@tpd-opitz tpd-opitz force-pushed the fixed-hours-per-weekday branch from 0e4119e to c481cb0 Compare March 29, 2026 11:23
Comment thread packages/modules/electricity_pricing/flexible_tariffs/fixed_hours/config.py Outdated
Comment thread packages/modules/electricity_pricing/flexible_tariffs/fixed_hours/tariff.py Outdated
@tpd-opitz tpd-opitz force-pushed the fixed-hours-per-weekday branch from c481cb0 to 9bf5891 Compare April 1, 2026 18:20
@tpd-opitz tpd-opitz requested a review from LKuemmel April 1, 2026 20:47
@tpd-opitz tpd-opitz force-pushed the fixed-hours-per-weekday branch from 59dd24c to 815c526 Compare May 1, 2026 10:29
@tpd-opitz tpd-opitz force-pushed the fixed-hours-per-weekday branch 2 times, most recently from 99ab79d to 7f1470b Compare May 12, 2026 12:23
Co-authored-by: LKuemmel <76958050+LKuemmel@users.noreply.github.com>
@tpd-opitz tpd-opitz force-pushed the fixed-hours-per-weekday branch from 7f1470b to ac0ddc9 Compare May 12, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants