Skip to content

Commit a087a6e

Browse files
committed
Rename service to action
1 parent a5279e3 commit a087a6e

8 files changed

+47
-47
lines changed

automations/cs_heating_mode_switch.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ action:
1717
- condition: template
1818
value_template: '{{ trigger.from_state.state == "V provozu" }}'
1919
then:
20-
- service: scene.create
20+
- action: scene.create
2121
data:
2222
scene_id: stav_vytapeni_v_provozu
2323
snapshot_entities:
@@ -28,7 +28,7 @@ action:
2828
- switch.cirkulace_topeni
2929
# TODO zdroj tepla
3030
- water_heater.tepelne_cerpadlo
31-
- service: scene.create
31+
- action: scene.create
3232
data:
3333
scene_id: stav_planovace_vytapeni_v_provozu
3434
snapshot_entities:
@@ -41,13 +41,13 @@ action:
4141
- condition: template
4242
value_template: '{{ trigger.to_state.state == "V provozu" and trigger.from_state.state in ("Útlum", "Boost") }}'
4343
then:
44-
- service: scene.turn_on
44+
- action: scene.turn_on
4545
data: {}
4646
target:
4747
entity_id: scene.stav_vytapeni_v_provozu
4848
- delay: 1
4949
# plánovač je aplikován jako druhý, aby přepsal předchozí nastavení
50-
- service: scene.turn_on
50+
- action: scene.turn_on
5151
data: {}
5252
target:
5353
entity_id: scene.stav_planovace_vytapeni_v_provozu
@@ -59,7 +59,7 @@ action:
5959
entity_id: input_select.rezim_vytapeni
6060
state: Útlum
6161
sequence:
62-
- service: switch.turn_off
62+
- action: switch.turn_off
6363
data: {}
6464
target:
6565
entity_id:
@@ -68,14 +68,14 @@ action:
6868
- switch.schedule_loznice
6969
# TODO oběhová čerpadla
7070
- switch.cirkulace_topeni
71-
- service: water_heater.set_operation_mode
71+
- action: water_heater.set_operation_mode
7272
data:
7373
operation_mode: "off"
7474
target:
7575
entity_id:
7676
# TODO zdroj tepla
7777
- water_heater.tepelne_cerpadlo
78-
- service: climate.set_temperature
78+
- action: climate.set_temperature
7979
data:
8080
temperature: 15
8181
target:
@@ -90,14 +90,14 @@ action:
9090
entity_id: input_select.rezim_vytapeni
9191
state: Boost
9292
sequence:
93-
- service: switch.turn_off
93+
- action: switch.turn_off
9494
data: {}
9595
target:
9696
entity_id:
9797
# TODO vypsat všechny schedulery
9898
- switch.schedule_obyvak
9999
- switch.schedule_loznice
100-
- service: climate.set_temperature
100+
- action: climate.set_temperature
101101
data:
102102
temperature: 26
103103
target:
@@ -106,7 +106,7 @@ action:
106106
- climate.obyvak_trv
107107
- climate.loznice_trv
108108
- delay: 1800
109-
- service: input_select.select_option
109+
- action: input_select.select_option
110110
target:
111111
entity_id: input_select.rezim_vytapeni
112112
data:

automations/zigbee2mqtt_flux.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ condition:
1515
{{ state_attr('switch.adaptive_lighting_flux', 'color_temp_mired') is not
1616
none }}
1717
action:
18-
- service: mqtt.publish
18+
- action: mqtt.publish
1919
data:
2020
topic: zigbee2mqtt/Všechna světla/set
2121
payload_template: >

blueprints/danfoss_trv_sync.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ action:
2323
- condition: template
2424
value_template: "{{ trigger.entity_id != repeat.item }}"
2525
then:
26-
- service: climate.set_temperature
26+
- action: climate.set_temperature
2727
data:
2828
temperature: "{{ state_attr(trigger.entity_id, 'temperature') }}"
2929
target:

