Skip to content

Commit 2279d32

Browse files
authored
services.md: Fix YAML indending for Refresh intelligent dispatches
1 parent 46566a9 commit 2279d32

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

_docs/services.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -302,20 +302,20 @@ The below example is how you might refresh the dispatches when you car is plugge
302302
mode: single
303303
alias: Refresh intelligent dispatches
304304
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"
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
311311
conditions:
312-
- condition: state
313-
entity_id: binary_sensor.car_is_plugged_in
314-
state: 'on'
312+
- condition: state
313+
entity_id: binary_sensor.car_is_plugged_in
314+
state: on
315315
actions:
316-
- action: octopus_energy.refresh_intelligent_dispatches
317-
target:
318-
entity_id: binary_sensor.octopus_energy_{{ACCOUNT_ID}}_intelligent_dispatching
316+
- action: octopus_energy.refresh_intelligent_dispatches
317+
target:
318+
entity_id: binary_sensor.octopus_energy_{{ACCOUNT_ID}}_intelligent_dispatching
319319
```
320320

321321
## Miscellaneous
@@ -363,4 +363,4 @@ This automation adds weightings based on the national grids carbon intensity, as
363363
{% set ns = namespace(list = []) %} {%- for a in forecast -%}
364364
{%- set ns.list = ns.list + [{ "start": a.from.strftime('%Y-%m-%dT%H:%M:%SZ'), "end": a.to.strftime('%Y-%m-%dT%H:%M:%SZ'), "weighting": a.intensity_forecast | float }] -%}
365365
{%- endfor -%} {{ ns.list }}
366-
```
366+
```

0 commit comments

Comments
 (0)