| 1 |
language: ne |
| 2 |
responses: |
| 3 |
intents: |
| 4 |
HassGetState: |
| 5 |
default: "{{ state.state_with_unit }}" |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
one: | |
| 10 |
{{ slots.name | capitalize }} {{ state.state_with_unit }} छ |
| 11 |
|
| 12 |
one_yesno: | |
| 13 |
{% if query.matched %} |
| 14 |
छ |
| 15 |
{% else %} |
| 16 |
छैन |
| 17 |
{% endif %} |
| 18 |
|
| 19 |
any: | |
| 20 |
{% if query.matched %} |
| 21 |
{% set match = query.matched | map(attribute="name") | sort | list %} |
| 22 |
{% if match | length > 4 %} |
| 23 |
छ, {{ match[:3] | join(", ") }} र अरू {{ (match | length - 3) }} ओटा |
| 24 |
{%- else -%} |
| 25 |
छ, |
| 26 |
{% for name in match -%} |
| 27 |
{% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} र {% endif -%} |
| 28 |
{{ name }} |
| 29 |
{%- endfor -%} |
| 30 |
{% endif %} |
| 31 |
{% else %} |
| 32 |
छैन |
| 33 |
{% endif %} |
| 34 |
|
| 35 |
all: | |
| 36 |
{% if not query.unmatched %} |
| 37 |
छ |
| 38 |
{% else %} |
| 39 |
{% set no_match = query.unmatched | map(attribute="name") | sort | list %} |
| 40 |
{% if no_match | length > 4 %} |
| 41 |
छैन, {{ no_match[:3] | join(", ") }} र अरू {{ (no_match | length - 3) }} ओटा |
| 42 |
{%- else -%} |
| 43 |
छैन, |
| 44 |
{% for name in no_match -%} |
| 45 |
{% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} र {% endif -%} |
| 46 |
{{ name }} |
| 47 |
{%- endfor %} |
| 48 |
{% endif %} |
| 49 |
{% endif %} |
| 50 |
|
| 51 |
which: | |
| 52 |
{% if not query.matched %} |
| 53 |
कुनै पनि छैन |
| 54 |
{% else %} |
| 55 |
{% set match = query.matched | map(attribute="name") | sort | list %} |
| 56 |
{% if match | length > 4 %} |
| 57 |
{{ match[:3] | join(", ") }} र अरू {{ (match | length - 3) }} ओटा |
| 58 |
{% else %} |
| 59 |
{%- for name in match -%} |
| 60 |
{% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} र {% endif -%} |
| 61 |
{{ name }} |
| 62 |
{%- endfor -%} |
| 63 |
{% endif %} |
| 64 |
{% endif %} |
| 65 |
|
| 66 |
how_many: | |
| 67 |
{{ query.matched | length }} ओटा |
| 68 |
|
| 69 |
where: | |
| 70 |
{% if state.state == "home" %} |
| 71 |
{{ slots.name | capitalize }} घरमा छ |
| 72 |
{% elif state == "not_home" %} |
| 73 |
{{ slots.name | capitalize }} बाहिर छ |
| 74 |
{% else %} |
| 75 |
{{ slots.name | capitalize }} {{ state.state }}मा छ |
| 76 |
{% endif %} |