| 1 |
language: el |
| 2 |
responses: |
| 3 |
intents: |
| 4 |
HassGetState: |
| 5 |
|
| 6 |
|
| 7 |
one: | |
| 8 |
{{ slots.name | capitalize }} έχει κατάσταση {{ state.state_with_unit }} |
| 9 |
|
| 10 |
one_yesno: | |
| 11 |
{% if query.matched %} |
| 12 |
Ναι |
| 13 |
{% else %} |
| 14 |
Όχι, {{ state.state_with_unit }} |
| 15 |
{% endif %} |
| 16 |
|
| 17 |
any: | |
| 18 |
{% if query.matched %} |
| 19 |
{% set match = query.matched | map(attribute="name") | sort | list %} |
| 20 |
{% if match | length > 4 %} |
| 21 |
Ναι, {{ match[:3] | join(", ") }} και {{ (match | length - 3) }} ακόμα |
| 22 |
{%- else -%} |
| 23 |
Ναι, |
| 24 |
{% for name in match -%} |
| 25 |
{% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} και {% endif -%} |
| 26 |
{{ name }} |
| 27 |
{%- endfor -%} |
| 28 |
{% endif %} |
| 29 |
{% else %} |
| 30 |
Όχι |
| 31 |
{% endif %} |
| 32 |
|
| 33 |
all: | |
| 34 |
{% if not query.unmatched: %} |
| 35 |
Ναι |
| 36 |
{% else %} |
| 37 |
{% set no_match = query.unmatched | map(attribute="name") | sort | list %} |
| 38 |
{% if no_match | length > 4 %} |
| 39 |
Όχι, δεν ισχύει για {{ no_match[:3] | join(", ") }} και {{ (no_match | length - 3) }} ακόμα |
| 40 |
{%- else -%} |
| 41 |
Όχι, δεν ισχύει για |
| 42 |
{% for name in no_match -%} |
| 43 |
{% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} και {% endif -%} |
| 44 |
{{ name }} |
| 45 |
{%- endfor %} |
| 46 |
{% endif %} |
| 47 |
{% endif %} |
| 48 |
|
| 49 |
which: | |
| 50 |
{% if not query.matched %} |
| 51 |
Κανένα αποτέλεσμα |
| 52 |
{% else: %} |
| 53 |
{% set match = query.matched | map(attribute="name") | sort | list %} |
| 54 |
{% if match | length > 4 %} |
| 55 |
{{ match[:3] | join(", ") }} και {{ (match | length - 3) }} ακόμα |
| 56 |
{% else %} |
| 57 |
{%- for name in match -%} |
| 58 |
{% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} και {% endif -%} |
| 59 |
{{ name }} |
| 60 |
{%- endfor -%} |
| 61 |
{% endif %} |
| 62 |
{% endif %} |
| 63 |
|
| 64 |
how_many: | |
| 65 |
{{ query.matched | length }} |
| 66 |
|
| 67 |
where: | |
| 68 |
{% if state == "not_home" %} |
| 69 |
{{ slots.name | capitalize }} είναι εκτός σπιτιού |
| 70 |
{% else %} |
| 71 |
{{ slots.name | capitalize }} είναι στο {{ state.state }} |
| 72 |
{% endif %} |