home-assistant-intents 2024.6.21__tar.gz → 2024.6.26__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. {home_assistant_intents-2024.6.21/home_assistant_intents.egg-info → home_assistant_intents-2024.6.26}/PKG-INFO +1 -1
  2. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/af.json +8 -8
  3. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/ar.json +186 -186
  4. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/bg.json +476 -476
  5. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/bn.json +1 -1
  6. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/ca.json +211 -211
  7. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/cs.json +554 -554
  8. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/da.json +148 -148
  9. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/de-CH.json +267 -267
  10. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/de.json +1048 -1048
  11. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/el.json +193 -193
  12. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/en.json +1515 -1472
  13. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/es.json +1664 -1364
  14. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/eu.json +8 -8
  15. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/fa.json +1 -1
  16. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/fi.json +384 -384
  17. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/fr-CA.json +79 -79
  18. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/fr.json +1771 -1771
  19. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/gl.json +147 -147
  20. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/gu.json +1 -1
  21. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/he.json +117 -117
  22. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/hi.json +1 -1
  23. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/hr.json +241 -241
  24. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/hu.json +1273 -1273
  25. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/id.json +20 -20
  26. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/is.json +167 -167
  27. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/it.json +236 -236
  28. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/ka.json +1 -1
  29. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/kn.json +1 -1
  30. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/ko.json +406 -406
  31. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/lb.json +143 -143
  32. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/lt.json +95 -95
  33. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/lv.json +109 -109
  34. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/ml.json +81 -81
  35. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/mn.json +1 -1
  36. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/ms.json +43 -43
  37. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/nb.json +572 -572
  38. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/nl.json +1465 -1465
  39. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/pl.json +559 -559
  40. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/pt-br.json +212 -192
  41. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/pt.json +177 -177
  42. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/ro.json +600 -600
  43. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/ru.json +1443 -1371
  44. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/sk.json +213 -213
  45. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/sl.json +1338 -1338
  46. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/sr.json +179 -179
  47. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/sv.json +166 -166
  48. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/sw.json +1 -1
  49. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/te.json +1 -1
  50. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/tr.json +27 -27
  51. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/uk.json +254 -254
  52. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/ur.json +90 -90
  53. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/vi.json +942 -942
  54. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/zh-cn.json +229 -229
  55. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/zh-hk.json +225 -104
  56. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/zh-tw.json +370 -370
  57. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26/home_assistant_intents.egg-info}/PKG-INFO +1 -1
  58. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/pyproject.toml +1 -1
  59. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/LICENSE.md +0 -0
  60. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/MANIFEST.in +0 -0
  61. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/README.md +0 -0
  62. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/__init__.py +0 -0
  63. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/data/et.json +0 -0
  64. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents/languages.py +0 -0
  65. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents.egg-info/SOURCES.txt +0 -0
  66. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents.egg-info/dependency_links.txt +0 -0
  67. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents.egg-info/top_level.txt +0 -0
  68. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/home_assistant_intents.egg-info/zip-safe +0 -0
  69. {home_assistant_intents-2024.6.21 → home_assistant_intents-2024.6.26}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: home-assistant-intents
3
- Version: 2024.6.21
3
+ Version: 2024.6.26
4
4
  Summary: Intents for Home Assistant
5
5
  Author-email: The Home Assistant Authors <hello@home-assistant.io>
6
6
  License: Apache-2.0
@@ -11,6 +11,14 @@
11
11
  "handle_error": "'n Onverwagse fout het voorgekom tydens die hanteering van die voorneme'"
12
12
  },
