Debian Codegraph @

intents/responses/es/HassGetState.yaml

raw symbols SCIP
1 language: es
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: |
10 {% if state.domain == "sensor" %}
11 El dispositivo {{ slots.name | capitalize }} indica {{ state.state_with_unit }}
12 {% else %}
13 El dispositivo {{ slots.name | capitalize }} está {{ state.state_with_unit }}
14 {% endif %}
15
16 one_yesno: |
17 {% if query.matched %}
18 Sí
19 {% else %}
20 {% if state.domain == "person" %}
21 No, está en {{ state.state_with_unit }}
22 {% else %}
23 No, su estado es {{ state.state_with_unit }}
24 {% endif %}
25 {% endif %}
26
27 any: |
28 {% if query.matched %}
29 {% set match = query.matched | map(attribute="name") | sort | list %}
30 {% if match | length > 4 %}
31 Sí, {{ match[:3] | join(", ") }} y otros {{ (match | length - 3) }} dispositivos más
32 {%- else -%}
33 {% if match | length == 1 %}
34 {% if state.domain == "person" %}
35 Sí, {{ match|first }}
36 {% else %}
37 Sí, el dispositivo {{ match|first }}
38 {% endif %}
39 {% else %}
40 Sí,
41 {% for name in match -%}
42 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} y {% endif -%}
43 {{ name }}
44 {%- endfor -%}
45 {% endif %}
46 {% endif %}
47 {% else %}
48 No
49 {% endif %}
50
51 all: |
52 {% if not query.unmatched: %}
53 Sí
54 {% else %}
55 {% set no_match = query.unmatched | map(attribute="name") | sort | list %}
56 {% if no_match | length > 4 %}
57 {% if state.domain == "person" %}
58 No, ni {{ no_match[:3] | join(", ni ") }} ni otros {{ (no_match | length - 3) }} están en {{slots.state}}
59 {% else %}
60 No, ni {{ no_match[:3] | join(", ni ") }} ni otros {{ (no_match | length - 3) }} dispositivos tienen ese estado
61 {% endif %}
62 {% else %}
63 {% if no_match | length == 1 %}
64 {% if state.domain == "person" %}
65 No, {{ no_match|first }} no está en {{slots.state}}
66 {% else %}
67 No, el dispositivo {{ no_match|first }} no tiene ese estado
68 {% endif %}
69 {%- else -%}
70 No, ni
71 {% for name in no_match -%}
72 {% if not loop.first and not loop.last %}, ni {% elif loop.last and not loop.first %} ni {% endif -%}
73 {{ name }}
74 {%- endfor %}
75 {% if state.domain == "person" %}
76 están en {{slots.state}}
77 {% else %}
78 tienen el estado {{slots.state}}
79 {% endif %}
80 {% endif %}
81 {% endif %}
82 {% endif %}
83
84 which: |
85 {% if not query.matched %}
86 Ningún dispositivo
87 {% else: %}
88 {% set match = query.matched | map(attribute="name") | sort | list %}
89 {% if match | length > 4 %}
90 {{ match[:3] | join(", ") }} y otros {{ (match | length - 3) }} dispositivos más
91 {% else %}
92 {%- for name in match -%}
93 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} y {% endif -%}
94 {{ name }}
95 {%- endfor -%}
96 {% endif %}
97 {% endif %}
98
99 how_many: |
100 {{ query.matched | length }}
101
102 where: |
103 {% if state == "not_home" %}
104 {{ slots.name | capitalize }} está fuera
105 {% else %}
106 {{ slots.name | capitalize }} está en {{ state.state }}
107 {% endif %}