Skip to content

Commit 1598d67

Browse files
committed
chore: Increased fan club discount update frequency
1 parent aa4f83f commit 1598d67

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

_docs/faq.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Based on a request from [Octopus Energy](https://forum.octopus.energy/t/pending-
1818
| Greenness Forecast | 180 | Doesn't change frequently |
1919
| Free electricity sessions | 90 | Data is provided by my own [private API](https://github.com/BottlecapDave/OctopusEnergyApi) and there is usually at least half a day notice before the sessions which is why this is refreshed slightly less than saving sessions. |
2020
| Heat Pump state | 1 | Data is updated frequently and doesn't seem to cause any issues around rate limits. This might change in the future. |
21+
| Fan Club Discounts | 15 | As forecasts change frequently, trying to balance between updates and not overloading the API. |
2122

2223
If data cannot be refreshed for any reason (e.g. no internet or APIs are down), then the integration will attempt to retrieve data as soon as possible, slowly waiting longer between each attempt, to a maximum of 30 minutes between each attempt. Below is a rough example assuming the first (failed) scheduled refresh was at `10:35`.
2324

custom_components/octopus_energy/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
REFRESH_RATE_IN_MINUTES_GREENNESS_FORECAST = 180
1919
REFRESH_RATE_IN_MINUTES_HOME_PRO_CONSUMPTION = 0.17
2020
REFRESH_RATE_IN_MINUTES_HEAT_PUMP = 1
21-
REFRESH_RATE_IN_MINUTES_FAN_CLUB_DISCOUNTS = 30
21+
REFRESH_RATE_IN_MINUTES_FAN_CLUB_DISCOUNTS = 15
2222

2323
CONFIG_VERSION = 5
2424

0 commit comments

Comments
 (0)