Debian Codegraph @

intents/responses/ar/HassGetState.yaml

raw symbols SCIP
1 language: ar
2 responses:
3 intents:
4 HassGetState:
5 # the number of names returned is limited to 4, in case there are more, the first 3 names and the remaining count is returned
6 # with 4 names or less, the names are joined with a comma ", " and the last name is joined with " and "
7 one: |
8 حالة {{ slots.name }} هي {{ state.state_with_unit }}
9
10 one_yesno: |
11 {% if query.matched %}
12 اجل
13 {% else %}
14 لا, {{ state.state_with_unit }}
15 {% endif %}
16
17 any: |
18 {% if query.matched %}
19 {% set match = query.matched | map(attribute="name") | sort | list %}
20 {% if match | length > 4 %}
21 اجل, {{ match[:3] | join(", ") }} و {{ (match | length - 3) }} ايضا
22 {%- else -%}
23 اجل,
24 {% for name in match -%}
25 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} و {% endif -%}
26 {{ name }}
27 {%- endfor -%}
28 {% endif %}
29 {% else %}
30 لا
31 {% endif %}
32
33 all: |
34 {% if not query.unmatched: %}
35 اجل
36 {% else %}
37 {% set no_match = query.unmatched | map(attribute="name") | sort | list %}
38 {% if no_match | length > 4 %}
39 لا, {{ no_match[:3] | join(", ") }} و {{ (no_match | length - 3) }} ايضا
40 {%- else -%}
41 لا,
42 {% for name in no_match -%}
43 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} و {% endif -%}
44 {{ name }}
45 {%- endfor %} ليست
46 {% endif %}
47 {% endif %}
48
49 which: |
50 {% if not query.matched %}
51 لا يوجد
52 {% else: %}
53 {% set match = query.matched | map(attribute="name") | sort | list %}
54 {% if match | length > 4 %}
55 {{ match[:3] | join(", ") }} و {{ (match | length - 3) }} ايضا
56 {% else %}
57 {%- for name in match -%}
58 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} و {% endif -%}
59 {{ name }}
60 {%- endfor -%}
61 {% endif %}
62 {% endif %}
63
64 how_many: |
65 {{ query.matched | length }}