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
blueprint: added blueprint for manual intelligent dispatch refreshes. This is the recommended way of achieving this functionality to ensure all users are not refreshing their data at the same time (1 .5 hours dev time)
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/services.md
+1-27Lines changed: 1 addition & 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
0 commit comments