Skip to content

Commit ebc9060

Browse files
emontnemeryMartinHjelmare
authored andcommitted
Improve trigger descriptions (home-assistant#157643)
Co-authored-by: Martin Hjelmare <[email protected]>
1 parent bbcc2a9 commit ebc9060

File tree

10 files changed

+62
-62
lines changed

10 files changed

+62
-62
lines changed

homeassistant/components/alarm_control_panel/strings.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -159,74 +159,74 @@
159159
"title": "Alarm control panel",
160160
"triggers": {
161161
"armed": {
162-
"description": "Triggers when an alarm is armed.",
162+
"description": "Triggers after one or more alarms become armed, regardless of the mode.",
163163
"fields": {
164164
"behavior": {
165165
"description": "[%key:component::alarm_control_panel::common::trigger_behavior_description%]",
166166
"name": "[%key:component::alarm_control_panel::common::trigger_behavior_name%]"
167167
}
168168
},
169-
"name": "When an alarm is armed"
169+
"name": "Alarm armed"
170170
},
171171
"armed_away": {
172-
"description": "Triggers when an alarm is armed away.",
172+
"description": "Triggers after one or more alarms become armed in away mode.",
173173
"fields": {
174174
"behavior": {
175175
"description": "[%key:component::alarm_control_panel::common::trigger_behavior_description%]",
176176
"name": "[%key:component::alarm_control_panel::common::trigger_behavior_name%]"
177177
}
178178
},
179-
"name": "When an alarm is armed away"
179+
"name": "Alarm armed away"
180180
},
181181
"armed_home": {
182-
"description": "Triggers when an alarm is armed home.",
182+
"description": "Triggers after one or more alarms become armed in home mode.",
183183
"fields": {
184184
"behavior": {
185185
"description": "[%key:component::alarm_control_panel::common::trigger_behavior_description%]",
186186
"name": "[%key:component::alarm_control_panel::common::trigger_behavior_name%]"
187187
}
188188
},
189-
"name": "When an alarm is armed home"
189+
"name": "Alarm armed home"
190190
},
191191
"armed_night": {
192-
"description": "Triggers when an alarm is armed night.",
192+
"description": "Triggers after one or more alarms become armed in night mode.",
193193
"fields": {
194194
"behavior": {
195195
"description": "[%key:component::alarm_control_panel::common::trigger_behavior_description%]",
196196
"name": "[%key:component::alarm_control_panel::common::trigger_behavior_name%]"
197197
}
198198
},
199-
"name": "When an alarm is armed night"
199+
"name": "Alarm armed night"
200200
},
201201
"armed_vacation": {
202-
"description": "Triggers when an alarm is armed vacation.",
202+
"description": "Triggers after one or more alarms become armed in vacation mode.",
203203
"fields": {
204204
"behavior": {
205205
"description": "[%key:component::alarm_control_panel::common::trigger_behavior_description%]",
206206
"name": "[%key:component::alarm_control_panel::common::trigger_behavior_name%]"
207207
}
208208
},
209-
"name": "When an alarm is armed vacation"
209+
"name": "Alarm armed vacation"
210210
},
211211
"disarmed": {
212-
"description": "Triggers when an alarm is disarmed.",
212+
"description": "Triggers after one or more alarms become disarmed.",
213213
"fields": {
214214
"behavior": {
215215
"description": "[%key:component::alarm_control_panel::common::trigger_behavior_description%]",
216216
"name": "[%key:component::alarm_control_panel::common::trigger_behavior_name%]"
217217
}
218218
},
219-
"name": "When an alarm is disarmed"
219+
"name": "Alarm disarmed"
220220
},
221221
"triggered": {
222-
"description": "Triggers when an alarm is triggered.",
222+
"description": "Triggers after one or more alarms become triggered.",
223223
"fields": {
224224
"behavior": {
225225
"description": "[%key:component::alarm_control_panel::common::trigger_behavior_description%]",
226226
"name": "[%key:component::alarm_control_panel::common::trigger_behavior_name%]"
227227
}
228228
},
229-
"name": "When an alarm is triggered"
229+
"name": "Alarm triggered"
230230
}
231231
}
232232
}

