Debian Codegraph @

intents/responses/eu/HassGetState.yaml

raw symbols SCIP
1 language: eu
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 default: |
8 {{ state.state_with_unit }}
9
10 one: |
11 {{ slots.name | capitalize }} gailuaren egoera {{ state.state_with_unit }} da
12
13 one_yesno: |
14 {% if query.matched %}
15 Bai
16 {% else %}
17 Ez, {{ state.state_with_unit }} dago
18 {% endif %}
19
20 any: |
21 {% if query.matched %}
22 {% set match = query.matched | map(attribute="name") | sort | list %}
23 {% if match | length > 4 %}
24 Bai, {{ match[:3] | join(", ") }} eta beste {{ (match | length - 3) }} gehiago
25 {%- else -%}
26 {% if match | length == 1 %}
27 Bai, {{ match|first }}
28 {% else %}
29 Bai,
30 {% for name in match -%}
31 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} eta {% endif -%}
32 {{ name }}
33 {%- endfor -%}
34 {% endif %}
35 {% endif %}
36 {% else %}
37 Ez
38 {% endif %}
39
40 all: |
41 {% if not query.unmatched: %}
42 Bai
43 {% else %}
44 {% set no_match = query.unmatched | map(attribute="name") | sort | list %}
45 {% if no_match | length > 4 %}
46 Ez, {{ no_match[:3] | join(", ") }} eta beste {{ (no_match | length - 3) }} ere ez
47 {% else %}
48 {% if no_match | length == 1 %}
49 Ez, {{ no_match|first }} ez
50 {%- else -%}
51 Ez,
52 {% for name in no_match -%}
53 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} eta {% endif -%}
54 {{ name }}
55 {%- endfor %}
56 ez daude
57 {% endif %}
58 {% endif %}
59 {% endif %}
60
61 which: |
62 {% if not query.matched %}
63 Gailu bat bera ere ez
64 {% else: %}
65 {% set match = query.matched | map(attribute="name") | sort | list %}
66 {% if match | length > 4 %}
67 {{ match[:3] | join(", ") }} eta beste {{ (match | length - 3) }} gehiago
68 {% else %}
69 {%- for name in match -%}
70 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} eta {% endif -%}
71 {{ name }}
72 {%- endfor -%}
73 {% endif %}
74 {% endif %}
75
76 how_many: |
77 {{ query.matched | length }}