Skip to content

Commit 1f59290

Browse files
committed
Replace condition: with conditions:
1 parent 4bbd8ad commit 1f59290

24 files changed

+90
-90
lines changed

automations/adaptive_lighting.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
variables:
5959
light: "{{ trigger.event.data.entity_id }}"
6060
switch: "{{ trigger.event.data.switch }}"
61-
condition: "{{ 'hall' not in light and 'stairs' not in light }}"
61+
conditions: "{{ 'hall' not in light and 'stairs' not in light }}"
6262
action:
6363
- delay: "01:00:00"
6464
- condition: template
@@ -81,7 +81,7 @@
8181
event_type: adaptive_lighting.manual_control
8282
variables:
8383
light: "{{ trigger.event.data.entity_id }}"
84-
condition: "{{ 'hall' not in light and 'stairs' not in light }}"
84+
conditions: "{{ 'hall' not in light and 'stairs' not in light }}"
8585
action:
8686
- service: system_log.write
8787
data:

automations/alarm_clock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
platform: template
1414
value_template: >
1515
{{ states("sensor.time")[0:5] == states("sensor.ten_minutes_before_alarm") }}
16-
condition:
17-
condition: state
16+
conditions:
17+
conditions: state
1818
entity_id: input_boolean.alarm_clock
1919
state: "on"
2020
action:

automations/apple_watch.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
event_type: ios.action_fired
1515
event_data:
1616
actionName: Play TV
17-
condition:
18-
condition: state
17+
conditions:
18+
conditions: state
1919
entity_id: media_player.tv
2020
state: "on"
2121
action:

automations/arriving.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
entity_id: binary_sensor.openclose_front_door
1717
from: "off"
1818
to: "on"
19-
condition:
19+
conditions:
2020
- condition: state
2121
entity_id: person.marcella
2222
state: not_home

automations/bike.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
triggers:
3232
platform: time_pattern
3333
minutes: '/1'
34-
condition:
35-
condition: template
34+
conditions:
35+
conditions: template
3636
value_template: "{{ states('sensor.time') == states('input_datetime.bike_charger_off')[0:5] }}"
3737
action:
3838
service: switch.turn_off

automations/climate.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
platform: template
1515
value_template: >
1616
{{ states("sensor.time")[0:5] == states("sensor.half_hour_before_alarm") }}
17-
condition:
18-
condition: state
17+
conditions:
18+
conditions: state
1919
entity_id:
2020
- input_boolean.alarm_clock
2121
- input_boolean.automatic_temperature
@@ -29,7 +29,7 @@
2929
entity_id: proximity.home
3030
below: 6
3131
above: 1
32-
condition:
32+
conditions:
3333
- condition: state
3434
entity_id: input_boolean.automatic_temperature
3535
state: "on"
@@ -52,7 +52,7 @@
5252
triggers:
5353
platform: time
5454
at: "22:00"
55-
condition:
55+
conditions:
5656
- condition: state
5757
entity_id: input_boolean.automatic_temperature
5858
state: "on"
@@ -98,7 +98,7 @@
9898
entity_id: binary_sensor.openclose_bedroom
9999
to: "on"
100100
for: "00:05:00"
101-
condition: "{{ state_attr('climate.thermostat', 'temperature') >= 18 }}"
101+
conditions: "{{ state_attr('climate.thermostat', 'temperature') >= 18 }}"
102102
action:
103103
- repeat:
104104
while:
@@ -143,8 +143,8 @@
143143
- platform: state
144144
entity_id: binary_sensor.activity_in_guest_room
145145
to: "off"
146-
condition:
147-
condition: state
146+
conditions:
147+
conditions: state
148148
entity_id: binary_sensor.activity_in_guest_room
149149
state: "off"
150150
action:

automations/control_switches.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@
358358
entity_id: all
359359
360360
- conditions: # off -> half
361-
condition: state
361+
conditions: state
362362
entity_id: input_select.sleep_mode
363363
state: "off"
364364
sequence:
@@ -374,7 +374,7 @@
374374
option: half
375375

376376
- conditions: # half -> total
377-
condition: state
377+
conditions: state
378378
entity_id: input_select.sleep_mode
379379
state: half
380380
sequence:
@@ -385,7 +385,7 @@
385385
option: total
386386

387387
- conditions: # on total, just turn lights off
388-
condition: state
388+
conditions: state
389389
entity_id: input_select.sleep_mode
390390
state: total
391391
sequence:

automations/cube.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
id: mi_magic_cube
1919
variables:
2020
event: "{{ trigger.event.data.event }}"
21-
condition: "{{ (event | string)[1:-1] == '00' }}"
21+
conditions: "{{ (event | string)[1:-1] == '00' }}"
2222
action:
2323
choose:
2424
# Change cube mode by shifting on one side, or rotating from one side to another side
@@ -79,11 +79,11 @@
7979
id: mi_magic_cube
8080
variables:
8181
event: "{{ trigger.event.data.event }}"
82-
condition: "{{ (event | string)[1:-1] != '00' or event < 0 }}"
82+
conditions: "{{ (event | string)[1:-1] != '00' or event < 0 }}"
8383
action:
8484
choose:
8585
- conditions: # Change hue of living room lights
86-
condition: state
86+
conditions: state
8787
entity_id: input_select.cube_mode
8888
state: "Hue"
8989
sequence:
@@ -100,7 +100,7 @@
100100
- "{{ hue_sat[1] }}"
101101

102102
- conditions: # Change brightness of living room lights
103-
condition: state
103+
conditions: state
104104
entity_id: input_select.cube_mode
105105
state: "Brightness"
106106
sequence:
@@ -114,7 +114,7 @@
114114
{{ new_brightness|int(0) }}
115115
116116
- conditions: # Change speaker volume
117-
condition: state
117+
conditions: state
118118
entity_id: input_select.cube_mode
119119
state: "Volume"
120120
sequence:

automations/frontend.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
at: "20:00"
1515
- platform: sun
1616
event: sunset
17-
condition: "{{ is_state('input_boolean.dark_mode', 'off') }}"
17+
conditions: "{{ is_state('input_boolean.dark_mode', 'off') }}"
1818
action:
1919
entity_id: input_boolean.dark_mode
2020
service: input_boolean.turn_on
@@ -25,7 +25,7 @@
2525
at: "06:00"
2626
- platform: sun
2727
event: sunrise
28-
condition: "{{ is_state('input_boolean.dark_mode', 'on') }}"
28+
conditions: "{{ is_state('input_boolean.dark_mode', 'on') }}"
2929
action:
3030
entity_id: input_boolean.dark_mode
3131
service: input_boolean.turn_off

automations/leaving.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
for: "00:01:00"
2020
- platform: time_pattern
2121
hours: "/1"
22-
condition:
22+
conditions:
2323
- condition: state
2424
entity_id:
2525
- binary_sensor.no_one_home
@@ -46,7 +46,7 @@
4646
- platform: state
4747
entity_id: person.marcella
4848
from: "home"
49-
condition:
49+
conditions:
5050
- condition: state
5151
entity_id:
5252
- binary_sensor.no_one_home

0 commit comments

Comments
 (0)