homeassistant/components/assist_satellite/strings.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,44 +112,44 @@
112112
"title": "Assist satellite",
113113
"triggers": {
114114
"idle": {
115-
"description": "Triggers when an Assist satellite becomes idle.",
115+
"description": "Triggers after one or more voice assistant satellites become idle after having processed a command.",
116116
"fields": {
117117
"behavior": {
118118
"description": "[%key:component::assist_satellite::common::trigger_behavior_description%]",
119119
"name": "[%key:component::assist_satellite::common::trigger_behavior_name%]"
120120
}
121121
},
122-
"name": "When an Assist satellite becomes idle"
122+
"name": "Satellite became idle"
123123
},
124124
"listening": {
125-
"description": "Triggers when an Assist satellite starts listening.",
125+
"description": "Triggers after one or more voice assistant satellites start listening for a command from someone.",
126126
"fields": {
127127
"behavior": {
128128
"description": "[%key:component::assist_satellite::common::trigger_behavior_description%]",
129129
"name": "[%key:component::assist_satellite::common::trigger_behavior_name%]"
130130
}
131131
},
132-
"name": "When an Assist satellite starts listening"
132+
"name": "Satellite started listening"
133133
},
134134
"processing": {
135-
"description": "Triggers when an Assist satellite is processing.",
135+
"description": "Triggers after one or more voice assistant satellites start processing a command after having heard it.",
136136
"fields": {
137137
"behavior": {
138138
"description": "[%key:component::assist_satellite::common::trigger_behavior_description%]",
139139
"name": "[%key:component::assist_satellite::common::trigger_behavior_name%]"
140140
}
141141
},
142-
"name": "When an Assist satellite is processing"
142+
"name": "Satellite started processing"
143143
},
144144
"responding": {
145-
"description": "Triggers when an Assist satellite is responding.",
145+
"description": "Triggers after one or more voice assistant satellites start responding to a command after having processed it, or start announcing something.",
146146
"fields": {
147147
"behavior": {
148148
"description": "[%key:component::assist_satellite::common::trigger_behavior_description%]",
149149
"name": "[%key:component::assist_satellite::common::trigger_behavior_name%]"
150150
}
151151
},
152-
"name": "When an Assist satellite is responding"
152+
"name": "Satellite started responding"
153153
}
154154
}
155155
}

homeassistant/components/climate/strings.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -299,54 +299,54 @@
299299
"title": "Climate",
300300
"triggers": {
301301
"started_cooling": {
302-
"description": "Triggers when a climate started cooling.",
302+
"description": "Triggers after one or more climate-control devices start cooling.",
303303
"fields": {
304304
"behavior": {
305305
"description": "[%key:component::climate::common::trigger_behavior_description%]",
306306
"name": "[%key:component::climate::common::trigger_behavior_name%]"
307307
}
308308
},
309-
"name": "When a climate started cooling"
309+
"name": "Climate-control device started cooling"
310310
},
311311
"started_drying": {
312-
"description": "Triggers when a climate started drying.",
312+
"description": "Triggers after one or more climate-control devices start drying.",
313313
"fields": {
314314
"behavior": {
315315
"description": "[%key:component::climate::common::trigger_behavior_description%]",
316316
"name": "[%key:component::climate::common::trigger_behavior_name%]"
317317
}
318318
},
319-
"name": "When a climate started drying"
319+
"name": "Climate-control device started drying"
320320
},
321321
"started_heating": {
322-
"description": "Triggers when a climate starts to heat.",
322+
"description": "Triggers after one or more climate-control devices start heating.",
323323
"fields": {
324324
"behavior": {
325325
"description": "[%key:component::climate::common::trigger_behavior_description%]",
326326
"name": "[%key:component::climate::common::trigger_behavior_name%]"
327327
}
328328
},
329-
"name": "When a climate starts to heat"
329+
"name": "Climate-control device started heating"
330330
},
331331
"turned_off": {
332-
"description": "Triggers when a climate is turned off.",
332+
"description": "Triggers after one or more climate-control devices turn off.",
333333
"fields": {
334334
"behavior": {
335335
"description": "[%key:component::climate::common::trigger_behavior_description%]",
336336
"name": "[%key:component::climate::common::trigger_behavior_name%]"
337337
}
338338
},
339-
"name": "When a climate is turned off"
339+
"name": "Climate-control device turned off"
340340
},
341341
"turned_on": {
342-
"description": "Triggers when a climate is turned on.",
342+
"description": "Triggers after one or more climate-control devices turn on, regardless of the mode.",
343343
"fields": {
344344
"behavior": {
345345
"description": "[%key:component::climate::common::trigger_behavior_description%]",
346346
"name": "[%key:component::climate::common::trigger_behavior_name%]"
347347
}
348348
},
349-
"name": "When a climate is turned on"
349+
"name": "Climate-control device turned on"
350350
}
351351
}
352352
}

homeassistant/components/fan/strings.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,24 +166,24 @@
166166
"title": "Fan",
167167
"triggers": {
168168
"turned_off": {
169-
"description": "Triggers when a fan is turned off.",
169+
"description": "Triggers after one or more fans turn off.",
170170
"fields": {
171171
"behavior": {
172172
"description": "[%key:component::fan::common::trigger_behavior_description%]",
173173
"name": "[%key:component::fan::common::trigger_behavior_name%]"
174174
}
175175
},
176-
"name": "When a fan is turned off"
176+
"name": "Fan turned off"
177177
},
178178
"turned_on": {
179-
"description": "Triggers when a fan is turned on.",
179+
"description": "Triggers after one or more fans turn on.",
180180
"fields": {
181181
"behavior": {
182182
"description": "[%key:component::fan::common::trigger_behavior_description%]",
183183
"name": "[%key:component::fan::common::trigger_behavior_name%]"
184184
}
185185
},
186-
"name": "When a fan is turned on"
186+
"name": "Fan turned on"
187187
}
188188
}
189189
}

