File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -302,20 +302,20 @@ The below example is how you might refresh the dispatches when you car is plugge
302302mode: single
303303alias: Refresh intelligent dispatches
304304triggers:
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
311311conditions:
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
315315actions:
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+ ` ` `
You can’t perform that action at this time.
0 commit comments