| 1 |
language: af |
| 2 |
responses: |
| 3 |
intents: |
| 4 |
HassGetState: |
| 5 |
one: | |
| 6 |
{{ slots.name | capitalize }} is {{ state.state_with_unit }} |
| 7 |
one_yesno: | |
| 8 |
{% if query.matched %} |
| 9 |
Ja |
| 10 |
{% else %} |
| 11 |
Nee, {{ state.state_with_unit }} |
| 12 |
{% endif %} |
| 13 |
any: | |
| 14 |
{% if query.matched %} |
| 15 |
{% set match = query.matched | map(attribute="name") | sort | list %} |
| 16 |
{% if match | length > 4 %} |
| 17 |
Ja, {{ match[:3] | join(", ") }} en nog {{ (match | length - 3) }} |
| 18 |
{%- else -%} |
| 19 |
Ja, |
| 20 |
{% for name in match -%} |
| 21 |
{% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} en {% endif -%} |
| 22 |
{{ name }} |
| 23 |
{%- endfor -%} |
| 24 |
{% endif %} |
| 25 |
{% else %} |
| 26 |
Nee |
| 27 |
{% endif %} |
| 28 |
all: | |
| 29 |
{% if not query.unmatched: %} |
| 30 |
Ja |
| 31 |
{% else %} |
| 32 |
{% set no_match = query.unmatched | map(attribute="name") | sort | list %} |
| 33 |
{% if no_match | length > 4 %} |
| 34 |
Nee, {{ no_match[:3] | join(", ") }} en nog {{ (no_match | length - 3) }} nie |
| 35 |
{%- else -%} |
| 36 |
Nee, |
| 37 |
{% for name in no_match -%} |
| 38 |
{% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} en {% endif -%} |
| 39 |
{{ name }} |
| 40 |
{%- endfor |
| 41 |
%} not |
| 42 |
{% endif %} |
| 43 |
{% endif %} |
| 44 |
|
| 45 |
which: | |
| 46 |
{% if not query.matched %} |
| 47 |
Not any |
| 48 |
{% else: %} |
| 49 |
{% set match |
| 50 |
= query.matched | map(attribute="name") | sort | list %} |
| 51 |
{% if match | length > 4 %} |
| 52 |
{{ match[:3] | join(", ") }} en nog {{ (match | length - 3) }} |
| 53 |
{% else %} |
| 54 |
{%- for name in match -%} |
| 55 |
{% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} en {% endif -%} |
| 56 |
{{ name }} |
| 57 |
{%- endfor -%} |
| 58 |
{% endif %} |
| 59 |
|
| 60 |
{% endif %} |
| 61 |
how_many: | |
| 62 |
{{ query.matched | length }} |