-
Notifications
You must be signed in to change notification settings - Fork 7
352 lines (330 loc) · 11.5 KB
/
intents.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
language: "zh-cn"
intents:
HassTurnOn:
data:
- sentences:
- "打开(?:[|])?([^|]+)"
- "开启(?:[|])?([^|]+)"
- "turn on(?:[|])?([^|]+)"
slots:
name:
type: text
device_class:
type: list
values:
- awning
- blind
- curtain
- damper
- door
- garage
- gas
- gate
- outlet
- receiver
- shade
- shutter
- speaker
- switch
- tv
- water
- window
HassTurnOff:
data:
- sentences:
- "关闭{name}"
- "关掉{name}"
- "turn off {name}"
slots:
name:
type: text
device_class:
type: list
values:
- awning
- blind
- curtain
- damper
- door
- garage
- gas
- gate
- outlet
- receiver
- shade
- shutter
- speaker
- switch
- tv
- water
- window
MassPlayMediaAssist:
data:
- sentences:
- "在<area><play>(歌手|艺术家){artist}的(歌|音乐)"
- "在<area><play><album>{album}"
- "在<area><play><track>{track}"
- "在<area><play><playlist>{playlist}"
- "在<area><play><radio_station>{radio}"
expansion_rules:
play: "(play|播放|收听)"
track: "(track|歌曲|音乐)"
album: "(album|专辑|唱片|合集|单曲)"
playlist: "(playlist|播放列表)"
radio_station: "(radio_station|广播电台|电台|频道)"
- sentences:
- "用{name}<play>(歌手|艺术家){artist}的(歌|音乐)"
- "用{name}<play><album>{album}"
- "用{name}<play><track>{track}"
- "用{name}<play><playlist>{playlist}"
- "用{name}<play><radio_station>{radio}"
expansion_rules:
play: "(play|播放|收听)"
track: "(track|歌曲|音乐)"
album: "(album|专辑|唱片|合集|单曲)"
playlist: "(playlist|播放列表)"
radio_station: "(radio_station|广播电台|电台|频道)"
requires_context:
domain: "media_player"
- sentences:
- "用在<area>[里]的{name}<play>(歌手|艺术家){artist}的(歌|音乐)"
- "用在<area>[里]的{name}<play><album>{album}"
- "用在<area>[里]的{name}<play><track>{track}"
- "用在<area>[里]的{name}<play><playlist>{playlist}"
- "用在<area>[里]的{name}<play><radio_station>{radio}"
expansion_rules:
play: "(play|播放|收听)"
track: "(track|歌曲|音乐)"
album: "(album|专辑|唱片|合集|单曲)"
playlist: "(playlist|播放列表)"
radio_station: "(radio_station|广播电台|电台|频道)"
- sentences:
- "<play>(歌手|艺术家){artist}的(歌|音乐)"
- "<play><album>{album}"
- "<play><track>{track}"
- "<play><playlist>{playlist}"
- "<play><radio_station>{radio}"
expansion_rules:
play: "(play|播放|收听)"
track: "(track|歌曲|音乐)"
album: "(album|专辑|唱片|合集|单曲)"
playlist: "(playlist|播放列表)"
radio_station: "(radio_station|广播电台|电台|频道)"
requires_context:
area:
slot: true
ZHIPUAI_CoverGetStateIntent:
data:
- sentences:
- "[<area>]{name}(是|是不是){cover_states:state}[吗|不]"
response: one_yesno
requires_context:
domain: cover
slots:
domain: cover
- sentences:
- "[{area}][有|有没有]{cover_classes:device_class}[是|是不是]{cover_states:state}[吗|不]"
response: any
slots:
domain: cover
- sentences:
- "[<area>][<all>]{cover_classes:device_class}[是|是不是]都[是]{cover_states:state}[吗|不]"
- "<all><area>{cover_classes:device_class}[是|是不是]都[是]{cover_states:state}[吗|不]"
response: all
slots:
domain: cover
- sentences:
- "[<area>]<which>{cover_classes:device_class}[是]{cover_states:state}"
- "<which>[<area>]{cover_classes:device_class}[是]{cover_states:state}"
response: which
slots:
domain: cover
- sentences:
- "[{area}]<how_many_is>{cover_classes:device_class}[是]{cover_states:state}"
- "<how_many_is>[<area>]{cover_classes:device_class}[是]{cover_states:state}"
response: how_many
slots:
domain: cover
ZHIPUAI_CoverSetPositionIntent:
data:
- sentences:
- "(<numeric_value_set>|<open>|<close>) <name> [position] <to> <position>"
requires_context:
domain: cover
slots:
domain: cover
- sentences:
- "(<numeric_value_set>|<open>|<close>) <area> {cover_classes:device_class}[ position] <to> <position>"
slots:
domain: cover
- sentences:
- "[<let>] <name> (<numeric_value_set>|<open>|<close>) [position] <to> <position>"
requires_context:
domain: cover
slots:
domain: cover
- sentences:
- "[<let>]<area>{cover_classes:device_class}(<numeric_value_set>|<open>|<close>)[ position] <to> <position>"
slots:
domain: cover
HassGetState:
data:
- sentences:
- "[查询|查看][<area>]{name}[的]状态"
- "[<area>]{name}[现在|当前]是什么状态"
- "[<area>]{name}[怎么样|如何]"
slots:
domain: all
- sentences:
- "[<area>]{name}[的锁](是不是|有没有){lock_states:state}"
- "[<area>]{name}[的锁][是|有]{lock_states:state}[吗|不]"
response: one_yesno
requires_context:
domain: lock
slots:
domain: lock
ZhipuAIWebSearch:
data:
- sentences:
- "联网{time_query}{query}"
- "联网{time_query}的{query}"
- "帮我联网{time_query}{query}"
- "帮我上网查{time_query}{query}"
- "联网搜索{time_query}{query}"
- "联网查找{time_query}{query}"
- "联网查询{time_query}{query}"
- "在网上搜索{time_query}{query}"
- "在网上查找{time_query}{query}"
- "在网上查询{time_query}{query}"
- "上网搜索{time_query}{query}"
- "上网查找{time_query}{query}"
- "上网查询{time_query}{query}"
- "网上搜索{time_query}{query}"
- "网上查找{time_query}{query}"
- "网上查询{time_query}{query}"
- "互联网搜索{time_query}{query}"
- "互联网查找{time_query}{query}"
- "互联网查询{time_query}{query}"
- "百度{time_query}{query}"
- "谷歌{time_query}{query}"
- "必应{time_query}{query}"
- "搜一下{time_query}{query}"
- "查一下{time_query}{query}"
- "帮我找找{time_query}{query}"
- "帮忙查找{time_query}{query}"
- "帮忙查询{time_query}{query}"
- "search for {time_query}{query}"
- "search {time_query}{query}"
- "find {time_query}{query}"
- "look up {time_query}{query}"
- "google {time_query}{query}"
- "bing {time_query}{query}"
slots:
query:
type: text
example: "中国队奥运会奖牌数"
time_query:
type: list
values:
- "今天"
- "今日"
- "昨天"
- "昨日"
- "明天"
- "明日"
- "当前"
- "现在"
CameraAnalyzeIntent:
data:
- sentences:
- "查看{camera_name}的{question}"
- "看看{camera_name}的{question}"
- "告诉我{camera_name}的{question}"
- "{camera_name}现在{question}"
- "分析{camera_name}的{question}"
- "查看{camera_name}的{question}"
- "检查{camera_name}的{question}"
- "观察{camera_name}的{question}"
- "识别{camera_name}的{question}"
- "告诉我{camera_name}的{question}"
- "帮我看看{camera_name}的{question}"
- "帮我分析{camera_name}的{question}"
- "帮我检查{camera_name}的{question}"
- "帮我识别{camera_name}的{question}"
- "{camera_name}那里的{question}"
- "{camera_name}现在的{question}"
- "{camera_name}目前的{question}"
- "看一下{camera_name}的{question}"
- "分析一下{camera_name}的{question}"
- "检查一下{camera_name}的{question}"
- "观察一下{camera_name}的{question}"
- "识别一下{camera_name}的{question}"
- "分析下{camera_name}{question}"
- "查看下{camera_name}{question}"
- "看看{camera_name}{question}"
- "analyze {camera_name} {question}"
- "check {camera_name} {question}"
- "look at {camera_name} {question}"
- "identify {camera_name} {question}"
slots:
camera_name:
type: text
question:
type: text
speech:
text: "正在分析摄像头画面,请稍等..."
HassTimerIntent:
action:
- timer
speech:
text: 设置计时器
slots:
action:
type: text
duration:
type: text
timer_name:
type: text
templates:
- "[设置|创建|添加|开始|启动]{duration}[提醒|记录|通知]{timer_name}"
- "[设置|创建|添加|开始|启动][提醒|记录|通知]{duration}{timer_name}"
- "{duration}[提醒|记录|通知]{timer_name}"
- "[设置|创建|添加|开始|启动][提醒|记录|通知]{timer_name}{duration}"
- "[设置|创建|添加|开始|启动]一个{duration}的[计时器|定时器]{timer_name}"
- "[设置|创建|添加|开始|启动]{duration}的[计时器|定时器]{timer_name}"
- "在{duration}[后|以后|之后][设置|创建|添加|开始|启动][计时器|定时器]{timer_name}"
- "{duration}[后|以后|之后][设置|创建|添加|开始|启动][计时器|定时器]{timer_name}"
- "[取消|停止|关闭|结束|删除][计时器|定时器|提醒|记录|通知]{timer_name}"
HassNotifyIntent:
action:
- notify
speech:
text: 发送通知
slots:
message:
type: text
templates:
- "[记住|记录|记一下|提醒我|提醒|提醒一下]{message}"
- "帮我[记住|记录|记一下]{message}"
- "帮我[提醒|提醒一下]{message}"
- "[记住|记录|记一下|提醒我|提醒|提醒一下][这个|这件事]{message}"
- "帮我[记住|记录|记一下][这个|这件事]{message}"
- "帮我[提醒|提醒一下][这个|这件事]{message}"
responses:
intents:
MassPlayMediaAssist:
default: "ok"
lists:
artist:
wildcard: true
album:
wildcard: true
track:
wildcard: true
playlist:
wildcard: true
radio:
wildcard: true
radio_mode:
values:
- "radio mode"