13
13
  "intents": {
14
+ "HassGetState": {
15
+ "one": "{{ slots.name | capitalize }} is {{ state.state_with_unit }}\n",
16
+ "one_yesno": "{% if query.matched %}\n Ja\n{% else %}\n Nee, {{ state.state_with_unit }}\n{% endif %}\n",
17
+ "any": "{% if query.matched %}\n {% set match = query.matched | map(attribute=\"name\") | sort | list %}\n {% if match | length > 4 %}\n Ja, {{ match[:3] | join(\", \") }} en nog {{ (match | length - 3) }}\n {%- else -%}\n Ja,\n {% for name in match -%}\n {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} en {% endif -%}\n {{ name }}\n {%- endfor -%}\n {% endif %}\n{% else %}\n Nee\n{% endif %}\n",
18
+ "all": "{% if not query.unmatched: %}\n Ja\n{% else %}\n {% set no_match = query.unmatched | map(attribute=\"name\") | sort | list %}\n {% if no_match | length > 4 %}\n Nee, {{ no_match[:3] | join(\", \") }} en nog {{ (no_match | length - 3) }} nie\n {%- else -%}\n Nee,\n {% for name in no_match -%}\n {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} en {% endif -%}\n {{ name }}\n {%- endfor\n %} not\n {% endif %}\n{% endif %}\n",
19
+ "which": "{% if not query.matched %}\n Not any\n{% else: %}\n {% set match\n = query.matched | map(attribute=\"name\") | sort | list %}\n {% if match | length > 4 %}\n {{ match[:3] | join(\", \") }} en nog {{ (match | length - 3) }}\n {% else %}\n {%- for name in match -%}\n {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} en {% endif -%}\n {{ name }}\n {%- endfor -%}\n {% endif %}\n\n {% endif %}\n",
20
+ "how_many": "{{ query.matched | length }}\n"
21
+ },
14
22
  "HassTurnOff": {
15
23
  "default": "{{ state.domain }} afgeskakel",
16
24
  "lights_area": "Ligte afgeskakel",
@@ -31,14 +39,6 @@
31
39
  "script": "Begin",
32
40
  "lock": "Gesluit"
33
41
  },
34
- "HassGetState": {
35
- "one": "{{ slots.name | capitalize }} is {{ state.state_with_unit }}\n",
36
- "one_yesno": "{% if query.matched %}\n Ja\n{% else %}\n Nee, {{ state.state_with_unit }}\n{% endif %}\n",
37
- "any": "{% if query.matched %}\n {% set match = query.matched | map(attribute=\"name\") | sort | list %}\n {% if match | length > 4 %}\n Ja, {{ match[:3] | join(\", \") }} en nog {{ (match | length - 3) }}\n {%- else -%}\n Ja,\n {% for name in match -%}\n {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} en {% endif -%}\n {{ name }}\n {%- endfor -%}\n {% endif %}\n{% else %}\n Nee\n{% endif %}\n",
38
- "all": "{% if not query.unmatched: %}\n Ja\n{% else %}\n {% set no_match = query.unmatched | map(attribute=\"name\") | sort | list %}\n {% if no_match | length > 4 %}\n Nee, {{ no_match[:3] | join(\", \") }} en nog {{ (no_match | length - 3) }} nie\n {%- else -%}\n Nee,\n {% for name in no_match -%}\n {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} en {% endif -%}\n {{ name }}\n {%- endfor\n %} not\n {% endif %}\n{% endif %}\n",
39
- "which": "{% if not query.matched %}\n Not any\n{% else: %}\n {% set match\n = query.matched | map(attribute=\"name\") | sort | list %}\n {% if match | length > 4 %}\n {{ match[:3] | join(\", \") }} en nog {{ (match | length - 3) }}\n {% else %}\n {%- for name in match -%}\n {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} en {% endif -%}\n {{ name }}\n {%- endfor -%}\n {% endif %}\n\n {% endif %}\n",
40
- "how_many": "{{ query.matched | length }}\n"
41
- },
42
42
  "HassLightSet": {
43
43
  "brightness": "Helderheid gestel",
44
44
  "color": "Kleur gestel"
@@ -5,210 +5,156 @@
5
5
  "data": [
6
6
  {
7
7
  "sentences": [
8
- "<close> <name> [<in> <area>]"
8
+ "<turn_off> [<light> | <switch>] <name>"
9
9
  ],
10
- "requires_context": {
11
- "domain": "cover"
10
+ "excludes_context": {
11
+ "domain": [
12
+ "binary_sensor",
13
+ "cover",
14
+ "lock",
15
+ "scene",
16
+ "script",
17
+ "sensor"
18
+ ]
12
19
  },
13
- "response": "cover"
20
+ "response": "default"
14
21
  },
15
22
  {
16
23
  "sentences": [
17
- "<close> باب الجراج"
24
+ "<turn_off> [<all>] <light> [<in>] <area>"
18
25
  ],
19
26
  "slots": {
20
- "domain": "cover",
21
- "device_class": "garage"
27
+ "domain": "light",
28
+ "name": "all"
22
29
  },
23
- "response": "cover_device_class"
30
+ "response": "lights_area"
24
31
  },
25
32
  {
26
33
  "sentences": [
27
- "<close> {cover_classes:device_class} [<in>] <area>"
34
+ "<turn_off> [<all>] <light>"
28
35
  ],
29
36
  "slots": {
30
- "domain": "cover"
37
+ "domain": "light",
38
+ "name": "all"
31
39
  },
32
- "response": "cover_device_class"
40
+ "response": "light_all"
33
41
  },
34
42
  {
35
43
  "sentences": [
36
- "<open> <name> [<in> <area>]"
44
+ "<close> <name> [<in> <area>]"
37
45
  ],
38
46
  "requires_context": {
39
- "domain": "lock"
47
+ "domain": "cover"
40
48
  },
41
- "response": "unlock"
49
+ "response": "cover"
42
50
  },
43
51
  {
44
52
  "sentences": [
45
- "<open> [<all>] <lock> [<in>] <area>"
53
+ "<close> باب الجراج"
46
54
  ],
47
55
  "slots": {
48
- "domain": "lock",
49
- "name": "all"
56
+ "domain": "cover",
57
+ "device_class": "garage"
50
58
  },
51
- "response": "unlock"
59
+ "response": "cover_device_class"
52
60
  },
53
61
  {
54
62
  "sentences": [
55
- "<turn_off> [<all>] <light> [<in>] <area>"
63
+ "<close> {cover_classes:device_class} [<in>] <area>"
56
64
  ],
57
65
  "slots": {
58
- "domain": "light",
59
- "name": "all"
66
+ "domain": "cover"
60
67
  },
61
- "response": "lights_area"
68
+ "response": "cover_device_class"
62
69
  },
63
70
  {
64
71
  "sentences": [
65
- "<turn_off> [<all>] <light>"
72
+ "<turn_off> [<all>] <fan> [<in>] <area>"
66
73
  ],
67
74
  "slots": {
68
- "domain": "light",
75
+ "domain": "fan",
69
76
  "name": "all"
70
77
  },
71
- "response": "light_all"
78
+ "response": "fans_area"
72
79
  },
73
80
  {
74
81
  "sentences": [
75
- "<turn_off> [<light> | <switch>] <name>"
82
+ "<turn_off> [<all>] <fan>"
76
83
  ],
77
- "excludes_context": {
78
- "domain": [
79
- "binary_sensor",
80
- "cover",
81
- "lock",
82
- "scene",
83
- "script",
84
- "sensor"
85
- ]
84
+ "slots": {
85
+ "domain": "fan",
86
+ "name": "all"
86
87
  },
87
- "response": "default"
88
+ "response": "fan_all"
88
89
  },
89
90
  {
90
91
  "sentences": [
91
- "<turn_off> [<all>] <fan> [<in>] <area>"
92
+ "<open> <name> [<in> <area>]"
92
93
  ],
93
- "slots": {
94
- "domain": "fan",
95
- "name": "all"
94
+ "requires_context": {
95
+ "domain": "lock"
96
96
  },
97
- "response": "fans_area"
97
+ "response": "unlock"
98
98
  },
99
99
  {
100
100
  "sentences": [
101
- "<turn_off> [<all>] <fan>"
101
+ "<open> [<all>] <lock> [<in>] <area>"
102
102
  ],
103
103
  "slots": {
104
- "domain": "fan",
104
+ "domain": "lock",
105
105
  "name": "all"
106
106
  },
107
- "response": "fan_all"
107
+ "response": "unlock"
108
108
  }
109
109
  ]
110
110
  },
111
- "HassGetState": {
111
+ "HassTurnOn": {
112
112
  "data": [
113
113
  {
114
114
  "sentences": [
115
- "<what_is> [حالة] <name> [<in> <area>]"
115
+ "<turn_on> [<all>] <light> [<in>] <area>"
116
116
  ],
117
- "excludes_context": {
118
- "domain": [
119
- "scene",
120
- "script"
121
- ]
117
+ "slots": {
118
+ "domain": "light",
119
+ "name": "all"
122
120
  },
123
- "response": "one"
121
+ "response": "lights_area"
124
122
  },
125
123
  {
126
124
  "sentences": [
127
- "<is_it> <name> [<in> <area>] {on_off_states:state}"
125
+ "<turn_on> [<all>] <fan> [<in>] <area>"
128
126
  ],
129
- "excludes_context": {
130
- "domain": [
131
- "cover"
132
- ]
127
+ "slots": {
128
+ "domain": "fan",
129
+ "name": "all"
133
130
  },
134
- "response": "one_yesno"
135
- },
136
- {
137
- "sentences": [
138
- "<is_it> <any> {on_off_domains:domain} {on_off_states:state} [<in> <area>]"
139
- ],
140
- "response": "any"
141
- },
142
- {
143
- "sentences": [
144
- "<is_it> <all> {on_off_domains:domain} {on_off_states:state} [<in> <area>]"
145
- ],
146
- "response": "all"
147
- },
148
- {
149
- "sentences": [
150
- "<what_is> {on_off_domains:domain} [التي] {on_off_states:state} [<in> <area>]"
151
- ],
152
- "response": "which"
153
- },
154
- {
155
- "sentences": [
156
- "<how_many> {on_off_domains:domain} [التي] {on_off_states:state} [<in> <area>]"
157
- ],
158
- "response": "how_many"
131
+ "response": "fans_area"
159
132
  },
160
133
  {
161
134
  "sentences": [
162
- "هل <name> {cover_states:state} [<in> <area>]"
135
+ "[<turn_on>] [<script>] <name>",
136
+ "[<script>] <name> <turn_on>"
163
137
  ],
164
- "response": "one_yesno",
165
138
  "requires_context": {
166
- "domain": "cover"
139
+ "domain": "script"
167
140
  },
168
141
  "slots": {
169
- "domain": "cover"
170
- }
171
- },
172
- {
173
- "sentences": [
174
- "هل هناك {cover_classes:device_class} {cover_states:state} [<in> <area>]"
175
- ],
176
- "response": "any",
177
- "slots": {
178
- "domain": "cover"
179
- }
180
- },
181
- {
182
- "sentences": [
183
- "هل جميع {cover_classes:device_class} {cover_states:state} [<in> <area>]"
184
- ],
185
- "response": "all",
186
- "slots": {
187
- "domain": "cover"
188
- }
142
+ "domain": "script"
143
+ },
144
+ "response": "script"
189
145
  },
190
146
  {
191
147
  "sentences": [
192
- "اي {cover_classes:device_class} {cover_states:state} [<in> <area>]"
148
+ "[<turn_on>] [<scene>] <name>"
193
149
  ],
194
- "response": "which",
150
+ "requires_context": {
151
+ "domain": "scene"
152
+ },
195
153
  "slots": {
196
- "domain": "cover"
197
- }
154
+ "domain": "scene"
155
+ },
156
+ "response": "scene"
198
157
  },
199
- {
200
- "sentences": [
201
- "(كم|ما|ماهو|ماذا) [عدد] {cover_classes:device_class} [اللتي] {cover_states:state} [<in> <area>]"
202
- ],
203
- "response": "how_many",
204
- "slots": {
205
- "domain": "cover"
206
- }
207
- }
208
- ]
209
- },
210
- "HassTurnOn": {
211
- "data": [
212
158
  {
213
159
  "sentences": [
214
160
  "<close> <name> [<in> <area>]"
@@ -230,13 +176,19 @@
230
176
  },
231
177
  {
232
178
  "sentences": [
233
- "<turn_on> [<all>] <fan> [<in>] <area>"
179
+ "<turn_on> [<light> | <switch>] <name>"
234
180
  ],
235
- "slots": {
236
- "domain": "fan",
237
- "name": "all"
181
+ "excludes_context": {
182
+ "domain": [
183
+ "binary_sensor",
184
+ "cover",
185
+ "lock",
186
+ "scene",
187
+ "script",
188
+ "sensor"
189
+ ]
238
190
  },
239
- "response": "fans_area"
191
+ "response": "default"
240
192
  },
241
193
  {
242
194
  "sentences": [
@@ -265,57 +217,6 @@
265
217
  "domain": "cover"
266
218
  },
267
219
  "response": "cover_device_class"
268
- },
269
- {
270
- "sentences": [
271
- "[<turn_on>] [<script>] <name>",
272
- "[<script>] <name> <turn_on>"
273
- ],
274
- "requires_context": {
275
- "domain": "script"
276
- },
277
- "slots": {
278
- "domain": "script"
279
- },
280
- "response": "script"
281
- },
282
- {
283
- "sentences": [
284
- "[<turn_on>] [<scene>] <name>"
285
- ],
286
- "requires_context": {
287
- "domain": "scene"
288
- },
289
- "slots": {
290
- "domain": "scene"
291
- },
292
- "response": "scene"
293
- },
294
- {
295
- "sentences": [
296
- "<turn_on> [<light> | <switch>] <name>"
297
- ],
298
- "excludes_context": {
299
- "domain": [
300
- "binary_sensor",
301
- "cover",
302
- "lock",
303
- "scene",
304
- "script",
305
- "sensor"
306
- ]
307
- },
308
- "response": "default"
309
- },
310
- {
311
- "sentences": [
312
- "<turn_on> [<all>] <light> [<in>] <area>"
313
- ],
314
- "slots": {
315
- "domain": "light",
316
- "name": "all"
317
- },
318
- "response": "lights_area"
319
220
  }
320
221
  ]
321
222
  },
@@ -446,6 +347,105 @@
446
347
  ]
447
348
  }
448
349
  ]
350
+ },
351
+ "HassGetState": {
352
+ "data": [
353
+ {
354
+ "sentences": [
355
+ "<what_is> [حالة] <name> [<in> <area>]"
356
+ ],
357
+ "excludes_context": {
358
+ "domain": [
359
+ "scene",
360
+ "script"
361
+ ]
362
+ },
363
+ "response": "one"
364
+ },
365
+ {
366
+ "sentences": [
367
+ "<is_it> <name> [<in> <area>] {on_off_states:state}"
368
+ ],
369
+ "excludes_context": {
370
+ "domain": [
371
+ "cover"
372
+ ]
373
+ },
374
+ "response": "one_yesno"
375
+ },
376
+ {
377
+ "sentences": [
378
+ "<is_it> <any> {on_off_domains:domain} {on_off_states:state} [<in> <area>]"
379
+ ],
380
+ "response": "any"
381
+ },
382
+ {
383
+ "sentences": [
384
+ "<is_it> <all> {on_off_domains:domain} {on_off_states:state} [<in> <area>]"
385
+ ],
386
+ "response": "all"
387
+ },
388
+ {
389
+ "sentences": [
390
+ "<what_is> {on_off_domains:domain} [التي] {on_off_states:state} [<in> <area>]"
391
+ ],
392
+ "response": "which"
393
+ },
394
+ {
395
+ "sentences": [
396
+ "<how_many> {on_off_domains:domain} [التي] {on_off_states:state} [<in> <area>]"
397
+ ],
398
+ "response": "how_many"
399
+ },
400
+ {
401
+ "sentences": [
402
+ "هل <name> {cover_states:state} [<in> <area>]"
403
+ ],
404
+ "response": "one_yesno",
405
+ "requires_context": {
406
+ "domain": "cover"
407
+ },
408
+ "slots": {
409
+ "domain": "cover"
410
+ }
411
+ },
412
+ {
413
+ "sentences": [
414
+ "هل هناك {cover_classes:device_class} {cover_states:state} [<in> <area>]"
415
+ ],
416
+ "response": "any",
417
+ "slots": {
418
+ "domain": "cover"
419
+ }
420
+ },
421
+ {
422
+ "sentences": [
423
+ "هل جميع {cover_classes:device_class} {cover_states:state} [<in> <area>]"
424
+ ],
425
+ "response": "all",
426
+ "slots": {
427
+ "domain": "cover"
428
+ }
429
+ },
430
+ {
431
+ "sentences": [
432
+ "اي {cover_classes:device_class} {cover_states:state} [<in> <area>]"
433
+ ],
434
+ "response": "which",
435
+ "slots": {
436
+ "domain": "cover"
437
+ }
438
+ },
439
+ {
440
+ "sentences": [
441
+ "(كم|ما|ماهو|ماذا) [عدد] {cover_classes:device_class} [اللتي] {cover_states:state} [<in> <area>]"
442
+ ],
443
+ "response": "how_many",
444
+ "slots": {
445
+ "domain": "cover"
446
+ }
447
+ }
448
+ ]
449
449
  }
450
450
  },
451
451
  "responses": {
@@ -458,6 +458,14 @@
458
458
  "handle_error": "حدث خطأ أثناء معالجة النص"
459
459
  },
460
460
  "intents": {
461
+ "HassGetState": {
462
+ "one": "حالة {{ slots.name }} هي {{ state.state_with_unit }}\n",
463
+ "one_yesno": "{% if query.matched %}\n اجل\n{% else %}\n لا, {{ state.state_with_unit }}\n{% endif %}\n",
464
+ "any": "{% if query.matched %}\n {% set match = query.matched | map(attribute=\"name\") | sort | list %}\n {% if match | length > 4 %}\n اجل, {{ match[:3] | join(\", \") }} و {{ (match | length - 3) }} ايضا\n {%- else -%}\n اجل,\n {% for name in match -%}\n {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} و {% endif -%}\n {{ name }}\n {%- endfor -%}\n {% endif %}\n{% else %}\n لا\n{% endif %}\n",
465
+ "all": "{% if not query.unmatched: %}\n اجل\n{% else %}\n {% set no_match = query.unmatched | map(attribute=\"name\") | sort | list %}\n {% if no_match | length > 4 %}\n لا, {{ no_match[:3] | join(\", \") }} و {{ (no_match | length - 3) }} ايضا\n {%- else -%}\n لا,\n {% for name in no_match -%}\n {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} و {% endif -%}\n {{ name }}\n {%- endfor %} ليست\n {% endif %}\n{% endif %}\n",
466
+ "which": "{% if not query.matched %}\n لا يوجد\n{% else: %}\n {% set match = query.matched | map(attribute=\"name\") | sort | list %}\n {% if match | length > 4 %}\n {{ match[:3] | join(\", \") }} و {{ (match | length - 3) }} ايضا\n {% else %}\n {%- for name in match -%}\n {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} و {% endif -%}\n {{ name }}\n {%- endfor -%}\n {% endif %}\n{% endif %}\n",
467
+ "how_many": "{{ query.matched | length }}\n"
468
+ },
461
469
  "HassTurnOff": {
462
470
  "default": "تم اطفاء {{state.domain}}",
463
471
  "lights_area": "تم اطفاء الاضواء",
@@ -478,14 +486,6 @@
478
486
  "script": "تم البدء",
479
487
  "lock": "تم القفل"
480
488
  },
481
- "HassGetState": {
482
- "one": "حالة {{ slots.name }} هي {{ state.state_with_unit }}\n",
483
- "one_yesno": "{% if query.matched %}\n اجل\n{% else %}\n لا, {{ state.state_with_unit }}\n{% endif %}\n",
484
- "any": "{% if query.matched %}\n {% set match = query.matched | map(attribute=\"name\") | sort | list %}\n {% if match | length > 4 %}\n اجل, {{ match[:3] | join(\", \") }} و {{ (match | length - 3) }} ايضا\n {%- else -%}\n اجل,\n {% for name in match -%}\n {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} و {% endif -%}\n {{ name }}\n {%- endfor -%}\n {% endif %}\n{% else %}\n لا\n{% endif %}\n",
485
- "all": "{% if not query.unmatched: %}\n اجل\n{% else %}\n {% set no_match = query.unmatched | map(attribute=\"name\") | sort | list %}\n {% if no_match | length > 4 %}\n لا, {{ no_match[:3] | join(\", \") }} و {{ (no_match | length - 3) }} ايضا\n {%- else -%}\n لا,\n {% for name in no_match -%}\n {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} و {% endif -%}\n {{ name }}\n {%- endfor %} ليست\n {% endif %}\n{% endif %}\n",
486
- "which": "{% if not query.matched %}\n لا يوجد\n{% else: %}\n {% set match = query.matched | map(attribute=\"name\") | sort | list %}\n {% if match | length > 4 %}\n {{ match[:3] | join(\", \") }} و {{ (match | length - 3) }} ايضا\n {% else %}\n {%- for name in match -%}\n {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} و {% endif -%}\n {{ name }}\n {%- endfor -%}\n {% endif %}\n{% endif %}\n",
487
- "how_many": "{{ query.matched | length }}\n"
488
- },
489
489
  "HassLightSet": {
490
490
  "brightness": "تم ضبط السطوع إلى {{slots.brightness}}",
491
491
  "color": "تم ضبط اللون إلى {{slots.color}}"