Skip to content

Commit

Permalink
feat: Increased intelligent refresh rate to 3 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
BottlecapDave committed Oct 14, 2024
1 parent c4df793 commit 4c5b669
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Based on a request from [Octopus Energy](https://forum.octopus.energy/t/pending-
| Area | Refresh rate (in minutes) | Justification |
|-|-|-|
| Account | 60 | This is mainly used to get the active meters and associated tariffs, which shouldn't change often so no need to poll often. |
| Intelligent tariff based sensors | 5 | Trying to balance refreshing settings and new dispatch information without overloading the API |
| Intelligent tariff based sensors | 3 | Trying to balance refreshing settings and new dispatch information without overloading the API |
| Rate information | 15 | This is what drives most people's automations, but doesn't change that frequently. We can afford a bit of lag for API stability. |
| Current consumption data | Configurable (minimum 1) | This is most useful for a smart home to be as up-to-date as possible, but is also rate limited to 100 requests total per hour. 1 minute is enough for most people, but might need to be increased for those with multiple meters (e.g. gas and electricity) |
| Previous consumption data | 30 | This is usually refreshed once a day at various times throughout the day. We want to be up-to-date as soon as possible, without swamping the API. |
Expand Down
2 changes: 1 addition & 1 deletion custom_components/octopus_energy/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
INTEGRATION_VERSION = "13.0.0-beta.2"

REFRESH_RATE_IN_MINUTES_ACCOUNT = 60
REFRESH_RATE_IN_MINUTES_INTELLIGENT = 5
REFRESH_RATE_IN_MINUTES_INTELLIGENT = 3
REFRESH_RATE_IN_MINUTES_RATES = 15
REFRESH_RATE_IN_MINUTES_PREVIOUS_CONSUMPTION = 30
REFRESH_RATE_IN_MINUTES_STANDING_CHARGE = 60
Expand Down

0 comments on commit 4c5b669

Please sign in to comment.