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
# 0003 - Move to calendar entities for Octoplus events
2
+
3
+
## Status
4
+
Accepted
5
+
6
+
## Context
7
+
8
+
Currently binary sensors are provided to indicate when a saving or free electricity session is active for the current account. This also provides attributes for current and next start/end times.
9
+
10
+
Since the introduction of the saving session binary sensor, calendar entities have received more love within Home Assistant and become the preferred way of showing events. These are better supports in UI automations as you can offset calendar events easily (e.g. reminder 10 minutes before) without having to do template gymnastics. The calendar view of Home Assistant is also used by house hold members who are not as involved as other members in things like wall tablets. A few users move the data from the sensor data into a local calendar to produce this.
11
+
12
+
This request has been made on a few occasions, below are some samples
With more people coming on board to Home Assistant who don't necessarily come from a technological background, the automation UI becoming the preferred way of creating automations and the calendar entity getting more love, it has been decided to convert the saving session and free electricity sessions into calendar entities.
20
+
21
+
The old sensors will continue to be available until **May 2026** when they will be removed, to ease with the transition.
22
+
23
+
## Consequences
24
+
25
+
### Positive
26
+
- Automations around sessions will be easier via the calendar trigger
27
+
- Past and present sessions will be easily viewable in the Home Assistant Calendar view
28
+
- Standard approach for people used to calendar entities.
29
+
30
+
### Negative
31
+
- Users using effected entities will need to update all references
32
+
- Some short-term disruption may occur as users adapt to the new entity behaviour.
33
+
- Event duration (e.g. 60 minutes) will require templating still
Binary sensor to indicate if a saving session that the account has joined is active.
@@ -35,6 +39,20 @@ Binary sensor to indicate if a saving session that the account has joined is act
35
39
36
40
You can use the [data_last_retrieved sensor](./diagnostics.md#saving-sessions-data-last-retrieved) to determine when the underlying data was last retrieved from the OE servers.
Calendar sensor to record saving sessions. Will be `on` when a saving session that the account has joined is active. Standard calendar attributes will indicate the current/next saving session.
47
+
48
+
!!! info
49
+
50
+
You can use the [data_last_retrieved sensor](./diagnostics.md#saving-sessions-data-last-retrieved) to determine when the underlying data was last retrieved from the OE servers.
51
+
52
+
!!! note
53
+
54
+
The events are supplied by OE API and does not store past events indefinitely. Past events could be removed without notice.
@@ -121,6 +139,10 @@ Each item within `baselines` consists of the following attributes
121
139
122
140
## Free Electricity Sessions
123
141
142
+
!!! warning
143
+
144
+
This sensor has been deprecated in favour of [Free Electricity Sessions Calendar](#free-electricity-sessions-calendar) and will be removed around **May 2026**
Binary sensor to indicate if a free electricity session is active.
@@ -140,6 +162,22 @@ Binary sensor to indicate if a free electricity session is active.
140
162
|`next_event_end`|`datetime`| The datetime the next free electricity session will end |
141
163
|`next_event_duration_in_minutes`|`float`| The duration in minutes of the next free electricity session |
142
164
165
+
!!! info
166
+
167
+
You can use the [data_last_retrieved sensor](./diagnostics.md#free-electricity-sessions-data-last-retrieved) to determine when the underlying data was last retrieved from the OE servers.
Calendar sensor to record free electricity sessions. Will be `on` when a free electricity session is active. Standard calendar attributes will indicate the current/next saving session.
174
+
175
+
!!! note
176
+
This will only be available if you have enrolled into Octoplus. Once enrolled, reload the integration to gain access to this sensor. This is only applicable if you have signed up to [free electricity sessions](https://octopus.energy/free-electricity/). This sensor uses public information supplied by https://github.com/BottlecapDave/OctopusEnergyApi.
177
+
178
+
!!! note
179
+
This is [disabled by default](../faq.md#there-are-entities-that-are-disabled-why-are-they-disabled-and-how-do-i-enable-them).
180
+
143
181
!!! info
144
182
145
183
You can use the [data_last_retrieved sensor](./diagnostics.md#free-electricity-sessions-data-last-retrieved) to determine when the underlying data was last retrieved from the OE servers.
Copy file name to clipboardExpand all lines: custom_components/octopus_energy/translations/en.json
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -411,6 +411,14 @@
411
411
"tariff_rates_empty": {
412
412
"title": "{meter_type} {tariff_code} rates are empty for {account_id} ({mprn_mpan}/{serial_number})",
413
413
"description": "One of your meters ({mprn_mpan}/{serial_number}) is associated with tariff \"{tariff_code}\" for product \"{product_code}\", but no longer seems to be returning new rates. Please click \"Learn More\" with details on how to rectify this."
"description": "The saving session binary sensor has been deprecated in favour of using calendar entities. This will allow for better integration with automations and the calendar view. Please click \"Learn More\" for more information on this change."
"description": "The free electricity session binary sensor has been deprecated in favour of using calendar entities. This will allow for better integration with automations and the calendar view. Please click \"Learn More\" for more information on this change."
0 commit comments