Debian Codegraph @

intents/responses/th/HassGetState.yaml

raw
1 language: th
2 responses:
3 intents:
4 HassGetState:
5 default: "TODO: {{ state.state_with_unit }}"
6 one: "TODO: {{ slots.name | capitalize }} is {{ state.state_with_unit }}
7
8 "
9 one_yesno:
10 "TODO: {% if query.matched %}\n Yes\n{% else %}\n No, {{ state.state_with_unit\
11 \ }}\n{% endif %}\n"
12 any:
13 "TODO: {% if query.matched %}\n {% set match = query.matched | map(attribute=\"\
14 name\") | sort | list %}\n {% if match | length > 4 %}\n Yes, {{ match[:3]\
15 \ | join(\", \") }} and {{ (match | length - 3) }} more\n {%- else -%}\n\
16 \ Yes,\n {% for name in match -%}\n {% if not loop.first and not\
17 \ loop.last %}, {% elif loop.last and not loop.first %} and {% endif -%}\n\
18 \ {{ name }}\n {%- endfor -%}\n {% endif %}\n{% else %}\n No\n{%\
19 \ endif %}\n"
20 all:
21 "TODO: {% if not query.unmatched: %}\n Yes\n{% else %}\n {% set no_match\
22 \ = query.unmatched | map(attribute=\"name\") | sort | list %}\n {% if no_match\
23 \ | length > 4 %}\n No, {{ no_match[:3] | join(\", \") }} and {{ (no_match\
24 \ | length - 3) }} more are not {{ slots.state }}\n {%- else -%}\n No,\n\
25 \ {% for name in no_match -%}\n {% if not loop.first and not loop.last\
26 \ %}, {% elif loop.last and not loop.first %} and {% endif -%}\n {{ name\
27 \ }}\n {%- endfor %} {% if no_match | length > 1 %}are{% else %}is{% endif\
28 \ %} not {{ slots.state }}\n {% endif %}\n{% endif %}\n"
29 which:
30 "TODO: {% if not query.matched %}\n Not any\n{% else: %}\n {% set match\
31 \ = query.matched | map(attribute=\"name\") | sort | list %}\n {% if match\
32 \ | length > 4 %}\n {{ match[:3] | join(\", \") }} and {{ (match | length\
33 \ - 3) }} more\n {% else %}\n {%- for name in match -%}\n {% if not\
34 \ loop.first and not loop.last %}, {% elif loop.last and not loop.first %}\
35 \ and {% endif -%}\n {{ name }}\n {%- endfor -%}\n {% endif %}\n\
36 {% endif %}\n"
37 how_many: "TODO: {{ query.matched | length }}
38
39 "
40 where:
41 "TODO: {% if state == \"not_home\" %}\n {{ slots.name | capitalize }}\
42 \ is away\n{% else %}\n {{ slots.name | capitalize }} is at {{ state.state\
43 \ }}\n{% endif %}\n"