Debian Codegraph @

intents/responses/lt/HassGetState.yaml

raw
1 language: lt
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 | capitalize }} yra {{ state.state_with_unit }}
9
10 one_yesno: |
11 {% if query.matched %}
12 Taip
13 {% else %}
14 Ne
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 Taip, {{ match[:3] | join(", ") }} ir {{ (match | length - 3) }} more
22 {%- else -%}
23 Taip,
24 {% for name in match -%}
25 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} ir {% endif -%}
26 {{ name }}
27 {%- endfor -%}
28 {% endif %}
29 {% else %}
30 Ne
31 {% endif %}
32
33 all: |
34 {% if not query.unmatched: %}
35 Taip
36 {% else %}
37 {% set no_match = query.unmatched | map(attribute="name") | sort | list %}
38 {% if no_match | length > 4 %}
39 Ne, {{ no_match[:3] | join(", ") }} ir {{ (no_match | length - 3) }} kitų nėra
40 {%- else -%}
41 Ne,
42 {% for name in no_match -%}
43 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} ir {% endif -%}
44 {{ name }}
45 {%- endfor %} nėra
46 {% endif %}
47 {% endif %}
48
49 which: |
50 {% if not query.matched %}
51 Nei viena(-s).
52 {% else: %}
53 {% set match = query.matched | map(attribute="name") | sort | list %}
54 {% if match | length > 4 %}
55 {{ match[:3] | join(", ") }} ir {{ (match | length - 3) }} kitos
56 {% else %}
57 {%- for name in match -%}
58 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} ir {% endif -%}
59 {{ name }}
60 {%- endfor -%}
61 {% endif %}
62 {% endif %}
63
64 how_many: |
65 {{ query.matched | length }}