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
issue-comment: 'This issue has been automatically locked due to inactivity for more than 30 days. This is to reduce noise for original parties. Please open a new issue for related bugs.'
This blueprint will fire the [intelligent dispatches service](./services.md#octopus_energyrefresh_intelligent_dispatches) either when a sensor from another integration determines the car has been plugged in (e.g. the plug status from the [MyEnergi integration](https://github.com/CJNE/ha-myenergi)) or when the data is stale and overdue a refresh (in case the dispatch information has changed).
80
+
81
+
!!! warning
82
+
83
+
This blueprint requires you to be on an intelligent tariff and a way to determine that your car is plugged in from another integration.
description: Handle the refresh of intelligent dispatches automatically, while refreshing when an external car sensor is plugged in. When automatic, will use normal backoff methods in event of failure.
description: "The sensor that determines when intelligent dispatches data was last retrieved (e.g. sensor.octopus_energy_{{ACCOUNT_ID}}_intelligent_dispatches_data_last_retrieved). More information can be found at https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/entities/diagnostics/#intelligent-dispatches-data-last-retrieved"
11
+
selector:
12
+
entity:
13
+
filter:
14
+
domain: sensor
15
+
integration: octopus_energy
16
+
17
+
intelligent_dispatches_sensor:
18
+
name: Intelligent dispatches
19
+
description: "The sensor that determines if intelligent dispatches is active (e.g. binary_sensor.octopus_energy_{{ACCOUNT_ID}}_intelligent_dispatching)"
20
+
selector:
21
+
entity:
22
+
filter:
23
+
domain: binary_sensor
24
+
integration: octopus_energy
25
+
26
+
car_plugged_in_sensor:
27
+
name: Car plugged in sensor (external)
28
+
description: "The external sensor that determines if the car has been plugged in (e.g. binary_sensor.car_is_plugged_in). This sensor is provided by an integration outside of the Octopus Energy integration."
29
+
selector:
30
+
entity:
31
+
filter:
32
+
domain:
33
+
- binary_sensor
34
+
- sensor
35
+
- input_boolean
36
+
37
+
car_plugged_in_sensor_state:
38
+
name: Car plugged in sensor expected state
39
+
description: "The expected state of the external sensor that determines if the car has been plugged in (e.g. 'on')."
40
+
selector:
41
+
text:
42
+
43
+
actions:
44
+
name: Actions
45
+
description: Additional actions to run after refresh
Copy file name to clipboardExpand all lines: _docs/entities/electricity.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,8 @@ If you are wishing to use these sensors with the Energy Dashboard, then you can
175
175
176
176
The total consumption reported by the meter (not other devices e.g. Home Mini) for the previous available full day. If for example data is available up to `01:00` of `2024-09-02`, then this sensor will report the cost between `2024-09-01T00:00:00Z` and `2024-09-02T00:00:00Z`.
177
177
178
+
Due to limitation of HA entities, the data will be updated as a single record, which means the history of the sensor will not be broken down further than once a day. If you want the cost broken down into hourly chunks, you can use the statistic entities used for the [energy dashboard](../setup/energy_dashboard.md#previous-day-consumption).
179
+
178
180
!!! info
179
181
180
182
This retrieves the data reported directly by the meter which is used to calculate your bill. If you have an Octopus Home Mini (or similar), then data reported by this device will not be exposed in this sensor. This is to avoid confusion when comparing the data against your bill and to provide consistency between users with and without an Octopus Home Mini.
@@ -259,7 +261,9 @@ The total consumption reported by the meter for the previous available full day
The total cost for the previous available full day, including the standing charge. If for example data is available up to `01:00` of `2024-09-02`, then this sensor will report the cost between `2024-09-01T00:00:00Z` and `2024-09-02T00:00:00Z`.
264
+
The total cost for the previous available full day, including the standing charge. If for example data is available up to `01:00` of `2024-09-02`, then this sensor will report the cost between `2024-09-01T00:00:00Z` and `2024-09-02T00:00:00Z`.
265
+
266
+
Due to limitation of HA entities, the data will be updated as a single record, which means the history of the sensor will not be broken down further than once a day. If you want the cost broken down into hourly chunks, you can use the statistic entities used for the [energy dashboard](../setup/energy_dashboard.md#previous-day-consumption).
Copy file name to clipboardExpand all lines: _docs/entities/gas.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,6 +163,8 @@ The total consumption reported by the meter for the previous available full day
163
163
164
164
If your meter reports in kwh, then this will be an accurate value reported by Octopus, otherwise it will be a calculated/estimated value.
165
165
166
+
Due to limitation of HA entities, the data will be updated as a single record, which means the history of the sensor will not be broken down further than once a day. If you want the cost broken down into hourly chunks, you can use the statistic entities used for the [energy dashboard](../setup/energy_dashboard.md#previous-day-consumption).
167
+
166
168
!!! info
167
169
168
170
This retrieves the data reported directly by the meter which is used to calculate your bill. If you have an Octopus Home Mini (or similar), then data reported by this device will not be exposed in this sensor. This is to avoid confusion when comparing the data against your bill and to provide consistency between users with and without an Octopus Home Mini.
@@ -197,7 +199,9 @@ Each charge item has the following attributes
The total cost for the previous available full day, including the standing charge.
202
+
The total cost for the previous available full day, including the standing charge. If for example data is available up to `01:00` of `2024-09-02`, then this sensor will report the cost between `2024-09-01T00:00:00Z` and `2024-09-02T00:00:00Z`.
203
+
204
+
Due to limitation of HA entities, the data will be updated as a single record, which means the history of the sensor will not be broken down further than once a day. If you want the cost broken down into hourly chunks, you can use the statistic entities used for the [energy dashboard](../setup/energy_dashboard.md#previous-day-consumption).
Copy file name to clipboardExpand all lines: _docs/entities/intelligent.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ This sensor is used to determine if you're currently in a planned dispatch perio
30
30
|-----------|------|-------------|
31
31
|`planned_dispatches`|`array`| An array of the dispatches that are currently planned by Octopus Energy. |
32
32
|`completed_dispatches`|`array`| An array of the dispatches that have been completed by Octopus Energy. This will only store up to the last 3 days worth of completed dispatches. |
33
+
|`started_dispatches`|`array`| An array of the dispatches that have been planned by Octopus Energy and upon API refresh are still planned when the current 30 minute period started and is not in a boosting state. A planned dispatch will be added one 30 minute period at a time. This will only store up to the last 3 days worth of started dispatches. This is used to determine historic off peak rates. For example if you have a planned dispatch of `2025-04-01T10:00:00`-`2025-04-01T11:00:00`, at `2025-04-01T10:01:00` if the planned dispatch is still available the period of `2025-04-01T10:00:00`-`2025-04-01T10:30:00` will be added. |
33
34
|`provider`|`string`| The provider of the intelligent features |
34
35
|`vehicle_battery_size_in_kwh`|`float`| The size of the target vehicle battery in kWh. |
35
36
|`charge_point_power_in_kw`|`float`| The power of the charge point battery in kW. |
@@ -45,9 +46,16 @@ Each item in `planned_dispatch` or `completed_dispatches` have the following att
45
46
|`start`|`datetime`| The start date/time of the dispatch |
46
47
|`end`|`datetime`| The end date/time of the dispatch |
47
48
|`charge_in_kwh`|`float`| The amount to be charged within the dispatch period. |
48
-
|`source`|`string`| Determines what has caused the dispatch to be generated. Will be `smart-charge` or `bump-charge`. |
49
+
|`source`|`string`| Determines what has caused the dispatch to be generated. Will be `smart-charge`, `bump-charge` or None. |
49
50
|`location`|`string`| The location of the smart charge |
50
51
52
+
Each item in `started_dispatch` have the following attributes
53
+
54
+
| Attribute | Type | Description |
55
+
|-----------|------|-------------|
56
+
|`start`|`datetime`| The start date/time of the dispatch |
57
+
|`end`|`datetime`| The end date/time of the dispatch |
58
+
51
59
!!! info
52
60
53
61
You can use the [data_last_retrieved sensor](./diagnostics.md#intelligent-dispatches-data-last-retrieved) to determine when the underlying data was last retrieved from the OE servers.
Copy file name to clipboardExpand all lines: _docs/faq.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,6 +176,12 @@ The first thing to do is make sure the correct tariff has been picked up. This c
176
176
177
177
If the correct tariff is present, it might be that you're on a tariff that has different rates depending on if you pay by direct debit or not. This can be configured via your [account configuration](./setup/account.md#favour-direct-debit-rates).
178
178
179
+
## How are costs sensors calculated?
180
+
181
+
Cost sensors are calculated by multiplying the consumption by the rate for each half hour block, which are then all added together.
182
+
183
+
Each half hour block has it's consumption rounded to the nearest 0.01kwh before multiplying by the rate, which is rounded to the nearest penny. The rounding method used is rounding half to even, where numbers ending in 5 are rounded up or down, towards the nearest even hundredth decimal place. As a result, 0.015 would be rounded up to 0.02, while 0.025 is rounded down to 0.02. This is based on [Octopus Energy API documentation](https://developer.octopus.energy/rest/guides/endpoints)
184
+
179
185
## Do you support older versions of the integration?
180
186
181
187
Due to time constraints, I will only ever support the latest version of the integration. If you have an issue with an older version of the integration, my initial answer will always be to update to the latest version. This might be different to what HACS is reporting if you are not on the minimum supported Home Assistant version (which is highlighted in each release's changelog).
If you receive this repair notice it means that no active tariff was found for one or more of your meters. There are a few reasons why this might be the case.
4
+
5
+
1. You are in the middle of switching tariffs. There can sometimes be a gap in your tariff information coming through when your existing tariff ends and your new tariff begins.
6
+
2. You are new to OE and your tariff hasn't begun yet. Once your tariff starts, the integration will pick it up and should start working.
7
+
3. There is a configuration issue with your account. In this scenario, you'll need to contact Octopus Energy support to get this rectified.
8
+
9
+
All of the above scenarios can be confirmed within your [diagnostic data](../faq.md#ive-been-asked-for-my-meter-information-in-a-bug-request-how-do-i-obtain-this). This will contain your account data including your meters. Under each of your meters, you'll have a list of tariff agreements. For each meter, you should have an agreement with a start date in the past and an end date either in the future or with no end date.
Copy file name to clipboardExpand all lines: _docs/services.md
+9-27Lines changed: 9 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -292,33 +292,7 @@ Refreshes intelligent dispatches for a given account.
292
292
293
293
#### Automation Example
294
294
295
-
The below example is how you might refresh the dispatches when you car is plugged in, or every 3 minutes when your car is plugged in. Please note that the entity `binary_sensor.car_is_plugged_in` is not provided by the integration and should be replaced by an external source (e.g. the plug status from the [MyEnergi integration](https://github.com/CJNE/ha-myenergi) or a manual input switch that you switch on manually when you plug in your car).
296
-
297
-
!!! warn
298
-
299
-
There is a chance that the automation may fail due to the service call limit when the car is plugged in
300
-
301
-
```yaml
302
-
mode: single
303
-
alias: Refresh intelligent dispatches
304
-
triggers:
305
-
- trigger: state
306
-
entity_id: binary_sensor.car_is_plugged_in
307
-
to: on
308
-
# Refresh every 3 minutes in case the schedule has changed
309
-
- trigger: time_pattern
310
-
minutes: /3
311
-
conditions:
312
-
- condition: state
313
-
entity_id: binary_sensor.car_is_plugged_in
314
-
state: on
315
-
actions:
316
-
# Wait 30 seconds to give OE a chance to update the dispatches
For an automation example, please refer to the available [blueprint](./blueprints.md#manual-intelligent-dispatch-refreshes).
322
296
323
297
## Miscellaneous
324
298
@@ -335,6 +309,14 @@ This service is only available for the following sensors
335
309
- `sensor.octopus_energy_electricity_{{METER_SERIAL_NUMBER}}_{{MPAN_NUMBER}}_previous_accumulative_consumption`(this will populate both consumption and cost)
336
310
- `sensor.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_previous_accumulative_consumption_m3`(this will populate both consumption and cost for both m3 and kwh)
337
311
312
+
!!! information
313
+
314
+
Due to limitations with Home Assistant entities, this service will only refresh data for the associated statistic ids used for the recommended approach in the [energy dashboard](./setup/energy_dashboard.md#previous-day-consumption). This will not update the history of the entities themselves.
315
+
316
+
!!! warn
317
+
318
+
If you are on intelligent, the cost data will not be correct for charges outside of the normal off peak times. This is because this data isn't available.
319
+
338
320
### octopus_energy.register_rate_weightings
339
321
340
322
Allows you to configure weightings against rates at given times using factors external to the integration. These are applied when calculating [target rates](./setup/target_rate.md#external-rate-weightings) or [rolling target rates](./setup/rolling_target_rate.md#external-rate-weightings).
0 commit comments