homeassistant/components/lawn_mower/strings.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,44 +41,44 @@
4141
"title": "Lawn mower",
4242
"triggers": {
4343
"docked": {
44-
"description": "Triggers when a lawn mower has docked.",
44+
"description": "Triggers after one or more lawn mowers return to dock.",
4545
"fields": {
4646
"behavior": {
4747
"description": "[%key:component::lawn_mower::common::trigger_behavior_description%]",
4848
"name": "[%key:component::lawn_mower::common::trigger_behavior_name%]"
4949
}
5050
},
51-
"name": "When a lawn mower has docked"
51+
"name": "Lawn mower returned to dock"
5252
},
5353
"errored": {
54-
"description": "Triggers when a lawn mower has errored.",
54+
"description": "Triggers after one or more lawn mowers encounter an error.",
5555
"fields": {
5656
"behavior": {
5757
"description": "[%key:component::lawn_mower::common::trigger_behavior_description%]",
5858
"name": "[%key:component::lawn_mower::common::trigger_behavior_name%]"
5959
}
6060
},
61-
"name": "When a lawn mower has errored"
61+
"name": "Lawn mower encountered an error"
6262
},
6363
"paused_mowing": {
64-
"description": "Triggers when a lawn mower has paused mowing.",
64+
"description": "Triggers after one or more lawn mowers pause mowing.",
6565
"fields": {
6666
"behavior": {
6767
"description": "[%key:component::lawn_mower::common::trigger_behavior_description%]",
6868
"name": "[%key:component::lawn_mower::common::trigger_behavior_name%]"
6969
}
7070
},
71-
"name": "When a lawn mower has paused mowing"
71+
"name": "Lawn mower paused mowing"
7272
},
7373
"started_mowing": {
74-
"description": "Triggers when a lawn mower has started mowing.",
74+
"description": "Triggers after one or more lawn mowers start mowing.",
7575
"fields": {
7676
"behavior": {
7777
"description": "[%key:component::lawn_mower::common::trigger_behavior_description%]",
7878
"name": "[%key:component::lawn_mower::common::trigger_behavior_name%]"
7979
}
8080
},
81-
"name": "When a lawn mower has started mowing"
81+
"name": "Lawn mower started mowing"
8282
}
8383
}
8484
}

homeassistant/components/light/strings.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,24 +510,24 @@
510510
"title": "Light",
511511
"triggers": {
512512
"turned_off": {
513-
"description": "Triggers when a light is turned off.",
513+
"description": "Triggers after one or more lights turn off.",
514514
"fields": {
515515
"behavior": {
516516
"description": "[%key:component::light::common::trigger_behavior_description%]",
517517
"name": "[%key:component::light::common::trigger_behavior_name%]"
518518
}
519519
},
520-
"name": "When a light is turned off"
520+
"name": "Light turned off"
521521
},
522522
"turned_on": {
523-
"description": "Triggers when a light is turned on.",
523+
"description": "Triggers after one or more lights turn on.",
524524
"fields": {
525525
"behavior": {
526526
"description": "[%key:component::light::common::trigger_behavior_description%]",
527527
"name": "[%key:component::light::common::trigger_behavior_name%]"
528528
}
529529
},
530-
"name": "When a light is turned on"
530+
"name": "Light turned on"
531531
}
532532
}
533533
}

homeassistant/components/media_player/strings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,14 +381,14 @@
381381
"title": "Media player",
382382
"triggers": {
383383
"stopped_playing": {
384-
"description": "Triggers when a media player stops playing.",
384+
"description": "Triggers after one or more media players stop playing media.",
385385
"fields": {
386386
"behavior": {
387387
"description": "[%key:component::media_player::common::trigger_behavior_description%]",
388388
"name": "[%key:component::media_player::common::trigger_behavior_name%]"
389389
}
390390
},
391-
"name": "When a media player stops playing"
391+
"name": "Media player stopped playing"
392392
}
393393
}
394394
}

homeassistant/components/mqtt/strings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@
15621562
},
15631563
"triggers": {
15641564
"_": {
1565-
"description": "When a specific message is received on a given MQTT topic.",
1565+
"description": "Triggers after a specific message is received on a given MQTT topic.",
15661566
"fields": {
15671567
"payload": {
15681568
"description": "The payload to trigger on.",
@@ -1573,7 +1573,7 @@
15731573
"name": "Topic"
15741574
}
15751575
},
1576-
"name": "MQTT"
1576+
"name": "MQTT message received"
15771577
}
15781578
}
15791579
}

homeassistant/components/text/strings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"title": "Text",
4646
"triggers": {
4747
"changed": {
48-
"description": "Triggers when the text changes.",
49-
"name": "When the text changes"
48+
"description": "Triggers after one or more texts change.",
49+
"name": "Text changed"
5050
}
5151
}
5252
}

0 commit comments

Comments
 (0)