Debian Codegraph @

intents/responses/vi/HassGetState.yaml

raw symbols SCIP
1 language: vi
2 responses:
3 intents:
4 HassGetState:
5 default: "{{ state.state_with_unit }}" # chủ yếu sử dụng cho câu tùy chỉnh
6
7 # số lượng tên trả về bị giới hạn là 4, nếu có nhiều hơn, ba tên đầu tiên và số lượng còn lại sẽ được trả về
8 # với 4 tên trở xuống, các tên được nối lại bằng dấu phẩy ", " và tên cuối cùng được nối bằng " và "
9 one: |
10 {{ slots.name | capitalize }} là {{ state.state_with_unit }}
11
12 one_yesno: |
13 {% if query.matched %}
14 có
15 {% else %}
16 không, {{ state.state_with_unit }}
17 {% endif %}
18
19 any: |
20 {% if query.matched %}
21 {% set match = query.matched | map(attribute="name") | sort | list %}
22 {% if match | length > 4 %}
23 có, {{ match[:3] | join(", ") }} và thêm {{ (match | length - 3) }} nữa
24 {%- else -%}
25 có,
26 {% for name in match -%}
27 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} và {% endif -%}
28 {{ name }}
29 {%- endfor -%}
30 {% endif %}
31 {% else %}
32 không
33 {% endif %}
34
35 all: |
36 {% if not query.unmatched: %}
37 có
38 {% else %}
39 {% set no_match = query.unmatched | map(attribute="name") | sort | list %}
40
41 {% if no_match | length > 4 %}
42 không, {{ no_match[:3] | join(", ") }} và {{ (no_match | length - 3) }} cái khác đều không {{ slots.state }}
43
44 {%- else -%}
45 không,
46 {% for name in no_match -%}
47 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} và {% endif -%}
48 {{ name }}
49 {%- endfor %} không {{ slots.state }}
50 {% endif %}
51 {% endif %}
52
53 which: |
54 {% if not query.matched %}
55 không có
56 {% else: %}
57 {% set match = query.matched | map(attribute="name") | sort | list %}
58 {% if match | length > 4 %}
59 {{ match[:3] | join(", ") }} và {{ (match | length - 3) }} cái nữa
60 {% else %}
61 {%- for name in match -%}
62 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} và {% endif -%}
63 {{ name }}
64 {%- endfor -%}
65 {% endif %}
66 {% endif %}
67
68 how_many: |
69 {{ query.matched | length }}
70
71 where: |
72 {% if state == "not_home" %}
73 {{ slots.name | capitalize }} đang vắng nhà
74 {% else %}
75 {{ slots.name | capitalize }} đang {{ state.state }}
76 {% endif %}