Debian Codegraph @

intents/responses/hr/HassGetState.yaml

raw symbols SCIP
1 language: hr
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 }} je {{ state.state_with_unit }}
9
10 one_yesno: |
11 {% if query.matched %}
12 Da
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 Da, {{ match[:3] | join(", ") }} i još {{ (match | length - 3) }}
22 {%- else -%}
23 Da,
24 {% for name in match -%}
25 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} i {% endif -%}
26 {{ name }}
27 {%- endfor -%}
28 {% endif %}
29 {% else %}
30 Ne
31 {% endif %}
32
33 all: |
34 {% if not query.unmatched: %}
35 Da
36 {% else %}
37 {% set no_match = query.unmatched | map(attribute="name") | sort | list %}
38 {% if no_match | length > 4 %}
39 Ne, nisu {{ no_match[:3] | join(", ") }} i još {{ (no_match | length - 3) }}
40 {%- else -%}
41 Ne,
42 {% if no_match | length > 1 %}
43 nisu
44 {%- else -%}
45 nije
46 {% endif %}
47 {% for name in no_match -%}
48 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} i {% endif -%}
49 {{ name }}
50 {%- endfor %}
51 {% endif %}
52 {% endif %}
53
54 which: |
55 {% if not query.matched %}
56 Nema {{ slots.state[:-1]}}ih {{ slots.device_class[:-1] }}a
57 {% else: %}
58 {% set match = query.matched | map(attribute="name") | sort | list %}
59 {% if match | length > 4 %}
60 {{ match[:3] | join(", ") }} and {{ (match | length - 3) }} more
61 {% else %}
62 {%- for name in match -%}
63 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} i {% endif -%}
64 {{ name }}
65 {%- endfor -%}
66 {% endif %}
67 {% endif %}
68
69 how_many: |
70 {{ query.matched | length }}
71
72 sensor_value: |
73 Vrijednost senzora je {{ state.state_with_unit }}
74
75 sensor_value_temperature: |
76 Temperatura je {{ state.state_with_unit }}