Debian Codegraph @

intents/responses/ro/HassGetState.yaml

raw
1 language: ro
2 responses:
3 intents:
4 HassGetState:
5 default: "{{ state.state_with_unit }}" # used mostly for custom sentences
6
7 # the number of names returned is limited to 4, in case there are more, the first 3 names and the remaining count is returned
8 # with 4 names or less, the names are joined with a comma ", " and the last name is joined with " and "
9 one: "{{ slots.name | capitalize }} este {{ state.state_with_unit }}"
10
11 one_yesno: |
12 {% if query.matched: %}
13 Da
14 {% else: %}
15 Nu, ci {{ state.state_with_unit }}
16 {% endif %}
17
18 any: |
19 {% if query.matched %}
20 {% set match = query.matched | map(attribute="name") | sort | list %}
21 {% if match | length > 4 %}
22 Da, {{ match[:3] | join(", ") }} și încă {{ (match | length - 3) }}
23 {%- else -%}
24 Da,
25 {% for name in match -%}
26 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} și {% endif -%}
27 {{ name }}
28 {%- endfor -%}
29 {% endif %}
30 {% else %}
31 Nu
32 {% endif %}
33
34 all: |
35 {% if not query.unmatched: %}
36 Da
37 {% else %}
38 {% set no_match = query.unmatched | map(attribute="name") | sort | list %}
39 {% if no_match | length > 4 %}
40 Nu, {{ no_match[:3] | join(", ") }} și încă {{ (no_match | length - 3) }} nu sunt {{ slots.state }}
41 {%- else -%}
42 Nu,
43 {% for name in no_match -%}
44 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} și {% endif -%}
45 {{ name }}
46 {%- endfor %} nu{{ '' if (query.unmatched|length) == 1 else ' sunt' }}
47 {% endif %}
48 {% endif %}
49
50 which: |
51 {% if not query.matched %}
52 Nu există niciun astfel de element
53 {% else: %}
54 {% set match = query.matched | map(attribute="name") | sort | list %}
55 {% if match | length > 4 %}
56 {{ match[:3] | join(", ") }} și încă {{ (match | length - 3) }}
57 {% else %}
58 {%- for name in match -%}
59 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} și {% endif -%}
60 {{ name }}
61 {%- endfor -%}
62 {% endif %}
63 {% endif %}
64
65 how_many: |
66 {{ query.matched | length }}
67
68 where: |
69 {% if state.state == "not_home" %}
70 {{ slots.name | capitalize }} nu este acasă
71 {% elif state.state == "home" %}
72 {{ slots.name | capitalize }} este acasă
73 {% else %}
74 {{ slots.name | capitalize }} este la {{ state.state }}
75 {% endif %}