blueprints/hi_lo_light_switch.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ action:
6464
entity_id: !input light
6565
state: "off"
6666
sequence:
67-
- service: light.turn_on
67+
- action: light.turn_on
6868
entity_id: !input light
6969
data:
7070
brightness: !input brightness_lo
@@ -83,14 +83,14 @@ action:
8383
from: "on"
8484
timeout: !input hold_threshold
8585
continue_on_timeout: false
86-
- service: light.turn_off
86+
- action: light.turn_off
8787
entity_id: !input light
8888

8989
- conditions:
9090
- condition: template
9191
value_template: "{{ trigger.id == 'hold' }}"
9292
sequence:
93-
- service: light.turn_on
93+
- action: light.turn_on
9494
entity_id: !input light
9595
data:
9696
brightness: !input brightness_hi

blueprints/single_button_dim_switch.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ action:
122122
condition: template
123123
value_template: "{{ (state_attr(light, 'brightness') or 0) > brightness_step_pct_positive }}"
124124
then:
125-
- service: light.turn_on
125+
- action: light.turn_on
126126
entity_id: !input light
127127
data:
128128
transition: !input transition_step_length
129129
brightness_step_pct: "{{ brightness_step_pct_negative }}"
130130
else:
131-
- service: light.turn_off
131+
- action: light.turn_off
132132
entity_id: !input light
133133
data:
134134
transition: !input transition_step_length
@@ -151,13 +151,13 @@ action:
151151
condition: template
152152
value_template: "{{ (state_attr(light, 'brightness') or 0) + brightness_step_pct_positive < 255 }}"
153153
then:
154-
- service: light.turn_on
154+
- action: light.turn_on
155155
entity_id: !input light
156156
data:
157157
transition: !input transition_step_length
158158
brightness_step_pct: "{{ brightness_step_pct_positive }}"
159159
else:
160-
- service: light.turn_on
160+
- action: light.turn_on
161161
entity_id: !input light
162162
data:
163163
transition: !input transition_step_length
@@ -166,7 +166,7 @@ action:
166166

167167
# when trigger came (button has been released within timeout)
168168
default:
169-
- service: light.toggle
169+
- action: light.toggle
170170
entity_id: !input light
171171
data:
172172
transition: !input transition_step_length

blueprints/zigbee2mqtt_danfoss_trv_manual_sync.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ action:
2525
- condition: template
2626
value_template: "{{ trigger.entity_id != repeat.item }}"
2727
then:
28-
- service: climate.set_temperature
28+
- action: climate.set_temperature
2929
data:
3030
temperature: "{{ state_attr(trigger.entity_id, 'temperature') }}"
3131
target:

scripts/cover_set_position_and_tilt.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ sequence:
1212
- condition: template
1313
value_template: "{{ lift == 0 }}"
1414
sequence:
15-
- service: cover.close_cover
15+
- action: cover.close_cover
1616
data_template:
1717
entity_id: "{{ cover }}"
1818
- conditions:
1919
- condition: template
2020
value_template: "{{ lift == 100 }}"
2121
sequence:
22-
- service: cover.open_cover
22+
- action: cover.open_cover
2323
data_template:
2424
entity_id: "{{ cover }}"
2525
default:
26-
- service: cover.set_cover_position
26+
- action: cover.set_cover_position
2727
data_template:
2828
entity_id: "{{ cover }}"
2929
position: "{{ lift }}"
@@ -43,19 +43,19 @@ sequence:
4343
{{ state_attr(cover, 'current_tilt_position') == 0 or tilt in
4444
(0, 100) }}
4545
then:
46-
- service: cover.set_cover_tilt_position
46+
- action: cover.set_cover_tilt_position
4747
data_template:
4848
entity_id: "{{ cover }}"
4949
tilt_position: "{{ tilt }}"
5050
else:
51-
- service: cover.set_cover_tilt_position
51+
- action: cover.set_cover_tilt_position
5252
data_template:
5353
entity_id: "{{ cover }}"
5454
tilt_position: 0
5555
- wait_template: "{{ state_attr(cover, 'current_tilt_position') == 0 }}"
5656
timeout: 5
5757
continue_on_timeout: true
58-
- service: cover.set_cover_tilt_position
58+
- action: cover.set_cover_tilt_position
5959
data_template:
6060
entity_id: "{{ cover }}"
6161
tilt_position: "{{ tilt }}"

0 commit comments

Comments
 (0)