Debian Codegraph @

intents/responses/sl/HassGetState.yaml

raw symbols SCIP
1 language: sl
2 responses:
3 intents:
4 HassGetState:
5 default: "{{ state.state_with_unit | replace('.', ',') }}" # Uporabi vejico namesto pike
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 {{ slots.name | capitalize }} je {{ state.state_with_unit }}
11 # one_sensor for SL variation
12 one_sensor: |
13 {{ slots.device_class }} {{ slots.name | capitalize }} je {{ state.state_with_unit }}
14 one_yesno: |
15 {% if query.matched: %}
16 Da
17 {% else: %}
18 Ne, {{ state.state_with_unit }}
19 {% endif %}
20
21 any: |
22 {% if query.matched %}
23 {% set match = query.matched | map(attribute="name") | sort | list %}
24 {% if match | length > 4 %}
25 Da, {{ match[:3] | join(", ") }} in še {{ (match | length - 3) }}
26 {%- else -%}
27 Da,
28 {% for name in match -%}
29 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} in {% endif -%}
30 {{ name }}
31 {%- endfor -%}
32 {% endif %}
33 {% else %}
34 Ne
35 {% endif %}
36
37 #any_bs is for SL variation of response
38
39 any_bs: |
40 {% if query.matched %}
41 {% set match = query.matched | map(attribute="name") | sort | list %}
42 {% if match | length > 4 %}
43 Da, {{ match[:3] | join(", ") }} in še {{ (match | length - 3) }}
44 {%- else -%}
45 Da,
46 {% for name in match -%}
47 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} in {% endif -%}
48 {{ name }}
49 {%- endfor -%}
50 {% endif %}
51 {% else %}
52 Ne
53 {% endif %}
54
55 all: |
56 {% if not query.unmatched: %}
57 Da
58 {% else %}
59 {% set no_match = query.unmatched | map(attribute="name") | sort | list %}
60 Ne,
61 {% if no_match | length == 2 %}
62 nista
63 {%- elif no_match | length > 2 %}
64 niso
65 {%- else -%}
66 ni
67 {% endif %}
68 {% for name in no_match -%}
69 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} in {% endif -%}
70 {{ name }}
71 {%- endfor %}
72 {% endif %}
73
74 # all_bs is SL variation of response
75
76 all_bs: |
77 {% if not query.unmatched: %}
78 Da
79 {% else %}
80 {% set no_match = query.unmatched | map(attribute="name") | sort | list %}
81 Ne,
82 {% if 'vrata' in no_match %}
83 {{ no_match[:-1] | join(' ') }} niso
84 {%- else %}
85 {{ no_match[-1] }} ni
86 {% endif %}
87 {% for name in no_match[0:-1] -%}
88 {% if not loop.first %}, {% endif -%}
89 {{ name }}
90 {%- endfor %}
91 {% endif %}
92 which: |
93 {% if not query.matched %}
94 Ni {{ slots.state[:-1]}}ih {{ slots.device_class[:-1] }}a
95 {% else: %}
96 {% set match = query.matched | map(attribute="name") | sort | list %}
97 {% if match | length > 4 %}
98 {{ match[:3] | join(", ") }} in še {{ (match | length - 3) }} drugih.
99 {% else %}
100 {%- for name in match -%}
101 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} in {% endif -%}
102 {{ name }}
103 {%- endfor -%}
104 {% endif %}
105 {% endif %}
106
107 # which_bs is SL variation of response
108
109 which_bs: |
110 {% if not query.matched %}
111 Noben
112 {% else: %}
113 {% set match = query.matched | map(attribute="name") | sort | list %}
114 {% if match | length > 4 %}
115 {{ match[:3] | join(", ") }} in še {{ (match | length - 3) }} drugih.
116 {% else %}
117 {%- for name in match -%}
118 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} in {% endif -%}
119 {{ name }}
120 {%- endfor -%}
121 {% endif %}
122 {% endif %}
123
124 # which_bs_opening is SL variation of response
125
126 which_bs_opening: |
127 {% if not query.matched %}
128 Nič
129 {% else: %}
130 {% set match = query.matched | map(attribute="name") | sort | list %}
131 {% if match | length > 4 %}
132 {{ match[:3] | join(", ") }} in še {{ (match | length - 3) }} drugih.
133 {% else %}
134 {%- for name in match -%}
135 {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} in {% endif -%}
136 {{ name }}
137 {%- endfor -%}
138 {% endif %}
139 {% endif %}
140 how_many: |
141 {{ query.matched | length }}
142
143 where: |
144 {% if state == "not_home" %}
145 {{ slots.name | capitalize }} ni doma
146 {% else %}
147 {{ slots.name | capitalize }} je {{ state.state }}
148 {% endif %}
149
150 # sensor_value is SL variation of response for sensor
151 sensor_value: |
152 Vrednost senzorja je {{ state.state_with_unit | replace('.', ',') }}
153
154 sensor_value_temperature: |
155 Temperatura je {{ state.state_with_unit | replace('.', ',') }}