From 6bb4abd9d1a24d076b07862f119d7697c17431df Mon Sep 17 00:00:00 2001 From: Karolis Date: Sat, 26 Oct 2024 16:44:37 +0300 Subject: [PATCH 01/92] Update _common.yaml (#1834) --- sentences/lt/_common.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sentences/lt/_common.yaml b/sentences/lt/_common.yaml index 1d1b6da020..80dd39f110 100644 --- a/sentences/lt/_common.yaml +++ b/sentences/lt/_common.yaml @@ -44,7 +44,7 @@ lists: to: 100 temperature_unit: values: - - in: "c|celcij(us|o|as|aus)" + - in: "c|celsij(us|o|as|aus)" out: "celsius" - in: "f|farenheit(as|o)" out: "fahrenheit" @@ -56,7 +56,7 @@ lists: out: "off" on_off_domains: values: - - in: švies(a|os|ų) + - in: švies(a|os|ų|ą) out: light - in: ventiliatori(us|ai|ų) out: fan From 7f46d4bc46448859bff80ea9bd0295a2fda12bda Mon Sep 17 00:00:00 2001 From: Karolis Date: Sat, 26 Oct 2024 17:15:06 +0300 Subject: [PATCH 02/92] [LT] Update HassTurnOff.yaml (#1832) --- responses/lt/HassTurnOff.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/responses/lt/HassTurnOff.yaml b/responses/lt/HassTurnOff.yaml index 2c6ac839c4..286cacaac1 100644 --- a/responses/lt/HassTurnOff.yaml +++ b/responses/lt/HassTurnOff.yaml @@ -3,7 +3,7 @@ responses: intents: HassTurnOff: default: "Išjungtas {{ slots.name }}" - lights_area: "Visa šviesa išjungta {{ slots.area }}" + lights_area: "Visos šviesos išjungtos {{ slots.area }}" fans_area: "Visi ventilatoriai išjungti {{ slots.area }}" cover: "Uždarytas {{ slots.name }}" cover_area: "Viskas uždaryta {{ slots.area }}" From 99a67e0bfd10a781e8fcc60034861728aaa3beb2 Mon Sep 17 00:00:00 2001 From: Viktor Nagy <126671+nagyv@users.noreply.github.com> Date: Sat, 26 Oct 2024 16:38:38 +0200 Subject: [PATCH 03/92] Update README with devcontainer recommendation (#2347) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7a49dfad8b..da8339ae26 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,9 @@ See the [documentation](docs/README.md) for more information. # Development -Checkout the repository and get a development environment with `script/setup`. This will create a new virtual environment in the `venv` directory of the repository, and install all necessary requirements. - -Before developing, always activate your virtual environment with `source venv/bin/activate`. +The easiest way to start contributing is by using [devcontainers](https://containers.dev/). +The repository is configured for devcontainer support. +Please, check how you can use devcontainers with your favourite IDE. ## Run tests From 9630368742f83f46e8db513c1e18093468a8f762 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 06:39:45 +0100 Subject: [PATCH 04/92] Bump mypy from 1.12.1 to 1.13.0 (#2429) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 3ec59787c2..4dc3bdab84 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ jinja2==3.1.4 black==24.10.0 flake8==7.1.1 isort==5.13.2 -mypy==1.12.1 +mypy==1.13.0 pylint==3.3.1 pytest==8.3.3 pytest-xdist[psutil]==3.6.1 From 35fa56894ba059787bce61576e0d1e683362a211 Mon Sep 17 00:00:00 2001 From: Darren Griffin Date: Mon, 28 Oct 2024 10:29:59 +0000 Subject: [PATCH 05/92] [en] Add "take off/from" timer to decrease (#2428) --- .../en/homeassistant_HassDecreaseTimer.yaml | 39 ++++++++++++------- tests/en/homeassistant_HassDecreaseTimer.yaml | 8 ++++ 2 files changed, 33 insertions(+), 14 deletions(-) diff --git a/sentences/en/homeassistant_HassDecreaseTimer.yaml b/sentences/en/homeassistant_HassDecreaseTimer.yaml index d3c2dce337..f750458436 100644 --- a/sentences/en/homeassistant_HassDecreaseTimer.yaml +++ b/sentences/en/homeassistant_HassDecreaseTimer.yaml @@ -3,19 +3,30 @@ language: "en" intents: HassDecreaseTimer: data: + # Remove... - sentences: - - "remove from[ the| my] timer" - - "remove from[ the| my] timer" - - "remove from[ the| my] timer for " - - "remove from[ the| my] {area} timer" - - "remove from[ the| my] timer in " - - "remove from[ the| my] {timer_name:name} timer" - - "remove from[ the| my] timer (named|called|for) {timer_name:name}" + - "remove from [the|my] timer" + - "remove from [the|my] timer" + - "remove from [the|my] timer for " + - "remove from [the|my] {area} timer" + - "remove from [the|my] timer in " + - "remove from [the|my] {timer_name:name} timer" + - "remove from [the|my] timer (named|called|for) {timer_name:name}" + # Take... - sentences: - - "decrease[ the| my] timer by " - - "decrease[ the| my] timer by " - - "decrease[ the| my] timer for by " - - "decrease[ the| my] {area} timer by " - - "decrease[ the| my] timer in by " - - "decrease[ the| my] {timer_name:name} timer by " - - "decrease[ the| my] timer (named|called|for) {timer_name:name} by " + - "take [from|off] [the|my] timer" + - "take [from|off] [the|my] timer" + - "take [from|off] [the|my] timer for " + - "take [from|off] [the|my] {area} timer" + - "take [from|off] [the|my] timer in " + - "take [from|off] [the|my] {timer_name:name} timer" + - "take [from|off] [the|my] timer (named|called|for) {timer_name:name}" + # Decrease... + - sentences: + - "decrease [the|my] timer by " + - "decrease [the|my] timer by " + - "decrease [the|my] timer for by " + - "decrease [the|my] {area} timer by " + - "decrease [the|my] timer in by " + - "decrease [the|my] {timer_name:name} timer by " + - "decrease [the|my] timer (named|called|for) {timer_name:name} by " diff --git a/tests/en/homeassistant_HassDecreaseTimer.yaml b/tests/en/homeassistant_HassDecreaseTimer.yaml index 8a739d2447..ff9a319c5a 100644 --- a/tests/en/homeassistant_HassDecreaseTimer.yaml +++ b/tests/en/homeassistant_HassDecreaseTimer.yaml @@ -3,6 +3,8 @@ language: en tests: - sentences: - "remove 5 minutes from timer" + - "take 5 minutes off my timer" + - "take 5 minutes from my timer" - "decrease my timer by 5 minutes" intent: name: HassDecreaseTimer @@ -13,6 +15,8 @@ tests: - sentences: - "remove 5 minutes from 1 hour timer" - "remove 5 minutes from timer for 1 hour" + - "take 5 minutes off 1 hour timer" + - "take 5 minutes from 1 hour timer" - "decrease 1 hour timer by 5 minutes" - "decrease timer for 1 hour by 5 minutes" intent: @@ -25,6 +29,8 @@ tests: - sentences: - "remove 5 minutes from pizza timer" - "remove 5 minutes from timer named pizza" + - "take 5 minutes off pizza timer" + - "take 5 minutes from pizza timer" - "decrease pizza timer by 5 minutes" - "decrease timer for pizza by 5 minutes" intent: @@ -39,6 +45,8 @@ tests: - sentences: - "remove 5 minutes from kitchen timer" - "remove 5 minutes from timer in kitchen" + - "take 5 minutes off kitchen timer" + - "take 5 minutes from timer in kitchen" - "decrease timer in kitchen by 5 minutes" - "decrease kitchen timer by 5 minutes" intent: From 8262c731db7de5f170797461f7dd43eb41eb9251 Mon Sep 17 00:00:00 2001 From: Luiz Oliveira <134880920+luyzfernando08@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:58:53 -0300 Subject: [PATCH 06/92] [PT-BR] update sentences (person and timer) (#2431) * update sentences (person and timer) --- responses/pt-br/HassGetState.yaml | 124 ++++++++++++++++++++++- sentences/pt-br/_common.yaml | 111 +++++++++++++++++--- sentences/pt-br/person_HassGetState.yaml | 44 ++++++++ tests/pt-br/_fixtures.yaml | 12 +++ tests/pt-br/person_HassGetState.yaml | 65 ++++++++++++ 5 files changed, 341 insertions(+), 15 deletions(-) create mode 100644 sentences/pt-br/person_HassGetState.yaml create mode 100644 tests/pt-br/person_HassGetState.yaml diff --git a/responses/pt-br/HassGetState.yaml b/responses/pt-br/HassGetState.yaml index c2e39e6fef..e754c9a4b6 100644 --- a/responses/pt-br/HassGetState.yaml +++ b/responses/pt-br/HassGetState.yaml @@ -1,4 +1,126 @@ language: pt-br responses: intents: - HassGetState: {} + HassGetState: + # the number of names returned is limited to 4, in case there are more, the first 3 names and the remaining count is returned + # with 4 names or less, the names are joined with a comma ", " and the last name is joined with " and " + one: | + {{ state.state_with_unit }} + + one_yesno: | + {% if query.matched %} + Sim + {% else %} + Não, {{ state.state_with_unit }} + {% endif %} + + someone_yesno: | + {% if query.matched %} + Sim + {% else %} + Não, + {% if state.attributes.get("untranslated_state") == "not_home" %} + {{ state.state }} + {% else %} + em {{ state.state }} + {% endif %} + {% endif %} + + everybody: | + {% if not query.unmatched: %} + Sim + {% else %} + {% set no_match = query.unmatched | map(attribute="name") | sort | list %} + {% if no_match | length > 4 %} + Não, {{ no_match[:3] | join(", ") }} e {{ (no_match | length - 3) }} mas não estão + {% if state.attributes.get("untranslated_state") == "not_home" %} + {{ state.state }} + {% else %} + em {{ state.state }} + {% endif %} + {%- else -%} + Não, + {% for name in no_match -%} + {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} e {% endif -%} + {{ name }} + {%- endfor %} {% if no_match | length > 1 %}estão{% else %}está{% endif %} não + {% if state.attributes.get("untranslated_state") == "not_home" %} + {{ state.state }} + {% else %} + em {{ state.state }} + {% endif %} + {% endif %} + {% endif %} + + any: | + {% if query.matched %} + {% set match = query.matched | map(attribute="name") | sort | list %} + {% if match | length > 4 %} + Sim, {{ match[:3] | join(", ") }} e {{ (match | length - 3) }} mais + {%- else -%} + Sim, + {% for name in match -%} + {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} e {% endif -%} + {{ name }} + {%- endfor -%} + {% endif %} + {% else %} + Não + {% endif %} + + all: | + {% if not query.unmatched: %} + Sim + {% else %} + {% set no_match = query.unmatched | map(attribute="name") | sort | list %} + {% if no_match | length > 4 %} + Não, {{ no_match[:3] | join(", ") }} e {{ (no_match | length - 3) }} mas não + {%- else -%} + Não, + {% for name in no_match -%} + {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} e {% endif -%} + {{ name }} + {%- endfor %} não + {% endif %} + {% endif %} + + which: | + {% if not query.matched %} + (Nenhuma|Nenhum) + {% else: %} + {% set match = query.matched | map(attribute="name") | sort | list %} + {% if match | length > 4 %} + {{ match[:3] | join(", ") }} e {{ (match | length - 3) }} mas + {% else %} + {%- for name in match -%} + {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} e {% endif -%} + {{ name }} + {%- endfor -%} + {% endif %} + {% endif %} + + who: | + {% if not query.matched %} + Ninguem + {% else: %} + {% set match = query.matched | map(attribute="name") | sort | list %} + {% if match | length > 4 %} + {{ match[:3] | join(", ") }} e {{ (match | length - 3) }} outros + {% else %} + {%- for name in match -%} + {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} e {% endif -%} + {{ name }} + {%- endfor -%} + {% endif %} + {% endif %} + + how_many: | + {{ query.matched | length }} + + where: | + {{ slots.name | capitalize }} está + {% if state.attributes.get("untranslated_state") == "not_home" %} + {{ state.state }} + {% else %} + em {{ state.state }} + {% endif %} diff --git a/sentences/pt-br/_common.yaml b/sentences/pt-br/_common.yaml index b0c5489c05..3ffea40508 100644 --- a/sentences/pt-br/_common.yaml +++ b/sentences/pt-br/_common.yaml @@ -1,33 +1,45 @@ language: pt-br responses: errors: + # General errors no_intent: "Desculpe, não consegui entender seu pedido" + handle_error: "Um erro inesperado ocorreu ao processar o pedido" + + # Errors for when user is not logged in no_area: "Não existe nenhuma área chamada {{ area }}" + no_floor: "Desculpe, não existe nenhum piso chamado {{ floor }}" + no_domain: "Desculpe, eu não conheço nenhum {{ domain }}" no_domain_in_area: "{{ area }} não contem {{ domain }}" + no_domain_in_floor: "Desculpe, não existe nenhum(a) {{ domain }} no piso {{ floor }}." + no_device_class: "Desculpe, eu não conheço nenhuma {{ device_class }}" no_device_class_in_area: "{{ area }} não contém {{ device_class }}" + no_device_class_in_floor: "Desculpe, não existe nenhum(a) {{ device_class }} no piso {{ floor }}." no_entity: "Não existe nenhum dispositivo ou entidade com o nome {{ entity }}" - no_domain: "Desculpe, eu não conheço nenhum {{ domain }}" - no_device_class: "Desculpe, eu não conheço nenhuma {{ device_class }}" no_entity_in_area: "Desculpe, eu não conheço nenhum dispositivo chamado {{ entity }} na área {{ area }}" + no_entity_in_floor: "Desculpe, não existe nenhum dispositivo chamado {{ entity }} no piso {{ floor }}." + entity_wrong_state: "Desculpe, nenhum dispositivo está em {{ state | lower }}" + feature_not_supported: "Desculpe, nenhum dispositivo suporta as características requeridas" + + # Errors for when user is logged in and we can give more information no_entity_exposed: "Desculpe, {{ entity }} não está exposto" no_entity_in_area_exposed: "Desculpe, {{ entity }} na área {{ area }} não está exposto" + no_entity_in_floor_exposed: "Desculpe, {{ entity }} no piso {{ floor }} não está exposto." no_domain_exposed: "Desculpe, nenhum {{ domain }} está exposto" no_domain_in_area_exposed: "Desculpe, nenhum {{ domain }} na área {{ area }} está exposto" + no_domain_in_floor_exposed: "Desculpe, nenhum(a) {{ domain }} no piso {{ floor }} está exposto." no_device_class_exposed: "Desculpe, nenhuma {{ device_class }} está exposta" no_device_class_in_area_exposed: "Desculpe, nenhuma {{ device_class }} na área {{ area }} está exposta" - - no_floor: "Desculpe, não existe nenhum piso chamado {{ floor }}" - no_domain_in_floor: "Desculpe, não existe nenhum(a) {{ domain }} no piso {{ floor }}." - no_device_class_in_floor: "Desculpe, não existe nenhum(a) {{ device_class }} no piso {{ floor }}." - no_entity_in_floor: "Desculpe, não existe nenhum dispositivo chamado {{ entity }} no piso {{ floor }}." - no_entity_in_floor_exposed: "Desculpe, {{ entity }} no piso {{ floor }} não está exposto." - no_domain_in_floor_exposed: "Desculpe, nenhum(a) {{ domain }} no piso {{ floor }} está exposto." no_device_class_in_floor_exposed: "Desculpe, nenhum(a) {{ device_class }} no piso {{ floor }} está exposto." - duplicate_entities_in_floor: "Desculpe, existem vários dispositivos chamados {{ entity }} no piso {{ floor }}." + # Used when multiple (exposed) devices have the same name duplicate_entities: "Desculpe, há vários dispositivos chamados {{ entity }}" duplicate_entities_in_area: "Desculpe, há vários dispositivos chamados {{ entity }} na área {{ area }}" - handle_error: "Um erro inesperado ocorreu ao processar o pedido" + duplicate_entities_in_floor: "Desculpe, existem vários dispositivos chamados {{ entity }} no piso {{ floor }}." + + # Errors for timers + timer_not_found: "Desculpe, não consegui encontrar esse temporizador." + multiple_timers_matched: "Desculpe, mas sou incapaz de alinhar múltiplos temporizadores." + no_timer_support: "Desculpe, os temporizadores não são suportados nesse dispositivo." lists: color: values: @@ -151,12 +163,56 @@ lists: from: 0 to: 100 + presence_states: + values: + - in: "casa" + out: "home" + - in: "fora_de_casa" + out: "not_home" + + timer_seconds: + range: + from: 1 + to: 100 + timer_words_seconds: + values: + - in: "um|uma" + out: 1 + timer_minutes: + range: + from: 1 + to: 100 + timer_words_minutes: + values: + - in: "um|uma" + out: 1 + timer_hours: + range: + from: 1 + to: 100 + timer_words_hours: + values: + - in: "um|uma" + out: 1 + timer_half: + values: + - in: "meia" + out: 30 + timer_name: + wildcard: true + timer_command: + wildcard: true + zone: + wildcard: true + expansion_rules: abre: "(abra|abre|abrir)" adicionar: "(adicione|adiciona[r])" algum: "(algum|alguma|alguns|algumas)" brilho: "{brightness}[%| porcento]" colocar: "(coloque|coloca[r]|pôr|põe)" + cade: "(onde está [a|o]|cadê [a|o])" + cancela: "(cancele|cancela[r])" desligar: "(desliga|desligue|apaga|apague|desligar|apagar|desativa[r]|desative)" esta: "(está|estão|existe|existem)" fecha: "(fecha|feche|fechar)" @@ -165,13 +221,40 @@ expansion_rules: muda: "(põe|ponha|muda|mude|altera|coloca|deixa|pôr|mudar|alterar|colocar|deixar|definir|defina|setar|ajusta[r]|ajuste)" na_zona: "([no|na]|[da|do]) {area}" nome: "[(o[s]|a[s])] {name}" + piso: "[do] [(piso|andar)] [de] {floor}" + position: "{position}[[ ]%| por cento]" por: "(pôr|põe|ponha|definir|defina|setar|ajusta[r]|ajuste)" qual: "(que|qual|qual é|quais)" temperatura: "{temperature}[°| graus] [{temperature_unit}]" - zona: "[(o|os|a|as)] {area}" - position: "{position}[[ ]%| por cento]" volume: "{volume:volume_level}[[ ]%| por cento]" - piso: "[do] [(piso|andar)] [de] {floor}" + zona: "[(o|os|a|as)] {area}" + + # Context awareness expansion rules + casa: "(casa|apartamento)" + + # Timers + temporizador: "[o ][meu ](alarme|cronômetro|timer)" + temporizadores: "[os ][meus ](alarmes|cronômetros|timers)" + + nb_seconds: "({timer_seconds:seconds}|{timer_words_seconds:seconds})" + nb_minutes: "({timer_minutes:minutes}|{timer_words_minutes:minutes})" + nb_hours: "({timer_hours:hours}|{timer_words_hours:hours})" + nb_start_seconds: "({timer_seconds:start_seconds}|{timer_words_seconds:start_seconds})" + nb_start_minutes: "({timer_minutes:start_minutes}|{timer_words_minutes:start_minutes})" + nb_start_hours: "({timer_hours:start_hours}|{timer_words_hours:start_hours})" + + timer_set: "(alarme|inicia[r])" + timer_cancel: "(|)" + timer_duration_seconds: " segundo[s]" + timer_duration_minutes: " minuto[s][ [e ]]" + timer_duration_hours: " hora[s][ [e ]]" + timer_duration: "(||)" + + timer_start_seconds: " segundo[s]" + timer_start_minutes: " minuto[s][ [e ]]" + timer_start_hours: " hora[s][ [e ]]" + timer_start: "(||)" + skip_words: - "porfavor" - "por favor" diff --git a/sentences/pt-br/person_HassGetState.yaml b/sentences/pt-br/person_HassGetState.yaml new file mode 100644 index 0000000000..82beb1734a --- /dev/null +++ b/sentences/pt-br/person_HassGetState.yaml @@ -0,0 +1,44 @@ +language: pt-br +intents: + HassGetState: + data: + # https://www.home-assistant.io/integrations/person/ + - sentences: + - " " + response: where + requires_context: + domain: person + slots: + domain: person + + - sentences: + - "[(a|o)] está (em|na|no) {zone:state}" + response: one_yesno + requires_context: + domain: person + slots: + domain: person + + - sentences: + - "tem alguém (na|no|em) {zone:state}" + response: any + slots: + domain: person + + - sentences: + - "todos estão (na|no|em) {zone:state}" + response: all + slots: + domain: person + + - sentences: + - "quem está (em|na|no) {zone:state}" + response: which + slots: + domain: person + + - sentences: + - "quantas pessoas estão (em|na|no) {zone:state}" + response: how_many + slots: + domain: person diff --git a/tests/pt-br/_fixtures.yaml b/tests/pt-br/_fixtures.yaml index 9fd490f453..35e6884bfd 100644 --- a/tests/pt-br/_fixtures.yaml +++ b/tests/pt-br/_fixtures.yaml @@ -191,3 +191,15 @@ entities: - name: "Eva" id: "vacuum.eva" state: "idle" + + - name: "Luiz" + id: "person.luiz" + state: "casa" + + - name: "Daniela" + id: "person.daniela" + state: "Academia" + + - name: "Bernardo" + id: "person.bernardo" + state: "not_home" diff --git a/tests/pt-br/person_HassGetState.yaml b/tests/pt-br/person_HassGetState.yaml new file mode 100644 index 0000000000..0c6305a6b5 --- /dev/null +++ b/tests/pt-br/person_HassGetState.yaml @@ -0,0 +1,65 @@ +language: pt-br +tests: + - sentences: + - "onde está o Luiz" + intent: + name: HassGetState + slots: + domain: person + name: Luiz + response: "Luiz está em casa" + + - sentences: + - "cadê a Daniela" + intent: + name: HassGetState + slots: + domain: person + name: Daniela + response: "Daniela está em Academia" + + - sentences: + - "Daniela está em casa" + intent: + name: HassGetState + slots: + domain: person + name: Daniela + state: casa + response: "Não, Academia" + + - sentences: + - "tem alguém em casa" + intent: + name: HassGetState + slots: + domain: person + state: casa + response: "Sim, Luiz" + + - sentences: + - "todos estão em casa" + intent: + name: HassGetState + slots: + domain: person + state: casa + response: "Não, Bernardo e Daniela não" + + - sentences: + - "quem está em casa" + intent: + name: HassGetState + slots: + domain: person + state: casa + response: "Luiz" + + - sentences: + - "quantas pessoas estão em casa" + intent: + name: HassGetState + slots: + domain: person + state: casa + response: "1" From 3d7d15306e2930038b5ee46b042d89e4ffff48d4 Mon Sep 17 00:00:00 2001 From: Darren Griffin Date: Mon, 28 Oct 2024 19:48:44 +0000 Subject: [PATCH 07/92] [en] Standardised template spacing across sentences (#2430) --- .../en/climate_HassClimateGetTemperature.yaml | 18 +++++++----- sentences/en/cover_HassSetPosition.yaml | 6 ++-- sentences/en/cover_HassTurnOff.yaml | 4 +-- sentences/en/cover_HassTurnOn.yaml | 4 +-- sentences/en/fan_HassTurnOff.yaml | 8 +++--- sentences/en/fan_HassTurnOn.yaml | 8 +++--- .../en/homeassistant_HassCancelTimer.yaml | 14 +++++----- .../en/homeassistant_HassGetCurrentDate.yaml | 2 +- .../en/homeassistant_HassGetCurrentTime.yaml | 2 +- sentences/en/homeassistant_HassGetState.yaml | 4 +-- .../en/homeassistant_HassIncreaseTimer.yaml | 28 +++++++++---------- .../en/homeassistant_HassPauseTimer.yaml | 14 +++++----- .../en/homeassistant_HassStartTimer.yaml | 14 +++++----- .../en/homeassistant_HassUnpauseTimer.yaml | 14 +++++----- sentences/en/light_HassLightSet.yaml | 6 ++-- sentences/en/light_HassTurnOff.yaml | 16 +++++------ sentences/en/lock_HassGetState.yaml | 14 +++++----- sentences/en/lock_HassTurnOff.yaml | 6 ++-- sentences/en/lock_HassTurnOn.yaml | 8 +++--- sentences/en/media_player_HassMediaNext.yaml | 8 +++--- sentences/en/media_player_HassMediaPause.yaml | 4 +-- .../en/media_player_HassMediaPrevious.yaml | 18 ++++++------ .../en/media_player_HassMediaUnpause.yaml | 4 +-- sentences/en/media_player_HassSetVolume.yaml | 12 ++++---- ...shopping_list_HassShoppingListAddItem.yaml | 6 ++-- sentences/en/todo_HassListAddItem.yaml | 6 ++-- .../en/vacuum_HassVacuumReturnToBase.yaml | 2 +- sentences/en/valve_HassSetPosition.yaml | 2 +- sentences/en/weather_HassGetWeather.yaml | 8 +++--- 29 files changed, 132 insertions(+), 128 deletions(-) diff --git a/sentences/en/climate_HassClimateGetTemperature.yaml b/sentences/en/climate_HassClimateGetTemperature.yaml index f24078a791..2f30b5b963 100644 --- a/sentences/en/climate_HassClimateGetTemperature.yaml +++ b/sentences/en/climate_HassClimateGetTemperature.yaml @@ -2,14 +2,18 @@ language: "en" intents: HassClimateGetTemperature: data: + # What is... - sentences: - - " [the][ current] [in ]" - - "how (hot | cold | warm | cool) is it [in ]" - - "is it (hot | cold | warm | cool) [in ]" - - " [ current] " + - " [the] [current] [of] " + - " [the] [current] [in ]" + - " [current] " + - " [current] " + # How... - sentences: - - " [ current] " - - "[ the][ current] [ of] " - - "how (hot | cold | warm | cool) is " + - "how (hot|cold|warm|cool) is it [in ]" + - "how (hot|cold|warm|cool) is " + # Is it... + - sentences: + - "is it (hot|cold|warm|cool) [in ]" requires_context: domain: "climate" diff --git a/sentences/en/cover_HassSetPosition.yaml b/sentences/en/cover_HassSetPosition.yaml index 2719e48713..0a0cb41548 100644 --- a/sentences/en/cover_HassSetPosition.yaml +++ b/sentences/en/cover_HassSetPosition.yaml @@ -3,14 +3,14 @@ intents: HassSetPosition: data: - sentences: - - "(||) [position ]to " + - "(||) [position] to " requires_context: domain: cover slots: domain: cover - sentences: - - "(||) [the ]{cover_classes:device_class}[ position] (to ;in )" - - "(||) {cover_classes:device_class}[ position] to " + - "(||) [the] {cover_classes:device_class} [position] (to ;in )" + - "(||) {cover_classes:device_class} [position] to " slots: domain: cover diff --git a/sentences/en/cover_HassTurnOff.yaml b/sentences/en/cover_HassTurnOff.yaml index 689224e287..9ce2f37e74 100644 --- a/sentences/en/cover_HassTurnOff.yaml +++ b/sentences/en/cover_HassTurnOff.yaml @@ -23,9 +23,9 @@ intents: response: cover_device_class - sentences: - - " [the] {cover_classes:device_class}[]" + - " [the] {cover_classes:device_class} []" expansion_rules: - in_here: "[ in] here" + in_here: "[in] here" slots: domain: cover response: cover_device_class diff --git a/sentences/en/cover_HassTurnOn.yaml b/sentences/en/cover_HassTurnOn.yaml index 2600d9df4f..148c2816dc 100644 --- a/sentences/en/cover_HassTurnOn.yaml +++ b/sentences/en/cover_HassTurnOn.yaml @@ -23,9 +23,9 @@ intents: response: cover_device_class - sentences: - - " [the] {cover_classes:device_class}[]" + - " [the] {cover_classes:device_class} []" expansion_rules: - in_here: "[ in] here" + in_here: "[in] here" slots: domain: cover response: cover_device_class diff --git a/sentences/en/fan_HassTurnOff.yaml b/sentences/en/fan_HassTurnOff.yaml index 8f1c2bafb9..048b618809 100644 --- a/sentences/en/fan_HassTurnOff.yaml +++ b/sentences/en/fan_HassTurnOff.yaml @@ -23,12 +23,12 @@ intents: name: "all" - sentences: - - " off[ all][ the] fan[s][]" - - "[ all][ the] fan[s]( off;)" - - "[ all][ the] fan[s] off" + - " off [all] [the] fan[s] []" + - " [all] [the] fan[s] (off;)" + - " [all] [the] fan[s] off" response: "fans_area" expansion_rules: - in_here: "[ in] here" + in_here: "[in] here" slots: domain: fan requires_context: diff --git a/sentences/en/fan_HassTurnOn.yaml b/sentences/en/fan_HassTurnOn.yaml index 305c04b407..e54efc452b 100644 --- a/sentences/en/fan_HassTurnOn.yaml +++ b/sentences/en/fan_HassTurnOn.yaml @@ -14,12 +14,12 @@ intents: response: fans_area - sentences: - - " on[ all][ the] fan[s][]" - - "[ all][ the] fan[s]( on;)" - - "[ all][ the] fan[s] on" + - " on [all] [the] fan[s] []" + - " [all] [the] fan[s] (on;)" + - " [all] [the] fan[s] on" response: "fans_area" expansion_rules: - in_here: "[ in] here" + in_here: "[in] here" slots: domain: fan requires_context: diff --git a/sentences/en/homeassistant_HassCancelTimer.yaml b/sentences/en/homeassistant_HassCancelTimer.yaml index 8b08944741..c5eb4569df 100644 --- a/sentences/en/homeassistant_HassCancelTimer.yaml +++ b/sentences/en/homeassistant_HassCancelTimer.yaml @@ -4,10 +4,10 @@ intents: HassCancelTimer: data: - sentences: - - "[ the| my] timer" - - "[ the| my] timer" - - "[ the| my] timer for " - - "[ the| my] {area} timer" - - "[ the| my] timer in " - - "[ the| my] {timer_name:name} timer" - - "[ the| my] timer for {timer_name:name}" + - " [the|my] timer" + - " [the|my] timer" + - " [the|my] timer for " + - " [the|my] {area} timer" + - " [the|my] timer in " + - " [the|my] {timer_name:name} timer" + - " [the|my] timer for {timer_name:name}" diff --git a/sentences/en/homeassistant_HassGetCurrentDate.yaml b/sentences/en/homeassistant_HassGetCurrentDate.yaml index 66db6c35a3..5edf2ea202 100644 --- a/sentences/en/homeassistant_HassGetCurrentDate.yaml +++ b/sentences/en/homeassistant_HassGetCurrentDate.yaml @@ -4,4 +4,4 @@ intents: data: - sentences: - "(|tell me) (todays|today's|the current) date" - - "(|tell me) the date[ today]" + - "(|tell me) the date [today]" diff --git a/sentences/en/homeassistant_HassGetCurrentTime.yaml b/sentences/en/homeassistant_HassGetCurrentTime.yaml index 085e639c6c..04c534a70c 100644 --- a/sentences/en/homeassistant_HassGetCurrentTime.yaml +++ b/sentences/en/homeassistant_HassGetCurrentTime.yaml @@ -4,4 +4,4 @@ intents: data: - sentences: - "(|tell me) the [current] time" - - "what time is it[ [right ]now]" + - "what time is it [[right] now]" diff --git a/sentences/en/homeassistant_HassGetState.yaml b/sentences/en/homeassistant_HassGetState.yaml index f0924c5b2b..2dbcaa565b 100644 --- a/sentences/en/homeassistant_HassGetState.yaml +++ b/sentences/en/homeassistant_HassGetState.yaml @@ -22,8 +22,8 @@ intents: response: any - sentences: - - are all [the] {on_off_domains:domain} [(switched|turned|set[ to])] {on_off_states:state} [in ] - - are all [the] {on_off_domains:domain} in [(switched|turned|set[ to])] {on_off_states:state} + - are all [the] {on_off_domains:domain} [(switched|turned|set [to])] {on_off_states:state} [in ] + - are all [the] {on_off_domains:domain} in [(switched|turned|set [to])] {on_off_states:state} response: all - sentences: diff --git a/sentences/en/homeassistant_HassIncreaseTimer.yaml b/sentences/en/homeassistant_HassIncreaseTimer.yaml index bf801b0aed..f3b041626a 100644 --- a/sentences/en/homeassistant_HassIncreaseTimer.yaml +++ b/sentences/en/homeassistant_HassIncreaseTimer.yaml @@ -4,18 +4,18 @@ intents: HassIncreaseTimer: data: - sentences: - - "add to[ the| my] timer" - - "add to[ the| my] timer" - - "add to[ the| my] timer for " - - "add to[ the| my] {area} timer" - - "add to[ the| my] timer in " - - "add to[ the| my] {timer_name:name} timer" - - "add to[ the| my] timer (named|called|for) {timer_name:name}" + - "add to [the|my] timer" + - "add to [the|my] timer" + - "add to [the|my] timer for " + - "add to [the|my] {area} timer" + - "add to [the|my] timer in " + - "add to [the|my] {timer_name:name} timer" + - "add to [the|my] timer (named|called|for) {timer_name:name}" - sentences: - - "increase[ the| my] timer by " - - "increase[ the| my] timer by " - - "increase[ the| my] timer for by " - - "increase[ the| my] {area} timer by " - - "increase[ the| my] timer in by " - - "increase[ the| my] {timer_name:name} timer by " - - "increase[ the| my] timer (named|called|for) {timer_name:name} by " + - "increase [the|my] timer by " + - "increase [the|my] timer by " + - "increase [the|my] timer for by " + - "increase [the|my] {area} timer by " + - "increase [the|my] timer in by " + - "increase [the|my] {timer_name:name} timer by " + - "increase [the|my] timer (named|called|for) {timer_name:name} by " diff --git a/sentences/en/homeassistant_HassPauseTimer.yaml b/sentences/en/homeassistant_HassPauseTimer.yaml index 069baa06c8..fa37699a7b 100644 --- a/sentences/en/homeassistant_HassPauseTimer.yaml +++ b/sentences/en/homeassistant_HassPauseTimer.yaml @@ -4,10 +4,10 @@ intents: HassPauseTimer: data: - sentences: - - "pause[ the| my] timer" - - "pause[ the| my] timer" - - "pause[ the| my] timer for " - - "pause[ the| my] {area} timer" - - "pause[ the| my] timer in " - - "pause[ the| my] {timer_name:name} timer" - - "pause[ the| my] timer (named|called|for) {timer_name:name}" + - "pause [the|my] timer" + - "pause [the|my] timer" + - "pause [the|my] timer for " + - "pause [the|my] {area} timer" + - "pause [the|my] timer in " + - "pause [the|my] {timer_name:name} timer" + - "pause [the|my] timer (named|called|for) {timer_name:name}" diff --git a/sentences/en/homeassistant_HassStartTimer.yaml b/sentences/en/homeassistant_HassStartTimer.yaml index 7370689a9c..e15d4f9058 100644 --- a/sentences/en/homeassistant_HassStartTimer.yaml +++ b/sentences/en/homeassistant_HassStartTimer.yaml @@ -4,15 +4,15 @@ intents: HassStartTimer: data: - sentences: - - " timer" - "timer for " - - " timer for {timer_name:name}" - "timer for (named|called) {timer_name:name}" - - "[ a| the| my] timer" - - "[ a| the| my] timer for " - - "[ a| the| my] timer (named|called|for) {timer_name:name}" - - "[ a| the| my] timer (named|called) {timer_name:name} for " - - "[ a| the| my] timer for (named|called) {timer_name:name}" + - " timer" + - " timer for {timer_name:name}" + - " [a|the|my] timer" + - " [a|the|my] timer for " + - " [a|the|my] timer (named|called|for) {timer_name:name}" + - " [a|the|my] timer (named|called) {timer_name:name} for " + - " [a|the|my] timer for (named|called) {timer_name:name}" - sentences: - "{timer_command:conversation_command} in " - "in {timer_command:conversation_command}" diff --git a/sentences/en/homeassistant_HassUnpauseTimer.yaml b/sentences/en/homeassistant_HassUnpauseTimer.yaml index 4c5a9c775a..eb2fbefb79 100644 --- a/sentences/en/homeassistant_HassUnpauseTimer.yaml +++ b/sentences/en/homeassistant_HassUnpauseTimer.yaml @@ -4,10 +4,10 @@ intents: HassUnpauseTimer: data: - sentences: - - "(resume|continue)[ the| my] timer" - - "(resume|continue)[ the| my] timer" - - "(resume|continue)[ the| my] timer for " - - "(resume|continue)[ the| my] {area} timer" - - "(resume|continue)[ the| my] timer in " - - "(resume|continue)[ the| my] timer (named|called|for) {timer_name:name}" - - "(resume|continue)[ the| my] {timer_name:name} timer" + - "(resume|continue) [the|my] timer" + - "(resume|continue) [the|my] timer" + - "(resume|continue) [the|my] timer for " + - "(resume|continue) [the|my] {area} timer" + - "(resume|continue) [the|my] timer in " + - "(resume|continue) [the|my] timer (named|called|for) {timer_name:name}" + - "(resume|continue) [the|my] {timer_name:name} timer" diff --git a/sentences/en/light_HassLightSet.yaml b/sentences/en/light_HassLightSet.yaml index c2bc6edec4..a67063cfee 100644 --- a/sentences/en/light_HassLightSet.yaml +++ b/sentences/en/light_HassLightSet.yaml @@ -33,7 +33,7 @@ intents: - "[] [the] brightness to " - "[] [the] brightness (;to )" expansion_rules: - in_here: "[ in] here" + in_here: "[in] here" response: "brightness" requires_context: area: @@ -59,7 +59,7 @@ intents: - "[] [the] brightness to [the] {brightness_level:brightness}" - "[] [the] brightness (;to [the] {brightness_level:brightness})" expansion_rules: - in_here: "[ in] here" + in_here: "[in] here" response: "brightness" requires_context: area: @@ -86,7 +86,7 @@ intents: - "[] [[the] color of] [all] [to] {color}" - "[] [[the] color of] [all] (;[to] {color})" expansion_rules: - in_here: "[ in] here" + in_here: "[in] here" response: "color" requires_context: area: diff --git a/sentences/en/light_HassTurnOff.yaml b/sentences/en/light_HassTurnOff.yaml index fb9c497706..42609657cf 100644 --- a/sentences/en/light_HassTurnOff.yaml +++ b/sentences/en/light_HassTurnOff.yaml @@ -25,14 +25,14 @@ intents: # Turn off all lights in the home - sentences: + - " off " - " off " + - " off" - " off " - - "deactivate " - - " off " - " off " - - "deactivate " - - " off" - " off " + - "deactivate " + - "deactivate " - "deactivate " response: "light_all" slots: @@ -41,15 +41,15 @@ intents: # Turn off lights in the same area as a satellite device - sentences: - " off " - - " off " - " off" - - " off" - " off " - " off " + - " off " + - " off " + - " off" + - " off" - "deactivate " - "deactivate " - - " off" - - " off " - "deactivate " - " (off|out)" response: "lights_area" diff --git a/sentences/en/lock_HassGetState.yaml b/sentences/en/lock_HassGetState.yaml index 14a269bc70..72312ce3e8 100644 --- a/sentences/en/lock_HassGetState.yaml +++ b/sentences/en/lock_HassGetState.yaml @@ -3,7 +3,7 @@ intents: HassGetState: data: - sentences: - - "(is|are) ([];{lock_states:state}[ in ])" + - "(is|are) ([];{lock_states:state} [in ])" response: one_yesno requires_context: domain: lock @@ -11,32 +11,32 @@ intents: domain: lock - sentences: - - "((is|are)[ there]|do I have) any ([];{lock_states:state}[ in ])" - - "((is|are)[ there]|do I have) any ([];{lock_states:state} [ in ])" + - "((is|are) [there]|do I have) any ([];{lock_states:state} [in ])" + - "((is|are) [there]|do I have) any ([];{lock_states:state} [in ])" response: any slots: domain: lock - sentences: - - "are all ([];{lock_states:state}[ in ])" + - "are all ([];{lock_states:state} [in ])" response: all slots: domain: lock - sentences: - - "(which|what) (is|are) ([];{lock_states:state}[ in ])" + - "(which|what) (is|are) ([];{lock_states:state} [in ])" response: which slots: domain: lock - sentences: - - "how many (is|are) ([];{lock_states:state}[ in ])" + - "how many (is|are) ([];{lock_states:state} [in ])" response: how_many slots: domain: lock - sentences: - - "tell me the[ current] status of [ in ][ ]" + - "tell me the [current] status of [in ] []" response: one requires_context: domain: lock diff --git a/sentences/en/lock_HassTurnOff.yaml b/sentences/en/lock_HassTurnOff.yaml index 492a657aff..739ec6bc61 100644 --- a/sentences/en/lock_HassTurnOff.yaml +++ b/sentences/en/lock_HassTurnOff.yaml @@ -3,14 +3,14 @@ intents: HassTurnOff: data: - sentences: - - "unlock [ in ]" + - "unlock [in ]" requires_context: domain: lock response: lock - sentences: - - "unlock[ all] [ in] " - - "unlock[ all] [ ]" + - "unlock [all] [in] " + - "unlock [all] []" slots: domain: "lock" name: "all" diff --git a/sentences/en/lock_HassTurnOn.yaml b/sentences/en/lock_HassTurnOn.yaml index 92b2dc4825..d9fc53272b 100644 --- a/sentences/en/lock_HassTurnOn.yaml +++ b/sentences/en/lock_HassTurnOn.yaml @@ -3,15 +3,15 @@ intents: HassTurnOn: data: - sentences: - - "lock [ in ]" + - "lock [in ]" requires_context: domain: lock response: lock - sentences: - - "lock[ all] [ in] " - - "lock[ all] [ ]" - - "lock all[ of] " + - "lock [all] [in] " + - "lock [all] []" + - "lock all [of] " slots: domain: "lock" response: lock diff --git a/sentences/en/media_player_HassMediaNext.yaml b/sentences/en/media_player_HassMediaNext.yaml index dcfdaa075c..20b7fe678e 100644 --- a/sentences/en/media_player_HassMediaNext.yaml +++ b/sentences/en/media_player_HassMediaNext.yaml @@ -4,15 +4,15 @@ intents: data: - sentences: - "next [track|item] [on|for] " - - "(skip [(to [the ]next [(song|track)]|([the ](song|track)|this [(song|track)]) )];[on ])" + - "(skip [(to [the] next [(song|track)]|([the] (song|track)|this [(song|track)]) )];[on] )" requires_context: domain: media_player - sentences: - "next [track|item]" - - "(skip [(to [the ]next [(song|track)]|([the ](song|track)|this [(song|track)]))])" + - "(skip [(to [the] next [(song|track)]|([the] (song|track)|this [(song|track)]))])" requires_context: area: slot: true - sentences: - - "next [track|item] [in ]" - - "(skip [(to [the ]next [(song|track)]|([the ](song|track)|this [(song|track)]) )];[in ])" + - "next [track|item] [in] " + - "(skip [(to [the] next [(song|track)]|([the] (song|track)|this [(song|track)]) )];[in] )" diff --git a/sentences/en/media_player_HassMediaPause.yaml b/sentences/en/media_player_HassMediaPause.yaml index a6c3a7dc4a..9aced17587 100644 --- a/sentences/en/media_player_HassMediaPause.yaml +++ b/sentences/en/media_player_HassMediaPause.yaml @@ -12,5 +12,5 @@ intents: area: slot: true - sentences: - - "pause[ [the |my ](music|[tv ]show[s]|media[ player[s]]) ][ in] " - - "pause (music|[tv ]show[s]|media[ player[s]])" + - "pause [[the|my] (music|[tv] show[s]|media [player[s]])] [in] " + - "pause (music|[tv] show[s]|media [player[s]])" diff --git a/sentences/en/media_player_HassMediaPrevious.yaml b/sentences/en/media_player_HassMediaPrevious.yaml index 5dd43358cf..61d6b8415b 100644 --- a/sentences/en/media_player_HassMediaPrevious.yaml +++ b/sentences/en/media_player_HassMediaPrevious.yaml @@ -3,19 +3,19 @@ intents: HassMediaPrevious: data: - sentences: - - "(go back[ to the (previous|last) (song|track)];[on ])" - - "replay [the (previous|last) (song|track) ]on " - - " (play|replay) [the ](previous|last)[ (song|track)][ again]" + - "(go back [to the (previous|last) (song|track)];[on] )" + - "replay [the (previous|last) (song|track)] on " + - " (play|replay) [the] (previous|last) [(song|track)] [again]" requires_context: domain: media_player - sentences: - - "go back[ to the (previous|last) (song|track)]" - - "replay[ the (previous|last) (song|track)][ again]" - - "play [the ](previous|last)[ (song|track)][ again]" + - "go back [to the (previous|last) (song|track)]" + - "replay [the (previous|last) (song|track)] [again]" + - "play [the] (previous|last) [(song|track)] [again]" requires_context: area: slot: true - sentences: - - "go back[ to the (previous|last) (song|track)] [in ]" - - "(replay[ the (previous|last) (song|track)][ again];[in ])" - - "(play[ the] (previous|last) [(song|track) ][again];[in ])" + - "go back [to the (previous|last) (song|track)] [in] " + - "(replay [the (previous|last) (song|track)] [again];[in] )" + - "(play [the] (previous|last) [(song|track) ][again];[in] )" diff --git a/sentences/en/media_player_HassMediaUnpause.yaml b/sentences/en/media_player_HassMediaUnpause.yaml index 89c9915c5b..5dcfba36bb 100644 --- a/sentences/en/media_player_HassMediaUnpause.yaml +++ b/sentences/en/media_player_HassMediaUnpause.yaml @@ -12,5 +12,5 @@ intents: area: slot: true - sentences: - - "(unpause|resume)[ [the |my ](music|[tv ]show[s]|media[ player[s]]) ][ in] " - - "(unpause|resume) (music|[tv ]show[s]|media[ player[s]])" + - "(unpause|resume) [[the|my] (music|[tv] show[s]|media [player[s]])] [in] " + - "(unpause|resume) (music|[tv] show[s]|media [player[s]])" diff --git a/sentences/en/media_player_HassSetVolume.yaml b/sentences/en/media_player_HassSetVolume.yaml index 908d56f429..1aa7dc5653 100644 --- a/sentences/en/media_player_HassSetVolume.yaml +++ b/sentences/en/media_player_HassSetVolume.yaml @@ -5,8 +5,8 @@ intents: - sentences: - " volume to " - "turn [volume] (up|down) to " - - "( the volume to ;[on ])" - - "(turn (the volume;(up|down)) to ;[on ])" + - "( the volume to ;[on] )" + - "(turn (the volume;(up|down)) to ;[on] )" requires_context: domain: media_player - sentences: @@ -20,7 +20,7 @@ intents: - sentences: - " volume to " - "turn [volume] (up|down) to " - - "turn [volume] (up|down) to [in ]" - - "( the volume to ;[in ])" - - " the volume [in ] to " - - "(turn (the volume;(up|down)) to ;[in ])" + - "turn [volume] (up|down) to [in] " + - "( the volume to ;[in] )" + - " the volume [in] to " + - "(turn (the volume;(up|down)) to ;[in] )" diff --git a/sentences/en/shopping_list_HassShoppingListAddItem.yaml b/sentences/en/shopping_list_HassShoppingListAddItem.yaml index 480ae1678f..4f8a15a549 100644 --- a/sentences/en/shopping_list_HassShoppingListAddItem.yaml +++ b/sentences/en/shopping_list_HassShoppingListAddItem.yaml @@ -3,9 +3,9 @@ intents: HassShoppingListAddItem: data: - sentences: - - add to - - put (on|in) + - add to + - put (on|in) response: item_added expansion_rules: - my_list: "[ my| the][ shopping] list" + my_list: "[my|the] [shopping] list" item: "{shopping_list_item:item}" diff --git a/sentences/en/todo_HassListAddItem.yaml b/sentences/en/todo_HassListAddItem.yaml index 01fdd4fee9..a5faa8c5b3 100644 --- a/sentences/en/todo_HassListAddItem.yaml +++ b/sentences/en/todo_HassListAddItem.yaml @@ -3,11 +3,11 @@ intents: HassListAddItem: data: - sentences: - - add to - - put (on|in) + - add to + - put (on|in) response: item_added requires_context: domain: todo expansion_rules: - my_list: "[ my| the] {name}[ list]" + my_list: "[my|the] {name} [list]" item: "{shopping_list_item:item}" diff --git a/sentences/en/vacuum_HassVacuumReturnToBase.yaml b/sentences/en/vacuum_HassVacuumReturnToBase.yaml index 47e0ea3315..92405ea041 100644 --- a/sentences/en/vacuum_HassVacuumReturnToBase.yaml +++ b/sentences/en/vacuum_HassVacuumReturnToBase.yaml @@ -3,6 +3,6 @@ intents: HassVacuumReturnToBase: data: - sentences: - - "return [to base]" + - "return [to base]" requires_context: domain: vacuum diff --git a/sentences/en/valve_HassSetPosition.yaml b/sentences/en/valve_HassSetPosition.yaml index 01117c8bf1..bf58c69aa2 100644 --- a/sentences/en/valve_HassSetPosition.yaml +++ b/sentences/en/valve_HassSetPosition.yaml @@ -3,7 +3,7 @@ intents: HassSetPosition: data: - sentences: - - "(||) [position ]to " + - "(||) [position] to " requires_context: domain: valve slots: diff --git a/sentences/en/weather_HassGetWeather.yaml b/sentences/en/weather_HassGetWeather.yaml index 52da7750cd..e36cb60e5b 100644 --- a/sentences/en/weather_HassGetWeather.yaml +++ b/sentences/en/weather_HassGetWeather.yaml @@ -3,10 +3,10 @@ intents: HassGetWeather: data: - sentences: - - "[ the] weather[ like]" + - " [the] weather [like]" - sentences: - - "[ the] weather[ like] (for|in|at) " - - "[ the] weather (for|in|at) [ like]" - - "[ the] weather[ like]" + - " [the] weather [like] (for|in|at) " + - " [the] weather (for|in|at) [like]" + - " [the] weather [like]" requires_context: domain: weather From 29eec5ac45dde5568555ecd250bce3ea5cc53245 Mon Sep 17 00:00:00 2001 From: JLo Date: Wed, 30 Oct 2024 14:45:21 +0100 Subject: [PATCH 08/92] Sunset the `fr-CA` language (#2435) --- CODEOWNERS | 4 -- languages.yaml | 4 -- .../fr-CA/HassClimateGetTemperature.yaml | 5 -- .../fr-CA/HassClimateSetTemperature.yaml | 5 -- responses/fr-CA/HassGetState.yaml | 4 -- responses/fr-CA/HassLightSet.yaml | 8 --- responses/fr-CA/HassTurnOff.yaml | 10 --- responses/fr-CA/HassTurnOn.yaml | 10 --- sentences/fr-CA/_common.yaml | 69 ------------------- .../climate_HassClimateGetTemperature.yaml | 8 --- .../climate_HassClimateSetTemperature.yaml | 8 --- sentences/fr-CA/cover_HassGetState.yaml | 4 -- sentences/fr-CA/cover_HassTurnOff.yaml | 19 ----- sentences/fr-CA/cover_HassTurnOn.yaml | 19 ----- sentences/fr-CA/fan_HassTurnOff.yaml | 13 ---- sentences/fr-CA/fan_HassTurnOn.yaml | 13 ---- .../fr-CA/homeassistant_HassGetState.yaml | 4 -- .../fr-CA/homeassistant_HassTurnOff.yaml | 13 ---- sentences/fr-CA/homeassistant_HassTurnOn.yaml | 13 ---- sentences/fr-CA/light_HassLightSet.yaml | 34 --------- sentences/fr-CA/light_HassTurnOff.yaml | 8 --- sentences/fr-CA/light_HassTurnOn.yaml | 8 --- tests/fr-CA/_fixtures.yaml | 31 --------- .../climate_HassClimateGetTemperature.yaml | 14 ---- .../climate_HassClimateSetTemperature.yaml | 24 ------- tests/fr-CA/cover_HassGetState.yaml | 2 - tests/fr-CA/cover_HassTurnOff.yaml | 22 ------ tests/fr-CA/cover_HassTurnOn.yaml | 22 ------ tests/fr-CA/fan_HassTurnOff.yaml | 11 --- tests/fr-CA/fan_HassTurnOn.yaml | 11 --- tests/fr-CA/homeassistant_HassGetState.yaml | 2 - tests/fr-CA/homeassistant_HassTurnOff.yaml | 62 ----------------- tests/fr-CA/homeassistant_HassTurnOn.yaml | 53 -------------- tests/fr-CA/light_HassLightSet.yaml | 67 ------------------ tests/fr-CA/light_HassTurnOff.yaml | 50 -------------- tests/fr-CA/light_HassTurnOn.yaml | 32 --------- website/src-11ty/_data/intentSummary.json | 43 +----------- 37 files changed, 1 insertion(+), 728 deletions(-) delete mode 100644 responses/fr-CA/HassClimateGetTemperature.yaml delete mode 100644 responses/fr-CA/HassClimateSetTemperature.yaml delete mode 100644 responses/fr-CA/HassGetState.yaml delete mode 100644 responses/fr-CA/HassLightSet.yaml delete mode 100644 responses/fr-CA/HassTurnOff.yaml delete mode 100644 responses/fr-CA/HassTurnOn.yaml delete mode 100644 sentences/fr-CA/_common.yaml delete mode 100644 sentences/fr-CA/climate_HassClimateGetTemperature.yaml delete mode 100644 sentences/fr-CA/climate_HassClimateSetTemperature.yaml delete mode 100644 sentences/fr-CA/cover_HassGetState.yaml delete mode 100644 sentences/fr-CA/cover_HassTurnOff.yaml delete mode 100644 sentences/fr-CA/cover_HassTurnOn.yaml delete mode 100644 sentences/fr-CA/fan_HassTurnOff.yaml delete mode 100644 sentences/fr-CA/fan_HassTurnOn.yaml delete mode 100644 sentences/fr-CA/homeassistant_HassGetState.yaml delete mode 100644 sentences/fr-CA/homeassistant_HassTurnOff.yaml delete mode 100644 sentences/fr-CA/homeassistant_HassTurnOn.yaml delete mode 100644 sentences/fr-CA/light_HassLightSet.yaml delete mode 100644 sentences/fr-CA/light_HassTurnOff.yaml delete mode 100644 sentences/fr-CA/light_HassTurnOn.yaml delete mode 100644 tests/fr-CA/_fixtures.yaml delete mode 100644 tests/fr-CA/climate_HassClimateGetTemperature.yaml delete mode 100644 tests/fr-CA/climate_HassClimateSetTemperature.yaml delete mode 100644 tests/fr-CA/cover_HassGetState.yaml delete mode 100644 tests/fr-CA/cover_HassTurnOff.yaml delete mode 100644 tests/fr-CA/cover_HassTurnOn.yaml delete mode 100644 tests/fr-CA/fan_HassTurnOff.yaml delete mode 100644 tests/fr-CA/fan_HassTurnOn.yaml delete mode 100644 tests/fr-CA/homeassistant_HassGetState.yaml delete mode 100644 tests/fr-CA/homeassistant_HassTurnOff.yaml delete mode 100644 tests/fr-CA/homeassistant_HassTurnOn.yaml delete mode 100644 tests/fr-CA/light_HassLightSet.yaml delete mode 100644 tests/fr-CA/light_HassTurnOff.yaml delete mode 100644 tests/fr-CA/light_HassTurnOn.yaml diff --git a/CODEOWNERS b/CODEOWNERS index 2964bdd272..ec5ab295e7 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -42,10 +42,6 @@ sentences/fr/ @jlpouffier @piitaya responses/fr/ @jlpouffier @piitaya tests/fr/ @jlpouffier @piitaya -sentences/fr-CA/ @charlesdagenais -responses/fr-CA/ @charlesdagenais -tests/fr-CA/ @charlesdagenais - sentences/gl/ @cibernox responses/gl/ @cibernox tests/gl/ @cibernox diff --git a/languages.yaml b/languages.yaml index c89e9387b9..6311ea5784 100644 --- a/languages.yaml +++ b/languages.yaml @@ -62,10 +62,6 @@ fr: leaders: - jlpouffier - piitaya -fr-CA: - nativeName: Français (Canada) - leaders: - - charlesdagenais gl: nativeName: Galician leaders: diff --git a/responses/fr-CA/HassClimateGetTemperature.yaml b/responses/fr-CA/HassClimateGetTemperature.yaml deleted file mode 100644 index 0df25dd2c4..0000000000 --- a/responses/fr-CA/HassClimateGetTemperature.yaml +++ /dev/null @@ -1,5 +0,0 @@ -language: fr-CA -responses: - intents: - HassClimateGetTemperature: - default: "{{ state.state }} degrées" diff --git a/responses/fr-CA/HassClimateSetTemperature.yaml b/responses/fr-CA/HassClimateSetTemperature.yaml deleted file mode 100644 index 411eddb40e..0000000000 --- a/responses/fr-CA/HassClimateSetTemperature.yaml +++ /dev/null @@ -1,5 +0,0 @@ -language: fr-CA -responses: - intents: - HassClimateSetTemperature: - default: "Température réglé à {{ slots.temperature }} degrées" diff --git a/responses/fr-CA/HassGetState.yaml b/responses/fr-CA/HassGetState.yaml deleted file mode 100644 index 9aa918d184..0000000000 --- a/responses/fr-CA/HassGetState.yaml +++ /dev/null @@ -1,4 +0,0 @@ -language: fr-CA -responses: - intents: - HassGetState: {} diff --git a/responses/fr-CA/HassLightSet.yaml b/responses/fr-CA/HassLightSet.yaml deleted file mode 100644 index 646e185c8a..0000000000 --- a/responses/fr-CA/HassLightSet.yaml +++ /dev/null @@ -1,8 +0,0 @@ -language: fr-CA -responses: - intents: - HassLightSet: - brightness: "Luminosité de {{ slots.name }} réglé à {{ slots.brightness }}" - brightness_area: "Luminosité de {{ slots.area }} réglé à {{ slots.brightness }}" - color: "Couleur de {{ slots.name }} réglé à {{ slots.color }}" - color_area: "Couleur de {{ slots.area }} réglé à {{ slots.color }}" diff --git a/responses/fr-CA/HassTurnOff.yaml b/responses/fr-CA/HassTurnOff.yaml deleted file mode 100644 index 77718b4e2b..0000000000 --- a/responses/fr-CA/HassTurnOff.yaml +++ /dev/null @@ -1,10 +0,0 @@ -language: fr-CA -responses: - intents: - HassTurnOff: - default: "{{ slots.name }} éteint" - lights_area: "Lumières de {{ slots.area }} éteintes" - fans_area: "ventilateurs de {{ slots.area }} éteints" - cover: "{{ slots.name }} fermé" - cover_area: "Ouvrants de {{ slots.area }} fermés" - cover_device_class: "{{ slots.device_class }} fermé" diff --git a/responses/fr-CA/HassTurnOn.yaml b/responses/fr-CA/HassTurnOn.yaml deleted file mode 100644 index cae572ea1a..0000000000 --- a/responses/fr-CA/HassTurnOn.yaml +++ /dev/null @@ -1,10 +0,0 @@ -language: fr-CA -responses: - intents: - HassTurnOn: - default: "{{ slots.name }} allumé" - lights_area: "Lumières de {{ slots.area }} allumées" - fans_area: "Ventilateurs de {{ slots.area }} activé" - cover: "{{ slots.name }} ouvert" - cover_area: "Ouvrants de {{ slots.area }} ouverts" - cover_device_class: "{{ slots.device_class }} ouvert" diff --git a/sentences/fr-CA/_common.yaml b/sentences/fr-CA/_common.yaml deleted file mode 100644 index de88963e41..0000000000 --- a/sentences/fr-CA/_common.yaml +++ /dev/null @@ -1,69 +0,0 @@ -language: fr-CA -responses: - errors: - no_intent: "Désolé, je n'ai pas compris" - no_area: "Aucune zone appelée {{ area }}" - no_domain_in_area: "{{ area }} ne contient pas de {{ domain }}" - no_device_class_in_area: "{{ area }} ne contient pas de {{ device_class }}" - no_entity: "Aucun appareil ou entité appelé {{ entity }}" - handle_error: "Une erreur s'est produite pendant le traitement" -lists: - color: - values: - - in: "(blanc|blanche)" - out: "white" - - in: "(noir | noire)" - out: "black" - - in: "rouge" - out: "red" - - in: "orange" - out: "orange" - - in: "jaune" - out: "yellow" - - in: "(vert | verte)" - out: "green" - - in: "(bleu | bleue)" - out: "blue" - - in: "(violet | violette)" - out: "purple" - - in: "brun" - out: "brown" - - in: "rose" - out: "pink" - brightness: - range: - type: "percentage" - from: 0 - to: 100 - temperature: - range: - type: "temperature" - from: 0 - to: 100 - temperature_unit: - values: - - "celsius" - - in: "c" - out: "celsius" - - "fahrenheit" - - in: "f" - out: "fahrenheit" -expansion_rules: - name: "([le | la | les] {name} | [l']{name})" - area: "([le | la ] {area} | [l']{area})" - brightness: "{brightness:brightness}[%| pourcent]" - temperature: "{temperature}[°| degrés] [{temperature_unit}]" - regle: "(règle | met | ajuste | change)" - allume: "(allume | active | démarre | ouvre)" - eteins: "(éteint | éteins | désactive | stoppe | arrête | coupe | ferme )" - lumiere: "(la lumière | la lampe | l'ampoule)" - lumieres: "[les] (lumières | lampes | ampoules)" - ventilateur: "(le ventilateur | l'échangeur d'air | la fan)" - ventilateurs: "(les ventilateurs | les fans)" - dans: "(dans | du | de)" -skip_words: - - "s'il te plaît" - - "merci" - - "peux-tu" - - "s'il vous plaît" - - "Heille" diff --git a/sentences/fr-CA/climate_HassClimateGetTemperature.yaml b/sentences/fr-CA/climate_HassClimateGetTemperature.yaml deleted file mode 100644 index 38eabc29f3..0000000000 --- a/sentences/fr-CA/climate_HassClimateGetTemperature.yaml +++ /dev/null @@ -1,8 +0,0 @@ -language: fr-CA -intents: - HassClimateGetTemperature: - data: - - sentences: - - "Quelle est la température [ ]" - - "(Combien il fait | Combien fait-t'il | Il fait combien ) [ ]" - - "(Est-ce qu'il fait | fais-tu | il fais-tu) (chaud | froid | frette ) [in ]" diff --git a/sentences/fr-CA/climate_HassClimateSetTemperature.yaml b/sentences/fr-CA/climate_HassClimateSetTemperature.yaml deleted file mode 100644 index eb0038356c..0000000000 --- a/sentences/fr-CA/climate_HassClimateSetTemperature.yaml +++ /dev/null @@ -1,8 +0,0 @@ -language: fr-CA -intents: - HassClimateSetTemperature: - data: - - sentences: - - "(mets | changes | ajustes | règle ) la température à " - - "(mets | changes | ajustes | règle ) la température à " - - "(mets | changes | ajustes | règle ) la température à " diff --git a/sentences/fr-CA/cover_HassGetState.yaml b/sentences/fr-CA/cover_HassGetState.yaml deleted file mode 100644 index 1e95a3e600..0000000000 --- a/sentences/fr-CA/cover_HassGetState.yaml +++ /dev/null @@ -1,4 +0,0 @@ -language: fr-CA -intents: - HassGetState: - data: [] diff --git a/sentences/fr-CA/cover_HassTurnOff.yaml b/sentences/fr-CA/cover_HassTurnOff.yaml deleted file mode 100644 index 07a90c6977..0000000000 --- a/sentences/fr-CA/cover_HassTurnOff.yaml +++ /dev/null @@ -1,19 +0,0 @@ -language: fr-CA -intents: - HassTurnOff: - data: - - sentences: - - (ferme | baisse) [la] porte du garage - response: cover_device_class - slots: - device_class: garage - domain: cover - - sentences: - - (ferme | baisse) [les] (stores | toiles| rideaux) - response: cover_area - slots: - device_class: - - blind - - curtain - - shutter - domain: cover diff --git a/sentences/fr-CA/cover_HassTurnOn.yaml b/sentences/fr-CA/cover_HassTurnOn.yaml deleted file mode 100644 index 9db599a6fe..0000000000 --- a/sentences/fr-CA/cover_HassTurnOn.yaml +++ /dev/null @@ -1,19 +0,0 @@ -language: fr-CA -intents: - HassTurnOn: - data: - - sentences: - - ouvre [la] porte du garage - response: cover_device_class - slots: - device_class: garage - domain: cover - - sentences: - - ouvre [les] (stores | rideaux | toiles) - response: cover_area - slots: - device_class: - - blind - - curtain - - shutter - domain: cover diff --git a/sentences/fr-CA/fan_HassTurnOff.yaml b/sentences/fr-CA/fan_HassTurnOff.yaml deleted file mode 100644 index e0e783085e..0000000000 --- a/sentences/fr-CA/fan_HassTurnOff.yaml +++ /dev/null @@ -1,13 +0,0 @@ -language: fr-CA -intents: - HassTurnOff: - data: - - sentences: - - ([tous] | [toutes] ) [] - slots: - domain: fan - name: all - - sentences: - - [] [] - slots: - domain: fan diff --git a/sentences/fr-CA/fan_HassTurnOn.yaml b/sentences/fr-CA/fan_HassTurnOn.yaml deleted file mode 100644 index 07ee49d499..0000000000 --- a/sentences/fr-CA/fan_HassTurnOn.yaml +++ /dev/null @@ -1,13 +0,0 @@ -language: fr-CA -intents: - HassTurnOn: - data: - - sentences: - - " ([tous] | [toutes] ) ( | ) [] []" - slots: - domain: fan - name: all - - sentences: - - " ( | ) [] []" - slots: - domain: fan diff --git a/sentences/fr-CA/homeassistant_HassGetState.yaml b/sentences/fr-CA/homeassistant_HassGetState.yaml deleted file mode 100644 index 1e95a3e600..0000000000 --- a/sentences/fr-CA/homeassistant_HassGetState.yaml +++ /dev/null @@ -1,4 +0,0 @@ -language: fr-CA -intents: - HassGetState: - data: [] diff --git a/sentences/fr-CA/homeassistant_HassTurnOff.yaml b/sentences/fr-CA/homeassistant_HassTurnOff.yaml deleted file mode 100644 index 4ccfd69f31..0000000000 --- a/sentences/fr-CA/homeassistant_HassTurnOff.yaml +++ /dev/null @@ -1,13 +0,0 @@ -language: fr-CA -intents: - HassTurnOff: - data: - - sentences: - - [dans|du|de] - - - - sentences: - - (ferme | baisse) - response: cover - - sentences: - - (ferme | baisse) - response: cover_area diff --git a/sentences/fr-CA/homeassistant_HassTurnOn.yaml b/sentences/fr-CA/homeassistant_HassTurnOn.yaml deleted file mode 100644 index 275579e7a3..0000000000 --- a/sentences/fr-CA/homeassistant_HassTurnOn.yaml +++ /dev/null @@ -1,13 +0,0 @@ -language: fr-CA -intents: - HassTurnOn: - data: - - sentences: - - - - [dans|du|de] - - sentences: - - ouvre - response: cover - - sentences: - - ouvre - response: cover_area diff --git a/sentences/fr-CA/light_HassLightSet.yaml b/sentences/fr-CA/light_HassLightSet.yaml deleted file mode 100644 index 2f7b915929..0000000000 --- a/sentences/fr-CA/light_HassLightSet.yaml +++ /dev/null @@ -1,34 +0,0 @@ -language: fr-CA -intents: - HassLightSet: - data: - # brightness - - sentences: - - [la luminosité] [de] à - - à - response: brightness - requires_context: - domain: light - - sentences: - - [toutes] à - - à - slots: - name: all - response: brightness_area - - sentences: - - à - response: brightness_area - - sentences: - - [la couleur] [de | des] [toutes] de [avec la - couleur | de couleur | en] {color} - slots: - name: all - response: color_area - - sentences: - - [la couleur de] [avec la couleur | - de couleur | en] {color} - response: color_area - - sentences: - - [la couleur de] [avec la couleur | - de couleur | en] {color} - response: color diff --git a/sentences/fr-CA/light_HassTurnOff.yaml b/sentences/fr-CA/light_HassTurnOff.yaml deleted file mode 100644 index db88581f02..0000000000 --- a/sentences/fr-CA/light_HassTurnOff.yaml +++ /dev/null @@ -1,8 +0,0 @@ -language: fr-CA -intents: - HassTurnOff: - data: - - sentences: - - " [toutes] ( | ) (dans | du | de) " - slots: - domain: "light" diff --git a/sentences/fr-CA/light_HassTurnOn.yaml b/sentences/fr-CA/light_HassTurnOn.yaml deleted file mode 100644 index 4a1aed4c27..0000000000 --- a/sentences/fr-CA/light_HassTurnOn.yaml +++ /dev/null @@ -1,8 +0,0 @@ -language: fr-CA -intents: - HassTurnOn: - data: - - sentences: - - " [toutes] ( | ) (dans | du | de) " - slots: - domain: "light" diff --git a/tests/fr-CA/_fixtures.yaml b/tests/fr-CA/_fixtures.yaml deleted file mode 100644 index cdc59c79cb..0000000000 --- a/tests/fr-CA/_fixtures.yaml +++ /dev/null @@ -1,31 +0,0 @@ -language: fr-CA -areas: - - name: cuisine - id: kitchen - - name: salon - id: living_room - - name: chambre - id: bedroom - - name: garage - id: garage - - name: entrée - id: hall -entities: - - name: lumière du plafond - id: light.bedroom_lamp - area: bedroom - - name: lampe de chevet - id: light.bedside_lamp - area: bedroom - - name: interrupteur de la cuisine - id: switch.kitchen - area: kitchen - - name: ventilateur de plafond - id: fan.ceiling - area: living_room - - name: rideau gauche - id: cover.curtain_left - area: living_room - - name: thermostat du salon - id: climate.living_room - area: living_room diff --git a/tests/fr-CA/climate_HassClimateGetTemperature.yaml b/tests/fr-CA/climate_HassClimateGetTemperature.yaml deleted file mode 100644 index 95a08eeab5..0000000000 --- a/tests/fr-CA/climate_HassClimateGetTemperature.yaml +++ /dev/null @@ -1,14 +0,0 @@ -language: fr-CA -tests: - - sentences: - - Quelle est la température? - - Combien il fait? - intent: - name: HassClimateGetTemperature - - sentences: - - Quelle est la température du salon? - - Il fait combien dans le salon? - intent: - name: HassClimateGetTemperature - slots: - area: salon diff --git a/tests/fr-CA/climate_HassClimateSetTemperature.yaml b/tests/fr-CA/climate_HassClimateSetTemperature.yaml deleted file mode 100644 index 08e2923187..0000000000 --- a/tests/fr-CA/climate_HassClimateSetTemperature.yaml +++ /dev/null @@ -1,24 +0,0 @@ -language: fr-CA -tests: - - sentences: - - mets la température à 30° - intent: - name: HassClimateSetTemperature - slots: - temperature: 30 - - sentences: - - mets la température à 30° C - intent: - name: HassClimateSetTemperature - slots: - temperature: 30 - temperature_unit: celsius - - sentences: - - mets la température de la chambre à 50 degrés Fahrenheit - - mets la température à 50 degrés Fahrenheit dans la chambre - intent: - name: HassClimateSetTemperature - slots: - area: chambre - temperature: 50 - temperature_unit: fahrenheit diff --git a/tests/fr-CA/cover_HassGetState.yaml b/tests/fr-CA/cover_HassGetState.yaml deleted file mode 100644 index f827ce67a2..0000000000 --- a/tests/fr-CA/cover_HassGetState.yaml +++ /dev/null @@ -1,2 +0,0 @@ -language: fr-CA -tests: [] diff --git a/tests/fr-CA/cover_HassTurnOff.yaml b/tests/fr-CA/cover_HassTurnOff.yaml deleted file mode 100644 index 36314b7cdf..0000000000 --- a/tests/fr-CA/cover_HassTurnOff.yaml +++ /dev/null @@ -1,22 +0,0 @@ -language: fr-CA -tests: - - sentences: - - ferme la porte du garage - intent: - name: HassTurnOff - slots: - device_class: garage - domain: cover - response: garage fermé - - sentences: - - ferme les stores dans le cuisine - intent: - name: HassTurnOff - slots: - area: cuisine - device_class: - - blind - - curtain - - shutter - domain: cover - response: Ouvrants de cuisine fermés diff --git a/tests/fr-CA/cover_HassTurnOn.yaml b/tests/fr-CA/cover_HassTurnOn.yaml deleted file mode 100644 index e0cb07e6cf..0000000000 --- a/tests/fr-CA/cover_HassTurnOn.yaml +++ /dev/null @@ -1,22 +0,0 @@ -language: fr-CA -tests: - - sentences: - - ouvre la porte du garage - intent: - name: HassTurnOn - slots: - device_class: garage - domain: cover - response: garage ouvert - - sentences: - - ouvre les stores dans le cuisine - intent: - name: HassTurnOn - slots: - area: cuisine - device_class: - - blind - - curtain - - shutter - domain: cover - response: Ouvrants de cuisine ouverts diff --git a/tests/fr-CA/fan_HassTurnOff.yaml b/tests/fr-CA/fan_HassTurnOff.yaml deleted file mode 100644 index ae4b0df05c..0000000000 --- a/tests/fr-CA/fan_HassTurnOff.yaml +++ /dev/null @@ -1,11 +0,0 @@ -language: fr-CA -tests: - - sentences: - - éteins les ventilateurs du salon - - éteins tous les ventilateurs du salon - intent: - name: HassTurnOff - slots: - area: salon - domain: fan - name: all diff --git a/tests/fr-CA/fan_HassTurnOn.yaml b/tests/fr-CA/fan_HassTurnOn.yaml deleted file mode 100644 index 35f147360f..0000000000 --- a/tests/fr-CA/fan_HassTurnOn.yaml +++ /dev/null @@ -1,11 +0,0 @@ -language: fr-CA -tests: - - sentences: - - allume tous les ventilateurs du salon - - active les ventilateurs du salon - intent: - name: HassTurnOn - slots: - area: salon - domain: fan - name: all diff --git a/tests/fr-CA/homeassistant_HassGetState.yaml b/tests/fr-CA/homeassistant_HassGetState.yaml deleted file mode 100644 index f827ce67a2..0000000000 --- a/tests/fr-CA/homeassistant_HassGetState.yaml +++ /dev/null @@ -1,2 +0,0 @@ -language: fr-CA -tests: [] diff --git a/tests/fr-CA/homeassistant_HassTurnOff.yaml b/tests/fr-CA/homeassistant_HassTurnOff.yaml deleted file mode 100644 index 3c1bfe26e8..0000000000 --- a/tests/fr-CA/homeassistant_HassTurnOff.yaml +++ /dev/null @@ -1,62 +0,0 @@ -language: fr-CA -tests: - - sentences: - - éteins la lumière du plafond de la chambre - - arrête la lumière du plafond de la chambre - - ferme la lumière du plafond de la chambre - - stoppe la lumière du plafond de la chambre - intent: - name: HassTurnOff - slots: - name: lumière du plafond - area: chambre - - sentences: - - éteins le ventilateur de plafond - - ferme le ventilateur de plafond - - arrête le ventilateur de plafond - intent: - name: HassTurnOff - slots: - name: ventilateur de plafond - - sentences: - - stoppe le ventilateur de plafond de la chambre - intent: - name: HassTurnOff - slots: - name: ventilateur de plafond - area: chambre - - sentences: - - ferme le rideau gauche - - baisse le rideau gauche - intent: - name: HassTurnOff - slots: - name: rideau gauche - - sentences: - - ferme le rideau gauche du salon - - baisse le rideau gauche du salon - intent: - name: HassTurnOff - slots: - name: rideau gauche - area: salon - - sentences: - - ferme la porte du garage - - baisse la porte du garage - intent: - name: HassTurnOff - slots: - device_class: garage - domain: cover - - sentences: - - ferme les stores de la chambre - - baisse les stores de la chambre - intent: - name: HassTurnOff - slots: - area: chambre - device_class: - - blind - - curtain - - shutter - domain: cover diff --git a/tests/fr-CA/homeassistant_HassTurnOn.yaml b/tests/fr-CA/homeassistant_HassTurnOn.yaml deleted file mode 100644 index 5eafb1b11d..0000000000 --- a/tests/fr-CA/homeassistant_HassTurnOn.yaml +++ /dev/null @@ -1,53 +0,0 @@ -language: fr-CA -tests: - - sentences: - - allume le ventilateur de plafond - intent: - name: HassTurnOn - slots: - name: ventilateur de plafond - - sentences: - - allume l'interrupteur de la cuisine - - ouvre l'interrupteur de la cuisine - intent: - name: HassTurnOn - slots: - name: interrupteur de la cuisine - - sentences: - - allume le ventilateur de plafond du salon - intent: - name: HassTurnOn - slots: - name: ventilateur de plafond - area: salon - - sentences: - - ouvre le rideau gauche - intent: - name: HassTurnOn - slots: - name: rideau gauche - - sentences: - - ouvre le rideau gauche du salon - intent: - name: HassTurnOn - slots: - name: rideau gauche - area: salon - - sentences: - - ouvre la porte du garage - intent: - name: HassTurnOn - slots: - device_class: garage - domain: cover - - sentences: - - ouvre les stores de la cuisine - intent: - name: HassTurnOn - slots: - area: cuisine - device_class: - - blind - - curtain - - shutter - domain: cover diff --git a/tests/fr-CA/light_HassLightSet.yaml b/tests/fr-CA/light_HassLightSet.yaml deleted file mode 100644 index ba043bb9ed..0000000000 --- a/tests/fr-CA/light_HassLightSet.yaml +++ /dev/null @@ -1,67 +0,0 @@ -language: fr-CA -tests: - - sentences: - - règle la lumière du plafond de la chambre à 50 pourcent - - met la lumière du plafond de la chambre à 50% - intent: - name: HassLightSet - slots: - brightness: 50 - name: lumière du plafond - area: chambre - - sentences: - - règle la lampe de chevet de la chambre à 50 pourcent - - met la lampe de chevet de la chambre à 50 pourcent - intent: - name: HassLightSet - slots: - brightness: 50 - name: lampe de chevet - area: chambre - - sentences: - - règle la lampe de chevet à 50 pourcent - - met la lampe de chevet à 50 pourcent - - lampe de chevet à 50 pourcent - intent: - name: HassLightSet - slots: - brightness: 50 - name: lampe de chevet - - sentences: - - met la lumière du plafond de la chambre en rouge - - met la lumière du plafond de la chambre de couleur rouge - - règle la lumière du plafond de la chambre avec la couleur rouge - intent: - name: HassLightSet - slots: - area: chambre - color: red - name: lumière du plafond - - sentences: - - met la lumière du plafond de la chambre en blanc - - met la lumière du plafond de la chambre de couleur blanche - intent: - name: HassLightSet - slots: - area: chambre - color: white - name: lumière du plafond - - sentences: - - met la couleur de la lampe de chevet de la chambre en rouge - - règle la couleur de la lampe de chevet de la chambre en rouge - intent: - name: HassLightSet - slots: - area: chambre - color: red - name: lampe de chevet - - - sentences: - - met la couleur des lampes de la chambre en rouge - - ajuste les lampes de la chambre avec la couleur rouge - intent: - name: HassLightSet - slots: - area: chambre - color: red - name: all diff --git a/tests/fr-CA/light_HassTurnOff.yaml b/tests/fr-CA/light_HassTurnOff.yaml deleted file mode 100644 index 26a21a8afe..0000000000 --- a/tests/fr-CA/light_HassTurnOff.yaml +++ /dev/null @@ -1,50 +0,0 @@ -language: fr-CA -tests: - - sentences: - - Éteins la lumière dans le salon - - Éteins les lumières dans le salon - - Éteins la lumière du salon - intent: - name: HassTurnOff - slots: - area: salon - domain: light - - sentences: - - Éteins toutes les lumières du salon - intent: - name: HassTurnOff - slots: - area: salon - domain: light - - sentences: - - Éteins la lumière dans l'entrée - - Éteins les lumières dans l'entrée - - Éteins la lumière de l'entrée - intent: - name: HassTurnOff - slots: - area: entrée - domain: light - - sentences: - - Éteins toutes les lumières de l'entrée - intent: - name: HassTurnOff - slots: - area: entrée - domain: light - - sentences: - - Éteins la lumière de la chambre - - Éteins les lumières dans la chambre - - Éteins la lumière dans la chambre - intent: - name: HassTurnOff - slots: - domain: light - area: chambre - - sentences: - - Éteins toutes les lumières de la chambre - intent: - name: HassTurnOff - slots: - domain: light - area: chambre diff --git a/tests/fr-CA/light_HassTurnOn.yaml b/tests/fr-CA/light_HassTurnOn.yaml deleted file mode 100644 index 7cee4a6981..0000000000 --- a/tests/fr-CA/light_HassTurnOn.yaml +++ /dev/null @@ -1,32 +0,0 @@ -language: fr-CA -tests: - - sentences: - - Allume la lumière dans le salon - - Allume les lumières dans le salon - - Ouvre la lumière du salon - - Allume toutes les lumières du salon - intent: - name: HassTurnOn - slots: - area: salon - domain: light - - sentences: - - Allume la lumière dans l'entrée - - Allume les lumières dans l'entrée - - Allume la lumière de l'entrée - - ouvre toutes les lumières de l'entrée - intent: - name: HassTurnOn - slots: - area: entrée - domain: light - - sentences: - - Allume la lumière de la chambre - - Allume les lumières dans la chambre - - Allume la lumière dans la chambre - - Allume toutes les lumières de la chambre - intent: - name: HassTurnOn - slots: - area: chambre - domain: light diff --git a/website/src-11ty/_data/intentSummary.json b/website/src-11ty/_data/intentSummary.json index 9d1ab0cd46..67154f793c 100644 --- a/website/src-11ty/_data/intentSummary.json +++ b/website/src-11ty/_data/intentSummary.json @@ -592,47 +592,6 @@ "errors_translated": true, "usable": false }, - { - "language": "fr-CA", - "native_name": "Fran\u00e7ais (Canada)", - "leaders": [ - "charlesdagenais" - ], - "intents": { - "HassTurnOn": 9, - "HassTurnOff": 9, - "HassGetState": 0, - "HassLightSet": 8, - "HassClimateSetTemperature": 3, - "HassClimateGetTemperature": 3 - }, - "used_responses": { - "HassTurnOn": 4, - "HassTurnOff": 4, - "HassGetState": 0, - "HassLightSet": 4, - "HassClimateSetTemperature": 1, - "HassClimateGetTemperature": 1 - }, - "responses": { - "HassTurnOn": 6, - "HassTurnOff": 6, - "HassGetState": 0, - "HassLightSet": 4, - "HassClimateSetTemperature": 1, - "HassClimateGetTemperature": 1 - }, - "intent_responses_translated": { - "HassLightSet": true, - "HassClimateSetTemperature": true, - "HassGetState": true, - "HassTurnOff": true, - "HassTurnOn": true, - "HassClimateGetTemperature": true - }, - "errors_translated": true, - "usable": false - }, { "language": "gl", "native_name": "Galician", @@ -2095,4 +2054,4 @@ "usable": true } ] -} +} \ No newline at end of file From b836a819ab1190623f1ecaa5ba8fc2e3307eaca5 Mon Sep 17 00:00:00 2001 From: djankovd <102512660+djankovd@users.noreply.github.com> Date: Wed, 30 Oct 2024 21:09:06 +0100 Subject: [PATCH 09/92] [PL] typo in CurrentDate and CurrentTime sentences (#2434) --- sentences/pl/homeassistant_HassGetCurrentDate.yaml | 2 +- sentences/pl/homeassistant_HassGetCurrentTime.yaml | 2 +- tests/pl/homeassistant_HassGetCurrentDate.yaml | 2 +- tests/pl/homeassistant_HassGetCurrentTime.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sentences/pl/homeassistant_HassGetCurrentDate.yaml b/sentences/pl/homeassistant_HassGetCurrentDate.yaml index 9a8309a43c..1d3a79377d 100644 --- a/sentences/pl/homeassistant_HassGetCurrentDate.yaml +++ b/sentences/pl/homeassistant_HassGetCurrentDate.yaml @@ -8,4 +8,4 @@ intents: - "jaki mamy (dzisiaj|dziś|obecnie) dzień[ tygodnia]" - "jaki [dzisiaj |obecnie ]jest dzień[ tygodnia]" - "jaki jest (dzisi[aj|ejszy]|obecnie) dzień[ tygodnia]" - - "podaj mi [dzisiejszą |obcną |aktualną |bieżącą ]datę" + - "podaj mi [dzisiejszą |obecną |aktualną |bieżącą ]datę" diff --git a/sentences/pl/homeassistant_HassGetCurrentTime.yaml b/sentences/pl/homeassistant_HassGetCurrentTime.yaml index bc1a02daa9..c2c66f9394 100644 --- a/sentences/pl/homeassistant_HassGetCurrentTime.yaml +++ b/sentences/pl/homeassistant_HassGetCurrentTime.yaml @@ -6,4 +6,4 @@ intents: - "jaką mamy [teraz |obecnie ]godzinę" - "jaka [jest ][teraz |obecnie ]godzina" - "która [jest |jest teraz ]godzina" - - "podaj mi [obcną |aktualną ]godzinę" + - "podaj mi [obecną |aktualną ]godzinę" diff --git a/tests/pl/homeassistant_HassGetCurrentDate.yaml b/tests/pl/homeassistant_HassGetCurrentDate.yaml index 4e476b36bf..471be2ddd8 100644 --- a/tests/pl/homeassistant_HassGetCurrentDate.yaml +++ b/tests/pl/homeassistant_HassGetCurrentDate.yaml @@ -12,7 +12,7 @@ tests: - "jaki jest obecnie dzień" - "podaj mi datę" - "podaj mi dzisiejszą datę" - - "podaj mi obcną datę" + - "podaj mi obecną datę" - "podaj mi aktualną datę" - "podaj mi bieżącą datę" - "jaka jest dzisiejsza data" diff --git a/tests/pl/homeassistant_HassGetCurrentTime.yaml b/tests/pl/homeassistant_HassGetCurrentTime.yaml index 008b592d13..82afcf76a0 100644 --- a/tests/pl/homeassistant_HassGetCurrentTime.yaml +++ b/tests/pl/homeassistant_HassGetCurrentTime.yaml @@ -14,7 +14,7 @@ tests: - "która jest godzina" - "która jest teraz godzina" - "podaj mi godzinę" - - "podaj mi obcną godzinę" + - "podaj mi obecną godzinę" - "podaj mi aktualną godzinę" intent: name: HassGetCurrentTime From dd7c0a325cd7a855baae1949893b28ef916e8e7f Mon Sep 17 00:00:00 2001 From: Darren Griffin Date: Thu, 31 Oct 2024 16:17:40 +0000 Subject: [PATCH 10/92] Update en language leaders (#2436) Add @mrdarrengriffin as EN language leader --- CODEOWNERS | 6 +++--- languages.yaml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CODEOWNERS b/CODEOWNERS index ec5ab295e7..39046d2f9f 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -26,9 +26,9 @@ sentences/de-CH/ @dontinelli responses/de-CH/ @dontinelli tests/de-CH/ @dontinelli -sentences/en/ @tetele -responses/en/ @tetele -tests/en/ @tetele +sentences/en/ @mrdarrengriffin @tetele +responses/en/ @mrdarrengriffin @tetele +tests/en/ @mrdarrengriffin @tetele sentences/es/ @davefx responses/es/ @davefx diff --git a/languages.yaml b/languages.yaml index 6311ea5784..e615b3f015 100644 --- a/languages.yaml +++ b/languages.yaml @@ -41,6 +41,7 @@ en: nativeName: English leaders: - tetele + - mrdarrengriffin es: nativeName: Español leaders: From 040274129d584c86fa608486bf2d52fbc4c91232 Mon Sep 17 00:00:00 2001 From: Ian Date: Thu, 31 Oct 2024 09:45:12 -0700 Subject: [PATCH 11/92] Add vividboarder as an en language leader (#2437) --- CODEOWNERS | 6 +++--- languages.yaml | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CODEOWNERS b/CODEOWNERS index 39046d2f9f..b817e205a1 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -26,9 +26,9 @@ sentences/de-CH/ @dontinelli responses/de-CH/ @dontinelli tests/de-CH/ @dontinelli -sentences/en/ @mrdarrengriffin @tetele -responses/en/ @mrdarrengriffin @tetele -tests/en/ @mrdarrengriffin @tetele +sentences/en/ @mrdarrengriffin @tetele @vividboarder +responses/en/ @mrdarrengriffin @tetele @vividboarder +tests/en/ @mrdarrengriffin @tetele @vividboarder sentences/es/ @davefx responses/es/ @davefx diff --git a/languages.yaml b/languages.yaml index e615b3f015..57fd21dd3f 100644 --- a/languages.yaml +++ b/languages.yaml @@ -40,8 +40,9 @@ el: en: nativeName: English leaders: - - tetele - mrdarrengriffin + - tetele + - vividboarder es: nativeName: Español leaders: From 24c4c5712688becdafbcea4a547faed4475dc5a1 Mon Sep 17 00:00:00 2001 From: salleq Date: Fri, 1 Nov 2024 09:29:45 +0200 Subject: [PATCH 12/92] [FI] Added floors to error messages (#2440) --- sentences/fi/_common.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sentences/fi/_common.yaml b/sentences/fi/_common.yaml index 44c68c3a00..b555a184cb 100644 --- a/sentences/fi/_common.yaml +++ b/sentences/fi/_common.yaml @@ -21,10 +21,13 @@ responses: no_domain_in_area_exposed: "Pahoittelut, yhtäkään {{ domain }} alueella {{ area }} ei ole asetettu näkyviin" no_device_class_exposed: "Pahoittelut, yhtäkään {{ device_class }} ei ole asetettu näkyviin" no_device_class_in_area_exposed: "Pahoittelut, yhtäkään {{ device_class }} alueella {{ area }} ei ole asetettu näkyviin" + no_entity_in_floor_exposed: "Pahoittelut, {{ entity }} ei ole asetettu näkyviin kerroksessa {{ floor }}" + no_domain_in_floor_exposed: "Pahoittelut, yhtäkään {{ domain }} ei ole asetettu näkyviin kerroksessa {{ floor }}" + no_device_class_in_floor_exposed: "Pahoittelut, yhtäkään {{ device_class }} ei ole asetettu näkyviin kerroksessa {{ floor }}" # Used when multiple (exposed) devices have the same name - duplicate_entities: "Pahoittelut, useita laitteita nimeltä {{ entity }} löytyi" - duplicate_entities_in_area: "Pahoittelut, useita laitteita nimeltä {{ entity }} löytyi alueelta {{ area }}" + duplicate_entities: "Pahoittelut, useita laitteita nimellä {{ entity }} löytyi" + duplicate_entities_in_area: "Pahoittelut, useita laitteita nimellä {{ entity }} löytyi alueelta {{ area }}" lists: color: From 33744b703dedf1ceaea56131217825463700f6c1 Mon Sep 17 00:00:00 2001 From: Ian Date: Fri, 1 Nov 2024 00:42:15 -0700 Subject: [PATCH 13/92] [en] Add min as a represenation of minimum (#2438) --- sentences/en/_common.yaml | 2 +- tests/en/light_HassLightSet.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sentences/en/_common.yaml b/sentences/en/_common.yaml index de7ec7f10b..ea5ea5e168 100644 --- a/sentences/en/_common.yaml +++ b/sentences/en/_common.yaml @@ -76,7 +76,7 @@ lists: values: - in: (max|maximum|highest) out: 100 - - in: (minimum|lowest) + - in: (min|minimum|lowest) out: 1 on_off_states: values: diff --git a/tests/en/light_HassLightSet.yaml b/tests/en/light_HassLightSet.yaml index 52364ce4fc..71769b97c4 100644 --- a/tests/en/light_HassLightSet.yaml +++ b/tests/en/light_HassLightSet.yaml @@ -79,6 +79,7 @@ tests: - "set the bedroom lamp brightness to the lowest" - "change the brightness of bedroom lamp to lowest" - "set the bedroom lamp to minimum brightness" + - "set the bedroom lamp to min brightness" intent: name: HassLightSet slots: @@ -91,6 +92,7 @@ tests: - "change the brightness of bedroom to lowest" - "set the bedroom brightness to the minimum" - "change the bedroom to minimum brightness" + - "change the bedroom to min brightness" intent: name: HassLightSet slots: From a6796931fe10ddbb1a7392cdfc13f4c647786059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A5le=20Stor=C3=B8=20Hauknes?= Date: Fri, 1 Nov 2024 23:51:07 +0100 Subject: [PATCH 14/92] [nb] Get current date and time (#2443) * Add get current date and time * Fix test * Update get current time * Update get current date --- responses/nb/HassGetCurrentDate.yaml | 53 +++++++++++++++++++ responses/nb/HassGetCurrentTime.yaml | 8 +++ .../nb/homeassistant_HassGetCurrentDate.yaml | 11 ++++ .../nb/homeassistant_HassGetCurrentTime.yaml | 9 ++++ .../nb/homeassistant_HassGetCurrentDate.yaml | 12 +++++ .../nb/homeassistant_HassGetCurrentTime.yaml | 16 ++++++ 6 files changed, 109 insertions(+) create mode 100644 responses/nb/HassGetCurrentDate.yaml create mode 100644 responses/nb/HassGetCurrentTime.yaml create mode 100644 sentences/nb/homeassistant_HassGetCurrentDate.yaml create mode 100644 sentences/nb/homeassistant_HassGetCurrentTime.yaml create mode 100644 tests/nb/homeassistant_HassGetCurrentDate.yaml create mode 100644 tests/nb/homeassistant_HassGetCurrentTime.yaml diff --git a/responses/nb/HassGetCurrentDate.yaml b/responses/nb/HassGetCurrentDate.yaml new file mode 100644 index 0000000000..28d916d7d4 --- /dev/null +++ b/responses/nb/HassGetCurrentDate.yaml @@ -0,0 +1,53 @@ +language: nb +responses: + intents: + HassGetCurrentDate: + default: > + {% set months = { + 1: 'januar', + 2: 'februar', + 3: 'mars', + 4: 'april', + 5: 'mai', + 6: 'juni', + 7: 'juli', + 8: 'august', + 9: 'september', + 10: 'oktober', + 11: 'november', + 12: 'desember', + } %} + {% set ordinal = { + 1: '1.', + 2: '2.', + 3: '3.', + 4: '4.', + 5: '5.', + 6: '6.', + 7: '7.', + 8: '8.', + 9: '9.', + 10: '10.', + 11: '11.', + 12: '12.', + 13: '13.', + 14: '14.', + 15: '15.', + 16: '16.', + 17: '17.', + 18: '18.', + 19: '19.', + 20: '20.', + 21: '21.', + 22: '22.', + 23: '23.', + 24: '24.', + 25: '25.', + 26: '26.', + 27: '27.', + 28: '28.', + 29: '29.', + 30: '30.', + 31: '31.', + } %} + {{ ordinal[slots.date.day] }} {{ months[slots.date.month] }} {{ slots.date.year }} diff --git a/responses/nb/HassGetCurrentTime.yaml b/responses/nb/HassGetCurrentTime.yaml new file mode 100644 index 0000000000..42afa0e6cd --- /dev/null +++ b/responses/nb/HassGetCurrentTime.yaml @@ -0,0 +1,8 @@ +language: nb +responses: + intents: + HassGetCurrentTime: + default: > + {% set minute_str = '{0:02d}'.format(slots.time.minute) %} + {% set hour_str = '{0:02d}'.format(slots.time.hour) %} + {{ hour_str }}:{{ minute_str }} diff --git a/sentences/nb/homeassistant_HassGetCurrentDate.yaml b/sentences/nb/homeassistant_HassGetCurrentDate.yaml new file mode 100644 index 0000000000..66ee2c5d93 --- /dev/null +++ b/sentences/nb/homeassistant_HassGetCurrentDate.yaml @@ -0,0 +1,11 @@ +language: nb +intents: + HassGetCurrentDate: + data: + - sentences: + - "hvilken dato er det[ i dag]" + - "hva er dagens dato" + - "(si|fortell) meg datoen" + - "hvilken dag er det[ i dag]" + - "kan du (si|fortelle)[ meg] hvilken dato det er[ i dag| nå]" + - "dato[en][ i dag| nå]" diff --git a/sentences/nb/homeassistant_HassGetCurrentTime.yaml b/sentences/nb/homeassistant_HassGetCurrentTime.yaml new file mode 100644 index 0000000000..aa874d9f8d --- /dev/null +++ b/sentences/nb/homeassistant_HassGetCurrentTime.yaml @@ -0,0 +1,9 @@ +language: nb +intents: + HassGetCurrentTime: + data: + - sentences: + - "(hva|hvor mye) er klokka[ akkurat][ nå]" + - "[kan [du ]](si|fortell[e]) meg hva klokka er[ akkurat][ nå]" + - "hvilken tid er det[ nå]" + - "(hvilket|nåværende) klokkeslett[ er det[ nå]]" diff --git a/tests/nb/homeassistant_HassGetCurrentDate.yaml b/tests/nb/homeassistant_HassGetCurrentDate.yaml new file mode 100644 index 0000000000..b6eaf3c433 --- /dev/null +++ b/tests/nb/homeassistant_HassGetCurrentDate.yaml @@ -0,0 +1,12 @@ +language: nb +tests: + - sentences: + - "hvilken dato er det" + - "hvilken dato er det i dag" + - "hva er dagens dato" + - "si meg datoen" + - "fortell meg datoen" + - "hvilken dag er det" + intent: + name: HassGetCurrentDate + response: 17. september 2013 diff --git a/tests/nb/homeassistant_HassGetCurrentTime.yaml b/tests/nb/homeassistant_HassGetCurrentTime.yaml new file mode 100644 index 0000000000..54e3bcb735 --- /dev/null +++ b/tests/nb/homeassistant_HassGetCurrentTime.yaml @@ -0,0 +1,16 @@ +language: nb +tests: + - sentences: + - "hva er klokka" + - "hva er klokka akkurat nå" + - "hva er klokka nå" + - "hvor mye er klokka" + - "hvor mye er klokka nå" + - "kan du si meg hva klokka er" + - "si meg hva klokka er" + - "si meg hva klokka er nå" + - "hvilken tid er det" + - "hvilket klokkeslett er det" + intent: + name: HassGetCurrentTime + response: "01:02" From 5b13da5a8e8adbe699664c4280bcdc22b2fa1f29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A5le=20Stor=C3=B8=20Hauknes?= Date: Sat, 2 Nov 2024 00:13:21 +0100 Subject: [PATCH 15/92] [nb] Add timers (#2441) * Add files * Add hass timer status * Add more files * Update timer * Fix pause timer * Fix timer status * Fix cancel timer * Add unpause timer * Fix decrease timer * Fix increase timer * Start timer fixes * Fix start timer * Fix typos * Fix typos * Fix sentence --- responses/nb/HassCancelTimer.yaml | 6 + responses/nb/HassDecreaseTimer.yaml | 6 + responses/nb/HassIncreaseTimer.yaml | 6 + responses/nb/HassPauseTimer.yaml | 6 + responses/nb/HassStartTimer.yaml | 7 + responses/nb/HassTimerStatus.yaml | 91 +++++++++++++ responses/nb/HassUnpauseTimer.yaml | 6 + sentences/nb/_common.yaml | 35 +++++ .../nb/homeassistant_HassCancelTimer.yaml | 12 ++ .../nb/homeassistant_HassDecreaseTimer.yaml | 21 +++ .../nb/homeassistant_HassIncreaseTimer.yaml | 21 +++ .../nb/homeassistant_HassPauseTimer.yaml | 13 ++ .../nb/homeassistant_HassStartTimer.yaml | 24 ++++ .../nb/homeassistant_HassTimerStatus.yaml | 22 +++ .../nb/homeassistant_HassUnpauseTimer.yaml | 13 ++ tests/nb/_fixtures.yaml | 22 +++ tests/nb/homeassistant_HassCancelTimer.yaml | 48 +++++++ tests/nb/homeassistant_HassDecreaseTimer.yaml | 54 ++++++++ tests/nb/homeassistant_HassIncreaseTimer.yaml | 55 ++++++++ tests/nb/homeassistant_HassPauseTimer.yaml | 41 ++++++ tests/nb/homeassistant_HassStartTimer.yaml | 127 ++++++++++++++++++ tests/nb/homeassistant_HassTimerStatus.yaml | 52 +++++++ tests/nb/homeassistant_HassUnpauseTimer.yaml | 40 ++++++ 23 files changed, 728 insertions(+) create mode 100644 responses/nb/HassCancelTimer.yaml create mode 100644 responses/nb/HassDecreaseTimer.yaml create mode 100644 responses/nb/HassIncreaseTimer.yaml create mode 100644 responses/nb/HassPauseTimer.yaml create mode 100644 responses/nb/HassStartTimer.yaml create mode 100644 responses/nb/HassTimerStatus.yaml create mode 100644 responses/nb/HassUnpauseTimer.yaml create mode 100644 sentences/nb/homeassistant_HassCancelTimer.yaml create mode 100644 sentences/nb/homeassistant_HassDecreaseTimer.yaml create mode 100644 sentences/nb/homeassistant_HassIncreaseTimer.yaml create mode 100644 sentences/nb/homeassistant_HassPauseTimer.yaml create mode 100644 sentences/nb/homeassistant_HassStartTimer.yaml create mode 100644 sentences/nb/homeassistant_HassTimerStatus.yaml create mode 100644 sentences/nb/homeassistant_HassUnpauseTimer.yaml create mode 100644 tests/nb/homeassistant_HassCancelTimer.yaml create mode 100644 tests/nb/homeassistant_HassDecreaseTimer.yaml create mode 100644 tests/nb/homeassistant_HassIncreaseTimer.yaml create mode 100644 tests/nb/homeassistant_HassPauseTimer.yaml create mode 100644 tests/nb/homeassistant_HassStartTimer.yaml create mode 100644 tests/nb/homeassistant_HassTimerStatus.yaml create mode 100644 tests/nb/homeassistant_HassUnpauseTimer.yaml diff --git a/responses/nb/HassCancelTimer.yaml b/responses/nb/HassCancelTimer.yaml new file mode 100644 index 0000000000..aefce5f614 --- /dev/null +++ b/responses/nb/HassCancelTimer.yaml @@ -0,0 +1,6 @@ +--- +language: nb +responses: + intents: + HassCancelTimer: + default: "Nedtelling avbrutt" diff --git a/responses/nb/HassDecreaseTimer.yaml b/responses/nb/HassDecreaseTimer.yaml new file mode 100644 index 0000000000..aed554699a --- /dev/null +++ b/responses/nb/HassDecreaseTimer.yaml @@ -0,0 +1,6 @@ +--- +language: nb +responses: + intents: + HassDecreaseTimer: + default: "Nedtelling endret" diff --git a/responses/nb/HassIncreaseTimer.yaml b/responses/nb/HassIncreaseTimer.yaml new file mode 100644 index 0000000000..e88a582bcc --- /dev/null +++ b/responses/nb/HassIncreaseTimer.yaml @@ -0,0 +1,6 @@ +--- +language: nb +responses: + intents: + HassIncreaseTimer: + default: "Nedtelling endret" diff --git a/responses/nb/HassPauseTimer.yaml b/responses/nb/HassPauseTimer.yaml new file mode 100644 index 0000000000..6409dec6be --- /dev/null +++ b/responses/nb/HassPauseTimer.yaml @@ -0,0 +1,6 @@ +--- +language: nb +responses: + intents: + HassPauseTimer: + default: "Pauset nedtellingen" diff --git a/responses/nb/HassStartTimer.yaml b/responses/nb/HassStartTimer.yaml new file mode 100644 index 0000000000..e5fc7a1627 --- /dev/null +++ b/responses/nb/HassStartTimer.yaml @@ -0,0 +1,7 @@ +--- +language: nb +responses: + intents: + HassStartTimer: + default: "Nedtelling startet" + command: "Kommando mottatt" diff --git a/responses/nb/HassTimerStatus.yaml b/responses/nb/HassTimerStatus.yaml new file mode 100644 index 0000000000..fba72fc401 --- /dev/null +++ b/responses/nb/HassTimerStatus.yaml @@ -0,0 +1,91 @@ +--- +language: nb +responses: + intents: + HassTimerStatus: + default: | + {% set num_timers = slots.timers | length %} + {% set active_timers = slots.timers | selectattr('is_active') | list %} + {% set num_active_timers = active_timers | length %} + {% set paused_timers = slots.timers | rejectattr('is_active') | list %} + {% set num_paused_timers = paused_timers | length %} + {% set next_timer = None %} + + {% if num_timers == 0: %} + Ingen nedtellinger. + {% elif num_active_timers == 0: %} + {# No active timers #} + {% if num_paused_timers == 1: %} + {% set next_timer = paused_timers[0] %} + Nedtellingen er pauset. + {% else: %} + {{ num_paused_timers }} pausede nedtellinger. + {% endif %} + {% else: %} + {# At least one active timer #} + {% if num_active_timers == 1: %} + {% set next_timer = active_timers[0] %} + {% else: %} + {# Get active timer that will finish soonest #} + {% set sorted_timers = active_timers | sort(attribute='total_seconds_left') %} + {% set next_timer = sorted_timers[0] %} + {{ num_active_timers }} aktive nedtellinger. + {% endif %} + + {% if num_paused_timers == 1: %} + 1 pauset nedtelling. + {% elif num_paused_timers > 0: %} + {{ num_paused_timers }} pausede nedtellinger. + {% endif %} + {% endif %} + + {% if next_timer: %} + {# At least one active timer #} + {% if (next_timer.rounded_hours_left == 1) and (next_timer.rounded_minutes_left > 0): %} + 1 time og {{ next_timer.rounded_minutes_left }} minutter + {% elif (next_timer.rounded_hours_left == 1): %} + 1 time + {% elif (next_timer.rounded_hours_left > 1) and (next_timer.rounded_minutes_left > 0): %} + {{ next_timer.rounded_hours_left }} timer og {{ next_timer.rounded_minutes_left }} minutter + {% elif (next_timer.rounded_hours_left > 1): %} + {{ next_timer.rounded_hours_left }} timer + {% elif (next_timer.rounded_minutes_left == 1) and (next_timer.rounded_seconds_left > 0): %} + 1 minutt og {{ next_timer.rounded_seconds_left }} sekunder + {% elif (next_timer.rounded_minutes_left == 1): %} + 1 minutt + {% elif (next_timer.rounded_minutes_left > 1) and (next_timer.rounded_seconds_left > 0): %} + {{ next_timer.rounded_minutes_left }} minutter og {{ next_timer.rounded_seconds_left }} sekunder + {% elif (next_timer.rounded_minutes_left > 1): %} + {{ next_timer.rounded_minutes_left }} minutter + {% elif (next_timer.rounded_seconds_left == 1): %} + 1 sekund + {% elif (next_timer.rounded_seconds_left > 1): %} + {{ next_timer.rounded_seconds_left }} sekunder + {% endif %} + + {% if num_timers > 1: %} + {# Give some extra information to disambiguate #} + igjen på + {% if (next_timer.start_hours > 0) and (next_timer.start_minutes > 0): %} + {{ next_timer.start_hours }} timer og {{ next_timer.start_minutes }} minutter + {% elif (next_timer.start_hours > 0): %} + {{ next_timer.start_hours }} timer + {% elif (next_timer.start_minutes > 0) and (next_timer.start_seconds > 0): %} + {{ next_timer.start_minutes }} minutt og {{ next_timer.start_seconds }} sekunder + {% elif (next_timer.start_minutes > 0): %} + {{ next_timer.start_minutes }} minutter + {% elif (next_timer.start_seconds > 0): %} + {{ next_timer.start_seconds }} sekunder + {% endif %} + + {% if next_timer.name: %} + {{ next_timer.name }} + {% elif next_timer.area: %} + {{ next_timer.area }} + {% endif %} + + nedtelling. + {% else: %} + igjen. + {% endif %} + {% endif %} diff --git a/responses/nb/HassUnpauseTimer.yaml b/responses/nb/HassUnpauseTimer.yaml new file mode 100644 index 0000000000..460707da86 --- /dev/null +++ b/responses/nb/HassUnpauseTimer.yaml @@ -0,0 +1,6 @@ +--- +language: nb +responses: + intents: + HassUnpauseTimer: + default: "Fortsetter nedtellingen" diff --git a/sentences/nb/_common.yaml b/sentences/nb/_common.yaml index f45d90e75a..792d808b7e 100644 --- a/sentences/nb/_common.yaml +++ b/sentences/nb/_common.yaml @@ -338,6 +338,23 @@ lists: from: 0 to: 100 + timer_seconds: + range: + from: 1 + to: 100 + timer_minutes: + range: + from: 1 + to: 100 + timer_hours: + range: + from: 1 + to: 100 + timer_name: + wildcard: true + timer_command: + wildcard: true + expansion_rules: navn: "{name}[(en[e]|et|n[s])]" område: "{area}[(n[s]|en|et[s]|met[s])]" @@ -395,6 +412,24 @@ expansion_rules: hva_er_klassen_til_navn: "(hv(a|or) (er|m(y|ang)e) [] [] [] [(til||[ av])] [ ]|hva er [sin] )" + # Timers + timer: "([min[e] ]nedtelling[e[n|r]][ min])" + timer_pause: "(pause|[midlertidig ](stopp|stans)[e])" + timer_unpause: "(fortsett|gjenoppta)" + timer_add: "(legg til|øk)" + timer_decrease: "(senk|trekk fra|reduser)" + timer_set: "(sett|start|lag|opprett)[ en]" + timer_cancel: "(stopp|avbryt|slett|fjern)" + timer_duration_seconds: "{timer_seconds:seconds} sekund[er]" + timer_duration_minutes: "{timer_minutes:minutes} minutt[er][ [og |, ]{timer_seconds:seconds} sekund[er]]" + timer_duration_hours: "{timer_hours:hours} time[r][ [og |, ]{timer_minutes:minutes} minutt[er]][ [og |, ]{timer_seconds:seconds} sekund[er]]" + timer_duration: "||" + + timer_start_seconds: "{timer_seconds:start_seconds} sekund[er]" + timer_start_minutes: "{timer_minutes:start_minutes} minutt[er][ [og ]{timer_seconds:start_seconds} sekund[er]]" + timer_start_hours: "{timer_hours:start_hours} time[r][ [og |, ]{timer_minutes:start_minutes} minutt[er]][ [og |, ]{timer_seconds:start_seconds} sekund[er]]" + timer_start: "||" + skip_words: - "vær så snill" - "takk" diff --git a/sentences/nb/homeassistant_HassCancelTimer.yaml b/sentences/nb/homeassistant_HassCancelTimer.yaml new file mode 100644 index 0000000000..607e4410f1 --- /dev/null +++ b/sentences/nb/homeassistant_HassCancelTimer.yaml @@ -0,0 +1,12 @@ +--- +language: "nb" +intents: + HassCancelTimer: + data: + - sentences: + - " " + - " [ |-]" + - " " + - "[ min] {timer_name:name}[ |-]" + - " for {timer_name:name}" + - " " diff --git a/sentences/nb/homeassistant_HassDecreaseTimer.yaml b/sentences/nb/homeassistant_HassDecreaseTimer.yaml new file mode 100644 index 0000000000..722bfc0866 --- /dev/null +++ b/sentences/nb/homeassistant_HassDecreaseTimer.yaml @@ -0,0 +1,21 @@ +--- +language: "nb" +intents: + HassDecreaseTimer: + data: + - sentences: + - " fra " + - " fra[ min] " + - " fra " + - " fra[ min] " + - " fra " + - " fra[ min] {timer_name:name}[ |-]" + - " fra (med navn|som heter|for) {timer_name:name}" + - sentences: + - " med " + - " med " + - " med " + - " med " + - " med " + - " {timer_name:name}[ |-] med " + - " (med navn|som heter|for) {timer_name:name} med " diff --git a/sentences/nb/homeassistant_HassIncreaseTimer.yaml b/sentences/nb/homeassistant_HassIncreaseTimer.yaml new file mode 100644 index 0000000000..49de65b59e --- /dev/null +++ b/sentences/nb/homeassistant_HassIncreaseTimer.yaml @@ -0,0 +1,21 @@ +--- +language: "nb" +intents: + HassIncreaseTimer: + data: + - sentences: + - " på[ min] " + - " på[ min] " + - " på[ min] " + - " på[ min] " + - " på[ min] " + - " på[ min] {timer_name:name}[ |-]" + - " på[ min] (med navn|som heter|for) {timer_name:name}" + - " med " + - " med " + - " for med " + - " med " + - " med " + - " {timer_name:name}[ |-] med " + - " (med navn|som heter|for) {timer_name:name} med " + - " for {timer_name:name} med " diff --git a/sentences/nb/homeassistant_HassPauseTimer.yaml b/sentences/nb/homeassistant_HassPauseTimer.yaml new file mode 100644 index 0000000000..620b06508a --- /dev/null +++ b/sentences/nb/homeassistant_HassPauseTimer.yaml @@ -0,0 +1,13 @@ +--- +language: "nb" +intents: + HassPauseTimer: + data: + - sentences: + - " " + - " " + - " " + - " " + - " " + - " {timer_name:name}[ |-]" + - " (med navn|som heter|for) {timer_name:name}" diff --git a/sentences/nb/homeassistant_HassStartTimer.yaml b/sentences/nb/homeassistant_HassStartTimer.yaml new file mode 100644 index 0000000000..6ca55742ce --- /dev/null +++ b/sentences/nb/homeassistant_HassStartTimer.yaml @@ -0,0 +1,24 @@ +--- +language: "nb" +intents: + HassStartTimer: + data: + - sentences: + - " [lang ]" + - "" + - " [med navn[et]|som heter|for] {timer_name:name}" + - " for (med navn|som heter|for) {timer_name:name}" + - " [lang ]" + - " [ på] " + - " (med navn[et]|som heter|for) {timer_name:name}" + - " (med navn[et]|som heter|for) {timer_name:name} på " + - " (med navn[et]|som heter|for) {timer_name:name}" + - " (med navn[et]|som heter|for) {timer_name:name}" + - " " + requires_context: + area: + slot: false + - sentences: + - "{timer_command:conversation_command} om " + - "om {timer_command:conversation_command}" + response: command diff --git a/sentences/nb/homeassistant_HassTimerStatus.yaml b/sentences/nb/homeassistant_HassTimerStatus.yaml new file mode 100644 index 0000000000..4b7cb2f7f1 --- /dev/null +++ b/sentences/nb/homeassistant_HassTimerStatus.yaml @@ -0,0 +1,22 @@ +--- +language: "nb" +intents: + HassTimerStatus: + data: + - sentences: + - " status" + - "status " + - "status på[ min[e]] " + - "[hvor mye ]tid[ er][ det] igjen (på|for)[ min] [ |-]" + - "[hvor mye ]tid[ er][ det] igjen (på|for) " + - "[hvor mye ]tid[ er][ det] igjen (på|for) " + - "[hvor mye ]tid[ er][ det] igjen (på|for) " + - "[hvor mye ]tid[ er][ det] igjen (på|for) {timer_name:name}[[ |-]]" + - " status" + - "status på[ min] " + - " status" + - "status (på|for)[ min] " + - "status (på|for)[ min] " + - "{timer_name:name}[ |-][ min] status" + - "status (på|for)[ min] {timer_name:name}[ |-]" + - "[hvor mye ]tid[ er][ det] igjen (på|for)[ min] {timer_name:name}[ |-]" diff --git a/sentences/nb/homeassistant_HassUnpauseTimer.yaml b/sentences/nb/homeassistant_HassUnpauseTimer.yaml new file mode 100644 index 0000000000..a43ed5301b --- /dev/null +++ b/sentences/nb/homeassistant_HassUnpauseTimer.yaml @@ -0,0 +1,13 @@ +--- +language: "nb" +intents: + HassUnpauseTimer: + data: + - sentences: + - " " + - "[ min] " + - " (for|på) " + - "[ min] " + - " " + - " (med navn|som heter|for) {timer_name:name}" + - "[ min] {timer_name:name}[ |-]" diff --git a/tests/nb/_fixtures.yaml b/tests/nb/_fixtures.yaml index 1241904440..93a400c04f 100644 --- a/tests/nb/_fixtures.yaml +++ b/tests/nb/_fixtures.yaml @@ -413,3 +413,25 @@ entities: state: "open" attributes: position: "100" + +timers: + - is_active: false + start_hours: 1 + total_seconds_left: 100 + rounded_hours_left: 0 + rounded_minutes_left: 1 + rounded_seconds_left: 40 + + - name: "pizza" + start_minutes: 30 + total_seconds_left: 1505 + rounded_hours_left: 0 + rounded_minutes_left: 25 + rounded_seconds_left: 0 + + - area: "kitchen" + start_minutes: 5 + total_seconds_left: 190 + rounded_hours_left: 0 + rounded_minutes_left: 3 + rounded_seconds_left: 0 diff --git a/tests/nb/homeassistant_HassCancelTimer.yaml b/tests/nb/homeassistant_HassCancelTimer.yaml new file mode 100644 index 0000000000..8d06fa9eb8 --- /dev/null +++ b/tests/nb/homeassistant_HassCancelTimer.yaml @@ -0,0 +1,48 @@ +--- +language: nb +tests: + - sentences: + - "stopp nedtelling" + - "stopp nedtellingen" + - avbryt nedtelling + - "avbryt nedtellingen min" + - "fjern nedtelling" + - "fjern nedtellingen min" + - "slett nedtelling" + - "slett nedtellingen min" + intent: + name: HassCancelTimer + response: Nedtelling avbrutt + + - sentences: + - "stopp 5 minutter nedtelling" + - "stopp 5 minutter nedtellingen min" + - "stopp nedtellingen på 5 minutter" + - "avbryt 5 minutter nedtelling" + intent: + name: HassCancelTimer + slots: + start_minutes: 5 + response: Nedtelling avbrutt + + - sentences: + - "stopp pizza nedtelling" + - "avbryt min pizza nedtelling" + - "fjern min nedtelling for pizza" + intent: + name: HassCancelTimer + slots: + name: + - "pizza " + - "pizza" + response: Nedtelling avbrutt + + - sentences: + - "fjern nedtelling på kjøkken" + - "slett nedtelling på kjøkkenet" + - "avbryt nedtellingen på kjøkkenet" + intent: + name: HassCancelTimer + slots: + area: Kjøkken + response: Nedtelling avbrutt diff --git a/tests/nb/homeassistant_HassDecreaseTimer.yaml b/tests/nb/homeassistant_HassDecreaseTimer.yaml new file mode 100644 index 0000000000..6cffcc9c00 --- /dev/null +++ b/tests/nb/homeassistant_HassDecreaseTimer.yaml @@ -0,0 +1,54 @@ +--- +language: nb +tests: + - sentences: + - "senk 5 minutter fra nedtellingen" + - "trekk fra 5 minutter fra nedtellingen min" + - "reduser 5 minutter fra nedtellingen" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + response: Nedtelling endret + + - sentences: + - "reduser 5 minutter fra 1 time nedtelling" + - "reduser 5 minutter fra 1 time nedtellingen min" + - "trekk fra 5 minutter fra nedtellingen på 1 time" + - "reduser nedtellingen på 1 time med 5 minutter" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + start_hours: 1 + response: Nedtelling endret + + - sentences: + - "trekk fra 5 minutter fra pizza nedtelling" + - "trekk fra 5 minutter fra pizzanedtelling" + - "trekk fra 5 minutter fra pizza-nedtelling" + - "reduser 5 minutter fra nedtellingen som heter pizza" + - "reduser pizza nedtelling med 5 minutter" + - "senk nedtellingen min for pizza med 5 minutter" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + name: + - "pizza " + - "pizza" + - "pizza-" + response: Nedtelling endret + + - sentences: + - "trekk fra 5 minutter fra kjøkken nedtelling" + - "trekk fra 5 minutter fra kjøkkennedtellingen min" + - "trekk fra 5 minutter fra nedtellingen på kjøkkenet" + - "senk nedtellingen på kjøkkenet med 5 minutter" + - "senk kjøkkennedtelling med 5 minutter" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + area: Kjøkken + response: Nedtelling endret diff --git a/tests/nb/homeassistant_HassIncreaseTimer.yaml b/tests/nb/homeassistant_HassIncreaseTimer.yaml new file mode 100644 index 0000000000..4388f5c5aa --- /dev/null +++ b/tests/nb/homeassistant_HassIncreaseTimer.yaml @@ -0,0 +1,55 @@ +--- +language: nb +tests: + - sentences: + - "legg til 5 minutter på nedtelling" + - "legg til 5 minutter på nedtellingen" + - "øk nedtellingen med 5 minutter" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + response: Nedtelling endret + + - sentences: + - "legg til 5 minutter på 1 time nedtelling" + - "legg til 5 minutter på nedtelling på 1 time" + - "øk 1 time nedtelling med 5 minutter" + - "øk nedtelling for 1 time med 5 minutter" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + start_hours: 1 + response: Nedtelling endret + + - sentences: + - "legg til 5 minutter på pizzanedtelling" + - "legg til 5 minutter på pizza nedtelling" + - "legg til 5 minutter på nedtelling med navn pizza" + - "øk pizza nedtelling med 5 minutter" + - "øk nedtelling for pizza med 5 minutter" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + name: + - "pizza " + - "pizza" + response: Nedtelling endret + + - sentences: + - "legg til 5 minutter på kjøkkennedtelling" + - "legg til 5 minutter på kjøkken nedtelling" + - "legg til 5 minutter på nedtelling på kjøkken" + - "legg til 5 minutter på nedtelling på kjøkkenet" + - "øk nedtelling på kjøkken med 5 minutter" + - "øk nedtelling på kjøkkenet med 5 minutter" + - "øk kjøkken nedtelling med 5 minutter" + - "øk kjøkkennedtelling med 5 minutter" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + area: Kjøkken + response: Nedtelling endret diff --git a/tests/nb/homeassistant_HassPauseTimer.yaml b/tests/nb/homeassistant_HassPauseTimer.yaml new file mode 100644 index 0000000000..b2e60a380d --- /dev/null +++ b/tests/nb/homeassistant_HassPauseTimer.yaml @@ -0,0 +1,41 @@ +--- +language: nb +tests: + - sentences: + - "pause nedtelling" + - "midlertidig stopp min nedtelling" + - "midlertidig stanse nedtellingen min" + intent: + name: HassPauseTimer + response: Pauset nedtellingen + + - sentences: + - "midlertidig stanse 1 time-nedtellingen" + - "pause nedtellingen på 1 time" + intent: + name: HassPauseTimer + slots: + start_hours: 1 + response: Pauset nedtellingen + + - sentences: + - "pause pizza nedtelling" + - "pause nedtelling for pizza" + intent: + name: HassPauseTimer + slots: + name: + - "pizza " + - "pizza" + response: Pauset nedtellingen + + - sentences: + - "pause kjøkken nedtelling" + - "pause kjøkkennedtelling" + - "midlertidig stans kjøkken nedtelling" + - "midlertidig stopp kjøkkennedtelling" + intent: + name: HassPauseTimer + slots: + area: Kjøkken + response: Pauset nedtellingen diff --git a/tests/nb/homeassistant_HassStartTimer.yaml b/tests/nb/homeassistant_HassStartTimer.yaml new file mode 100644 index 0000000000..f3694e74f0 --- /dev/null +++ b/tests/nb/homeassistant_HassStartTimer.yaml @@ -0,0 +1,127 @@ +--- +language: nb +tests: + - sentences: + - "nedtelling på 1 time" + - "start 1 time nedtelling" + - "start nedtelling på 1 time" + - "opprett 1 time nedtelling" + - "1 time nedtelling" + intent: + name: HassStartTimer + context: + area: Stue + slots: + hours: 1 + response: Nedtelling startet + + - sentences: + - "start en 1 time og 15 minutter nedtelling" + - "start en 1 time og 15 minutter lang nedtelling" + - "nedtelling på 1 time og 15 minutter" + - "opprett nedtelling på 1 time og 15 minutter" + - "lag en nedtelling på 1 time og 15 minutter" + intent: + name: HassStartTimer + context: + area: Stue + slots: + hours: 1 + minutes: 15 + response: Nedtelling startet + + - sentences: + - "start en 1 time og 30 sekunder nedtelling" + - "start en 1 time 30 sekunder nedtelling" + - "start en 1 time og 30 sekunder lang nedtelling" + - "nedtelling på 1 time og 30 sekunder" + - "start nedtelling på 1 time og 30 sekunder" + intent: + name: HassStartTimer + context: + area: Stue + slots: + hours: 1 + seconds: 30 + response: Nedtelling startet + + - sentences: + - "start en 1 time, 15 minutter og 30 sekunder nedtelling" + - "opprett en 1 time, 15 minutter og 30 sekunder lang nedtelling" + - "1 time, 15 minutter 30 sekunder nedtelling" + - "sett nedtelling på 1 time, 15 minutter og 30 sekunder" + intent: + name: HassStartTimer + context: + area: Stue + slots: + hours: 1 + minutes: 15 + seconds: 30 + response: Nedtelling startet + + - sentences: + - "start en 5 minutter lang nedtelling" + - "5 minutter nedtelling" + - "nedtelling på 5 minutter" + intent: + name: HassStartTimer + context: + area: Stue + slots: + minutes: 5 + response: Nedtelling startet + + - sentences: + - "start en 5 minutter nedtelling med navnet pizza" + - "5 minutter nedtelling for pizza" + - "start nedtelling med navnet pizza på 5 minutter" + - "nedtelling på 5 minutter med navnet pizza" + intent: + name: HassStartTimer + context: + area: Stue + slots: + minutes: 5 + name: + - "pizza " + - "pizza" + response: Nedtelling startet + + - sentences: + - "start en 5 minutter og 10 sekunder nedtelling" + - "start 5 minutter og 10 sekunder" + - "5 minutter 10 sekunder nedtelling" + intent: + name: HassStartTimer + context: + area: Stue + slots: + minutes: 5 + seconds: 10 + response: Nedtelling startet + + - sentences: + - "start en 45 sekunder nedtelling" + - "start en 45 sekunder lang nedtelling" + - "nedtelling på 45 sekunder" + - "45 sekunder nedtelling" + intent: + name: HassStartTimer + context: + area: Stue + slots: + seconds: 45 + response: Nedtelling startet + + - sentences: + - "åpne garasjedør om 5 minutter" + - "om 5 minutter, åpne garasjedør" + intent: + name: HassStartTimer + slots: + minutes: 5 + conversation_command: + - "åpne garasjedør" + - "åpne garasjedør " + response: Kommando mottatt diff --git a/tests/nb/homeassistant_HassTimerStatus.yaml b/tests/nb/homeassistant_HassTimerStatus.yaml new file mode 100644 index 0000000000..02cbcc0806 --- /dev/null +++ b/tests/nb/homeassistant_HassTimerStatus.yaml @@ -0,0 +1,52 @@ +--- +language: nb +tests: + - sentences: + - "Nedtelling status" + - "Status nedtelling" + - "Status på mine nedtellinger" + - "Hvor mye tid er igjen på mine nedtellinger" + intent: + name: HassTimerStatus + response: | + 2 aktive nedtellinger. 1 pauset nedtelling. 3 minutter igjen på 5 minutter kjøkken nedtelling. + + - sentences: + - "1 time nedtelling status" + - "Tid igjen på 1 time nedtelling" + - "Status på 1 time nedtelling" + intent: + name: HassTimerStatus + slots: + start_hours: 1 + response: | + Nedtellingen er pauset. 1 minutt og 40 sekunder igjen. + + - sentences: + - "pizza nedtelling status" + - "pizzanedtelling status" + - "status på pizzanedtelling" + - "hvor mye tid er det igjen på pizza" + intent: + name: HassTimerStatus + slots: + name: + - "pizza" + - "pizza " + response: | + 25 minutter igjen. + + - sentences: + - "kjøkkennedtelling status" + - "kjøkken nedtelling status" + - "status på kjøkkennedtelling" + - "status på nedtelling på kjøkken" + - "hvor mye tid er det igjen på kjøkkennedtelling" + - "hvor mye tid er det igjen på nedtellingen på kjøkkenet" + intent: + name: HassTimerStatus + slots: + area: + - "Kjøkken" + response: | + 3 minutter igjen. diff --git a/tests/nb/homeassistant_HassUnpauseTimer.yaml b/tests/nb/homeassistant_HassUnpauseTimer.yaml new file mode 100644 index 0000000000..d9728a77aa --- /dev/null +++ b/tests/nb/homeassistant_HassUnpauseTimer.yaml @@ -0,0 +1,40 @@ +--- +language: nb +tests: + - sentences: + - "Gjenoppta nedtelling" + - "Gjenoppta nedtellingen min" + - "Fortsett nedtelling" + intent: + name: HassUnpauseTimer + response: Fortsetter nedtellingen + + - sentences: + - "Gjenoppta 1 time nedtelling" + - "Fortsett nedtelling på 1 time" + intent: + name: HassUnpauseTimer + slots: + start_hours: 1 + response: Fortsetter nedtellingen + + - sentences: + - "Gjenoppta pizza nedtelling" + - "Gjenoppta pizzanedtelling" + - "Fortsett nedtelling for pizza" + intent: + name: HassUnpauseTimer + slots: + name: + - "pizza " + - "pizza" + response: Fortsetter nedtellingen + + - sentences: + - "Gjenoppta kjøkkennedtelling" + - "Fortsett nedtelling på kjøkken" + intent: + name: HassUnpauseTimer + slots: + area: Kjøkken + response: Fortsetter nedtellingen From b217ac32066e89d96e0fc6ddeecd608da29ebb64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A5le=20Stor=C3=B8=20Hauknes?= Date: Sat, 2 Nov 2024 00:36:25 +0100 Subject: [PATCH 16/92] [nb] Add media player previous (#2444) * Add media player previous * Update media player previous * Adjust media player previous --- responses/nb/HassMediaPrevious.yaml | 5 +++++ .../nb/media_player_HassMediaPrevious.yaml | 14 +++++++++++++ tests/nb/media_player_HassMediaPrevious.yaml | 21 +++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 responses/nb/HassMediaPrevious.yaml create mode 100644 sentences/nb/media_player_HassMediaPrevious.yaml create mode 100644 tests/nb/media_player_HassMediaPrevious.yaml diff --git a/responses/nb/HassMediaPrevious.yaml b/responses/nb/HassMediaPrevious.yaml new file mode 100644 index 0000000000..1423a47dca --- /dev/null +++ b/responses/nb/HassMediaPrevious.yaml @@ -0,0 +1,5 @@ +language: nb +responses: + intents: + HassMediaPrevious: + default: "Spiller av forrige" diff --git a/sentences/nb/media_player_HassMediaPrevious.yaml b/sentences/nb/media_player_HassMediaPrevious.yaml new file mode 100644 index 0000000000..534358aa25 --- /dev/null +++ b/sentences/nb/media_player_HassMediaPrevious.yaml @@ -0,0 +1,14 @@ +language: nb +intents: + HassMediaPrevious: + data: + - sentences: + - "spill av [den ]forrige [] på " + - "(spol|bytt|hopp) til forrige [] på " + - "spol tilbake [] på " + - " (gå tilbake|bytt til forrige|spol tilbake|hopp tilbake) []" + - " forrige " + requires_context: + domain: media_player + expansion_rules: + sang: "(sang[en]|låt[(en|a)])" diff --git a/tests/nb/media_player_HassMediaPrevious.yaml b/tests/nb/media_player_HassMediaPrevious.yaml new file mode 100644 index 0000000000..0ce7bdb516 --- /dev/null +++ b/tests/nb/media_player_HassMediaPrevious.yaml @@ -0,0 +1,21 @@ +language: nb +tests: + - sentences: + - "spill av forrige sang på TV" + - "spill av forrige låt på TV" + - "spill av forrige på TV" + - "bytt til forrige på TV" + - "hopp til forrige på TV" + - "spol tilbake på TV" + - "spol til forrige på TV" + - "spol til forrige sang på TV" + - "TV forrige låt" + - "TV gå tilbake" + - "TV bytt til forrige" + - "TV bytt til forrige sang" + - "TV hopp tilbake" + intent: + name: HassMediaPrevious + slots: + name: "TV" + response: "Spiller av forrige" From 08ca05960c0ddaddf7b336bea11ff8cf5440bd91 Mon Sep 17 00:00:00 2001 From: dontinelli <73341522+dontinelli@users.noreply.github.com> Date: Sat, 2 Nov 2024 16:19:59 +0100 Subject: [PATCH 17/92] Add nevermind and HassGetWeather for de-CH (#2445) * [de-CH] slight adjustment of GetTemperature * [de-CH] add ListAddItem * [de-CH] implement ListAddItem * [de-CH] implement HassGetWeather * [de-CH] add nevermind * test for nevermind From 24494de2f3f5d0560716f625393245a6609aea59 Mon Sep 17 00:00:00 2001 From: Ian Date: Sat, 2 Nov 2024 11:27:50 -0700 Subject: [PATCH 18/92] [en] Add more expansions for state values (#2439) * [en] Add more expansions for state values * remove lamp > light * Update and add tests --- sentences/en/_common.yaml | 18 ++++----- tests/en/binary_sensor_HassGetState.yaml | 48 ++++++++++++++++++++++++ tests/en/cover_HassGetState.yaml | 1 + 3 files changed, 58 insertions(+), 9 deletions(-) diff --git a/sentences/en/_common.yaml b/sentences/en/_common.yaml index ea5ea5e168..957c9ddec4 100644 --- a/sentences/en/_common.yaml +++ b/sentences/en/_common.yaml @@ -96,11 +96,11 @@ lists: values: - in: "open" out: "open" - - in: "closed" + - in: "(closed|shut)" out: "closed" - in: "opening" out: "opening" - - in: "closing" + - in: "(closing|shutting)" out: "closing" cover_classes: values: @@ -134,7 +134,7 @@ lists: values: - in: "low" out: "on" - - in: "normal" + - in: "(normal|charged)" out: "off" bs_battery_charging_states: @@ -169,14 +169,14 @@ lists: values: - in: "open" out: "on" - - in: "closed" + - in: "(closed|shut)" out: "off" bs_garage_door_states: values: - in: "open" out: "on" - - in: "closed" + - in: "(closed|shut)" out: "off" bs_gas_states: @@ -232,7 +232,7 @@ lists: values: - in: "open" out: "on" - - in: "closed" + - in: "(closed|shut)" out: "off" bs_plug_states: @@ -253,7 +253,7 @@ lists: values: - in: "(home|present)" out: "on" - - in: "(away|not present)" + - in: "(away|not (home|present)|gone)" out: "off" bs_problem_states: @@ -316,8 +316,8 @@ lists: values: - in: "open" out: "on" - - in: "clear" - out: "closed" + - in: "(closed|shut)" + out: "off" shopping_list_item: wildcard: true diff --git a/tests/en/binary_sensor_HassGetState.yaml b/tests/en/binary_sensor_HassGetState.yaml index a6b1527338..57ff53233a 100644 --- a/tests/en/binary_sensor_HassGetState.yaml +++ b/tests/en/binary_sensor_HassGetState.yaml @@ -12,6 +12,18 @@ tests: state: "on" response: "No, normal" + - sentences: + - "is the phone battery normal?" + - "is the phone battery charged?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "battery" + name: "Phone" + state: "off" + response: "Yes" + - sentences: - "are any batteries low?" intent: @@ -277,6 +289,7 @@ tests: # Garage door - sentences: - "is the secondary garage door closed?" + - "is the secondary garage door shut?" intent: name: HassGetState slots: @@ -654,6 +667,18 @@ tests: state: "on" response: "No, closed" + - sentences: + - "is the shed door closed?" + - "is the shed door shut?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "opening" + name: "Shed Door" + state: "off" + response: "Yes" + - sentences: - "are any openings open?" intent: @@ -810,6 +835,17 @@ tests: state: "on" response: "No, away" + - sentences: + - "is the phone gone?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "presence" + name: "Phone" + state: "off" + response: "Yes" + - sentences: - "are any devices home?" intent: @@ -1142,3 +1178,15 @@ tests: name: "Shed Window" state: "on" response: "Yes" + + - sentences: + - "is the shed window shut?" + - "is the shed window closed?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "window" + name: "Shed Window" + state: "off" + response: "No, open" diff --git a/tests/en/cover_HassGetState.yaml b/tests/en/cover_HassGetState.yaml index c515aa268d..3e258b0289 100644 --- a/tests/en/cover_HassGetState.yaml +++ b/tests/en/cover_HassGetState.yaml @@ -3,6 +3,7 @@ tests: - sentences: - "is curtain left closed?" - "is the curtain left closed?" + - "is the curtain left shut?" intent: name: HassGetState slots: From a193ae1442c624b0b7cc38b7c631c47a85625a79 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Mon, 4 Nov 2024 09:43:03 -0600 Subject: [PATCH 19/92] Add HassRespond intent (#2448) * Add HassHello intent * Rename to HassRespond * Update sentences/en/homeassistant_HassRespond.yaml Co-authored-by: Paulus Schoutsen * Rename response key --------- Co-authored-by: Paulus Schoutsen --- intents.yaml | 5 ++++ responses/en/HassRespond.yaml | 9 ++++++ sentences/en/homeassistant_HassRespond.yaml | 23 +++++++++++++++ tests/en/homeassistant_HassRespond.yaml | 31 +++++++++++++++++++++ 4 files changed, 68 insertions(+) create mode 100644 responses/en/HassRespond.yaml create mode 100644 sentences/en/homeassistant_HassRespond.yaml create mode 100644 tests/en/homeassistant_HassRespond.yaml diff --git a/intents.yaml b/intents.yaml index 129e2e3885..164bdd5211 100644 --- a/intents.yaml +++ b/intents.yaml @@ -140,6 +140,11 @@ HassNevermind: domain: homeassistant description: "Does nothing. Used to cancel a request" +HassRespond: + supported: true + domain: homeassistant + description: "Returns response but takes no action." + HassSetPosition: supported: true domain: homeassistant diff --git a/responses/en/HassRespond.yaml b/responses/en/HassRespond.yaml new file mode 100644 index 0000000000..30cd9df6c8 --- /dev/null +++ b/responses/en/HassRespond.yaml @@ -0,0 +1,9 @@ +language: en +responses: + intents: + HassRespond: + hello: "Hello from Home Assistant." + listening: "No, I only record when you speak the wake word." + data: "Your data is sent to your Home Assistant server." + commands: "To learn what you can ask, visit H.A. dot I.O. slash voice." + creator: "I was created by the wonderful Home Assistant community, made up of tinkerers world wide." diff --git a/sentences/en/homeassistant_HassRespond.yaml b/sentences/en/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..98c4573c29 --- /dev/null +++ b/sentences/en/homeassistant_HassRespond.yaml @@ -0,0 +1,23 @@ +language: "en" +intents: + HassRespond: + data: + - sentences: + - "(hello|hi) [home assistant]" + response: hello + + - sentences: + - "are you always (listening|recording)" + response: listening + + - sentences: + - "where does (my|the) data go [to]" + response: data + + - sentences: + - "what can I (say|ask)" + response: commands + + - sentences: + - "who (made|created) you" + response: creator diff --git a/tests/en/homeassistant_HassRespond.yaml b/tests/en/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..d39e9b4180 --- /dev/null +++ b/tests/en/homeassistant_HassRespond.yaml @@ -0,0 +1,31 @@ +language: en +tests: + - sentences: + - "hi home assistant" + intent: + name: HassRespond + response: "Hello from Home Assistant." + + - sentences: + - "are you always listening?" + intent: + name: HassRespond + response: "No, I only record when you speak the wake word." + + - sentences: + - "where does my data go?" + intent: + name: HassRespond + response: "Your data is sent to your Home Assistant server." + + - sentences: + - "what can I say?" + intent: + name: HassRespond + response: "To learn what you can ask, visit H.A. dot I.O. slash voice." + + - sentences: + - "who made you?" + intent: + name: HassRespond + response: "I was created by the wonderful Home Assistant community, made up of tinkerers world wide." From 70db9c1bf8e446701c85a85abfec07a9c75ae2f5 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 4 Nov 2024 17:00:14 +0100 Subject: [PATCH 20/92] [FR] remove update sentences (#2451) * Improve update sentences matching * Remove sentences for updates --- sentences/fr/_common.yaml | 7 --- sentences/fr/binary_sensor_HassGetState.yaml | 42 ----------------- tests/fr/binary_sensor_HassGetState.yaml | 48 -------------------- 3 files changed, 97 deletions(-) diff --git a/sentences/fr/_common.yaml b/sentences/fr/_common.yaml index e6884e14c8..8761410c34 100644 --- a/sentences/fr/_common.yaml +++ b/sentences/fr/_common.yaml @@ -581,13 +581,6 @@ lists: - in: "(ok|non détecté[e][s])" out: "off" - bs_update_states: - values: - - in: "[mise[s] à jour ]disponible[s]" - out: "on" - - in: "à jour" - out: "off" - bs_vibration_states: values: - in: "(détecté[e][s]|vibre[s][r])" diff --git a/sentences/fr/binary_sensor_HassGetState.yaml b/sentences/fr/binary_sensor_HassGetState.yaml index 5fd78b6723..01653af6a7 100644 --- a/sentences/fr/binary_sensor_HassGetState.yaml +++ b/sentences/fr/binary_sensor_HassGetState.yaml @@ -978,48 +978,6 @@ intents: domain: binary_sensor device_class: tamper - # # Update - - sentences: - - "[]{name} {bs_update_states:state} [ []{area}]" - - "[]{name} [ []{area}] {bs_update_states:state}" - response: one_yesno - requires_context: - domain: binary_sensor - device_class: update - slots: - domain: binary_sensor - device_class: update - - - sentences: - - "[] (une|des) mise[s] à jour [de (firmware|driver|pilote|logiciel)[s]] [de] {bs_update_states:state} [ []{area}]" - - "(une|des) mise[s] à jour [de (firmware|driver|pilote|logiciel)[s]] {bs_update_states:state} [ []{area}]" - - "[ une] {bs_update_states:state} [ []{area}]" - - response: any - slots: - domain: binary_sensor - device_class: update - state: "on" - - - sentences: - - " [sont les] mise[s] à jour [de (firmware|logiciel)] {bs_update_states:state} [ []{area}]" - - " mise[s] à jour [de (firmware[s]|logiciel[le][s])] {bs_update_states:state} [ []{area}]" - - "liste les mises à jour [de (firmware[s]|logiciel[le][s])] [qui sont] {bs_update_states:state} [ []{area}]" - response: which - slots: - domain: binary_sensor - device_class: update - state: "on" - - - sentences: - - "combien de mises à jour [de (firmware[s]|logiciel[le][s])] [] {bs_update_states:state} [ []{area}]" - - "compte (les |le nombre de) mises à jour [de (firmware[s]|logiciel[le][s])] [qui sont] {bs_update_states:state} [ []{area}]" - response: how_many - slots: - domain: binary_sensor - device_class: update - state: "on" - # # Vibration - sentences: - "[]{name} {bs_vibration_states:state}[-t-(il|elle)] [ []{area}]" diff --git a/tests/fr/binary_sensor_HassGetState.yaml b/tests/fr/binary_sensor_HassGetState.yaml index a8f124b9c3..8f2d642043 100644 --- a/tests/fr/binary_sensor_HassGetState.yaml +++ b/tests/fr/binary_sensor_HassGetState.yaml @@ -1382,54 +1382,6 @@ tests: state: "off" response: "Oui" - # # Update - - sentences: - - "Le téléphone est-il à jour ?" - intent: - name: HassGetState - slots: - domain: "binary_sensor" - device_class: "update" - name: "téléphone" - state: "off" - response: "Non, mise à jour disponible" - - - sentences: - - "Y a-t-il des mises à jour de logiciel disponibles ?" - - "Des mises à jour sont-elles disponibles ?" - - "Mise à jour disponible ?" - - "Y a-t-il une mise à jour de disponible ?" - intent: - name: HassGetState - slots: - domain: binary_sensor - device_class: update - state: "on" - response: "Oui, téléphone est mise à jour disponible" - - - sentences: - - "Quelle mise à jour de firmware est disponible ?" - - "Quelles sont les mises à jour disponibles ?" - - "Liste les mises à jour disponibles" - intent: - name: HassGetState - slots: - domain: binary_sensor - device_class: update - state: "on" - response: "téléphone est mise à jour disponible" - - - sentences: - - "Combien de mises à jour sont disponibles ?" - - "Compte le nombre de mises à jour disponibles" - intent: - name: HassGetState - slots: - domain: binary_sensor - device_class: update - state: "on" - response: "1" - # # Vibration - sentences: - "Le téléphone vibre-t-il ?" From 7b791ad52598c38b774828a38124ce82b232c75e Mon Sep 17 00:00:00 2001 From: Tudor Sandu Date: Tue, 5 Nov 2024 09:35:46 +0200 Subject: [PATCH 21/92] [RO] HassRespond (#2456) * [RO] HassRespond * Wrong language in file --- responses/ro/HassRespond.yaml | 9 +++++ sentences/ro/homeassistant_HassRespond.yaml | 25 +++++++++++++ tests/ro/homeassistant_HassRespond.yaml | 40 +++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 responses/ro/HassRespond.yaml create mode 100644 sentences/ro/homeassistant_HassRespond.yaml create mode 100644 tests/ro/homeassistant_HassRespond.yaml diff --git a/responses/ro/HassRespond.yaml b/responses/ro/HassRespond.yaml new file mode 100644 index 0000000000..74dd69a744 --- /dev/null +++ b/responses/ro/HassRespond.yaml @@ -0,0 +1,9 @@ +language: ro +responses: + intents: + HassRespond: + hello: "Salutare din Home Assistant." + listening: "Nu, înregistrez doar după ce rostești convocatorul sau cuvântul de trezire." + data: "Datele sunt trimise către serverul tău Home Assistant." + commands: "Pentru a afla ce solicitări sunt disponibile, vizitează home cratimă assistant punct I.O., slash voice." + creator: "Am fost creat de minunata comunitate Home Assistant, alcătuită din persoane abile de pretutindeni." diff --git a/sentences/ro/homeassistant_HassRespond.yaml b/sentences/ro/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..68d5784b5d --- /dev/null +++ b/sentences/ro/homeassistant_HassRespond.yaml @@ -0,0 +1,25 @@ +language: "ro" +intents: + HassRespond: + data: + - sentences: + - "(salut|bun(ă|a)) [home assistant]" + response: hello + + - sentences: + - "(ascul(ț|t)i|(î|i)nregistrezi) ((î|i)n permanen(ță|ta)|permanent|(î|i)ncontinuu|mereu)" + - "(ascul(ț|t)i|(î|i)nregistrezi) tot ce (zic|spun)" + response: listening + + - sentences: + - "unde (ajung|se (duc|salveaz(ă|a))) datele mele" + - "unde ajunge ce (spun|zic)" + response: data + + - sentences: + - "ce pot s(ă|a)[(-(ț|t)i| (îț|it)i| te)] (cer|(î|i)ntreb|spun|zic|comand)" + response: commands + + - sentences: + - "cine te-a (f(ă|a)cut|creat)" + response: creator diff --git a/tests/ro/homeassistant_HassRespond.yaml b/tests/ro/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..c2803292e3 --- /dev/null +++ b/tests/ro/homeassistant_HassRespond.yaml @@ -0,0 +1,40 @@ +language: ro +tests: + - sentences: + - "salut home assistant" + - "buna" + intent: + name: HassRespond + response: "Salutare din Home Assistant." + + - sentences: + - "asculti mereu?" + - "inregistrezi in permanenta?" + - "inregistrezi incontinuu?" + - "asculti tot ce zic?" + intent: + name: HassRespond + response: "Nu, înregistrez doar după ce rostești convocatorul sau cuvântul de trezire." + + - sentences: + - "unde se duc datele mele?" + - "unde ajung datele mele?" + - "unde ajunge ce spun" + intent: + name: HassRespond + response: "Datele sunt trimise către serverul tău Home Assistant." + + - sentences: + - "ce pot sa iti cer?" + - "ce pot sa intreb?" + - "ce pot sa-ti comand?" + intent: + name: HassRespond + response: "Pentru a afla ce solicitări sunt disponibile, vizitează home cratimă assistant punct I.O., slash voice." + + - sentences: + - "cine te-a creat?" + - "cine te-a facut?" + intent: + name: HassRespond + response: "Am fost creat de minunata comunitate Home Assistant, alcătuită din persoane abile de pretutindeni." From e42e32660c1da8302c7c8962c41ed64d49d77871 Mon Sep 17 00:00:00 2001 From: Martijn van der Pol Date: Tue, 5 Nov 2024 10:49:50 +0100 Subject: [PATCH 22/92] [NL] New attempt for HassRespond translations (#2457) --- responses/nl/HassRespond.yaml | 9 ++++++ sentences/nl/homeassistant_HassRespond.yaml | 27 ++++++++++++++++ tests/nl/homeassistant_HassRespond.yaml | 35 +++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 responses/nl/HassRespond.yaml create mode 100644 sentences/nl/homeassistant_HassRespond.yaml create mode 100644 tests/nl/homeassistant_HassRespond.yaml diff --git a/responses/nl/HassRespond.yaml b/responses/nl/HassRespond.yaml new file mode 100644 index 0000000000..fb0d9c76bb --- /dev/null +++ b/responses/nl/HassRespond.yaml @@ -0,0 +1,9 @@ +language: nl +responses: + intents: + HassRespond: + hello: "Hallo vanuit Home Assistant." + listening: "Nee, ik neem alleen op na het wake-word." + data: "Je data gaat naar je Home Assistant server." + commands: "Voor meer informatie over wat ik kan, ga naar home streepje assistant punt I O slash voice." + creator: "Ik ben gemaakt door de geweldige Home Assistant community, die bestaat uit mensen vanuit de hele wereld." diff --git a/sentences/nl/homeassistant_HassRespond.yaml b/sentences/nl/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..308a246ed0 --- /dev/null +++ b/sentences/nl/homeassistant_HassRespond.yaml @@ -0,0 +1,27 @@ +language: "nl" +intents: + HassRespond: + data: + - sentences: + - "(hallo|hoi) home assistant" + response: hello + + - sentences: + - "ben je altijd aan het (luisteren|opnemen)" + - "luister je altijd" + - "neem je altijd op" + response: listening + + - sentences: + - "wat gebeurt er met (mijn|de) data" + - "waar gaat (mijn|de) data heen" + response: data + + - sentences: + - "wat kan ik [allemaal ](zeggen|vragen)" + - "wat kun je [allemaal ]doen" + response: commands + + - sentences: + - "wie heeft je (gemaakt|gecreëerd)" + response: creator diff --git a/tests/nl/homeassistant_HassRespond.yaml b/tests/nl/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..b47eca0f73 --- /dev/null +++ b/tests/nl/homeassistant_HassRespond.yaml @@ -0,0 +1,35 @@ +language: nl +tests: + - sentences: + - "hoi home assistant" + intent: + name: HassRespond + response: "Hallo vanuit Home Assistant." + + - sentences: + - "ben je altijd aan het luisteren" + - "luister je altijd" + - "neem je altijd op" + intent: + name: HassRespond + response: "Nee, ik neem alleen op na het wake-word." + + - sentences: + - "wat gebeurt er met mijn data" + - "waar gaat de data heen" + intent: + name: HassRespond + response: "Je data gaat naar je Home Assistant server." + + - sentences: + - "wat kan ik allemaal zeggen" + - "wat kun je doen" + intent: + name: HassRespond + response: "Voor meer informatie over wat ik kan, ga naar home streepje assistant punt I O slash voice." + + - sentences: + - "wie heeft je gemaakt" + intent: + name: HassRespond + response: "Ik ben gemaakt door de geweldige Home Assistant community, die bestaat uit mensen vanuit de hele wereld." From 98291e1990bef80c5a184691c5b69e5537a538fc Mon Sep 17 00:00:00 2001 From: salleq Date: Tue, 5 Nov 2024 15:14:11 +0200 Subject: [PATCH 23/92] [FI] add HassRespond (#2458) * [FI] add HassRespond --- responses/fi/HassRespond.yaml | 9 ++++++ sentences/fi/homeassistant_HassRespond.yaml | 25 ++++++++++++++++ tests/fi/homeassistant_HassRespond.yaml | 33 +++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 responses/fi/HassRespond.yaml create mode 100644 sentences/fi/homeassistant_HassRespond.yaml create mode 100644 tests/fi/homeassistant_HassRespond.yaml diff --git a/responses/fi/HassRespond.yaml b/responses/fi/HassRespond.yaml new file mode 100644 index 0000000000..30cba40c23 --- /dev/null +++ b/responses/fi/HassRespond.yaml @@ -0,0 +1,9 @@ +language: fi +responses: + intents: + HassRespond: + hello: "Tervehdys Home Assistantilta." + listening: "En, äänitän ainoastaan kun kuulen herätesanan." + data: "Tietosi lähetetään ainoastaan sinun Home Assistant-palvelimellesi." + commands: "Oppiaksesi lisää mitä voit kysyä minulta, vieraile home-assistant.io kautta voice." + creator: "Minut on luonut loistava Home Assistant -yhteisö, joka koostuu maailmanlaajuisista puuhastelijoista." diff --git a/sentences/fi/homeassistant_HassRespond.yaml b/sentences/fi/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..819847ef5d --- /dev/null +++ b/sentences/fi/homeassistant_HassRespond.yaml @@ -0,0 +1,25 @@ +language: "fi" +intents: + HassRespond: + data: + - sentences: + - "(hei|moi|heippa|moikka|terve) [home assistant]" + response: hello + + - sentences: + - "(kuunteletko|tallennatko|äänitätkö) aina [ääntä]" + - "kuunteletko [minua] aina" + - "onko (tallennus|äänitys) aina päällä" + response: listening + + - sentences: + - "(minne|mihin) (tietoni|datani|tietoani|tietojani) (viedään|joutuu|joutuvat|menee|käytetään)" + response: data + + - sentences: + - "mitä voin (sanoa|kysyä|tehdä)" + response: commands + + - sentences: + - "(kuka|ketkä|ketä) (on luonut|loi) sinut" + response: creator diff --git a/tests/fi/homeassistant_HassRespond.yaml b/tests/fi/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..ce2f61e073 --- /dev/null +++ b/tests/fi/homeassistant_HassRespond.yaml @@ -0,0 +1,33 @@ +language: fi +tests: + - sentences: + - "heippa home assistant" + intent: + name: HassRespond + response: "Tervehdys Home Assistantilta." + + - sentences: + - "tallennatko aina ääntä?" + - "kuunteletko aina?" + - "onko tallennus aina päällä?" + intent: + name: HassRespond + response: "En, äänitän ainoastaan kun kuulen herätesanan." + + - sentences: + - "minne datani menee?" + intent: + name: HassRespond + response: "Tietosi lähetetään ainoastaan sinun Home Assistant-palvelimellesi." + + - sentences: + - "mitä voin tehdä?" + intent: + name: HassRespond + response: "Oppiaksesi lisää mitä voit kysyä minulta, vieraile home-assistant.io kautta voice." + + - sentences: + - "kuka loi sinut?" + intent: + name: HassRespond + response: "Minut on luonut loistava Home Assistant -yhteisö, joka koostuu maailmanlaajuisista puuhastelijoista." From 62356b3471075407d9c54bb168453816c1791403 Mon Sep 17 00:00:00 2001 From: Luiz Oliveira <134880920+luyzfernando08@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:35:44 -0300 Subject: [PATCH 24/92] [PT-BR] Update timer sentences (#2460) * [PT-BR] Update timer sentences --- responses/pt-br/HassCancelTimer.yaml | 5 + responses/pt-br/HassDecreaseTimer.yaml | 5 + responses/pt-br/HassIncreaseTimer.yaml | 5 + responses/pt-br/HassPauseTimer.yaml | 5 + responses/pt-br/HassStartTimer.yaml | 6 + responses/pt-br/HassTimerStatus.yaml | 96 +++++++++++++++ sentences/pt-br/_common.yaml | 12 +- .../pt-br/homeassistant_HassCancelTimer.yaml | 10 ++ .../homeassistant_HassDecreaseTimer.yaml | 19 +++ .../homeassistant_HassIncreaseTimer.yaml | 19 +++ .../pt-br/homeassistant_HassPauseTimer.yaml | 10 ++ .../pt-br/homeassistant_HassStartTimer.yaml | 19 +++ .../pt-br/homeassistant_HassTimerStatus.yaml | 17 +++ tests/pt-br/_fixtures.yaml | 20 ++++ .../pt-br/homeassistant_HassCancelTimer.yaml | 39 +++++++ .../homeassistant_HassDecreaseTimer.yaml | 52 +++++++++ .../homeassistant_HassIncreaseTimer.yaml | 52 +++++++++ tests/pt-br/homeassistant_HassPauseTimer.yaml | 38 ++++++ tests/pt-br/homeassistant_HassStartTimer.yaml | 110 ++++++++++++++++++ .../pt-br/homeassistant_HassTimerStatus.yaml | 57 +++++++++ 20 files changed, 591 insertions(+), 5 deletions(-) create mode 100644 responses/pt-br/HassCancelTimer.yaml create mode 100644 responses/pt-br/HassDecreaseTimer.yaml create mode 100644 responses/pt-br/HassIncreaseTimer.yaml create mode 100644 responses/pt-br/HassPauseTimer.yaml create mode 100644 responses/pt-br/HassStartTimer.yaml create mode 100644 responses/pt-br/HassTimerStatus.yaml create mode 100644 sentences/pt-br/homeassistant_HassCancelTimer.yaml create mode 100644 sentences/pt-br/homeassistant_HassDecreaseTimer.yaml create mode 100644 sentences/pt-br/homeassistant_HassIncreaseTimer.yaml create mode 100644 sentences/pt-br/homeassistant_HassPauseTimer.yaml create mode 100644 sentences/pt-br/homeassistant_HassStartTimer.yaml create mode 100644 sentences/pt-br/homeassistant_HassTimerStatus.yaml create mode 100644 tests/pt-br/homeassistant_HassCancelTimer.yaml create mode 100644 tests/pt-br/homeassistant_HassDecreaseTimer.yaml create mode 100644 tests/pt-br/homeassistant_HassIncreaseTimer.yaml create mode 100644 tests/pt-br/homeassistant_HassPauseTimer.yaml create mode 100644 tests/pt-br/homeassistant_HassStartTimer.yaml create mode 100644 tests/pt-br/homeassistant_HassTimerStatus.yaml diff --git a/responses/pt-br/HassCancelTimer.yaml b/responses/pt-br/HassCancelTimer.yaml new file mode 100644 index 0000000000..bde8fa86f6 --- /dev/null +++ b/responses/pt-br/HassCancelTimer.yaml @@ -0,0 +1,5 @@ +language: pt-br +responses: + intents: + HassCancelTimer: + default: "Cancelado" diff --git a/responses/pt-br/HassDecreaseTimer.yaml b/responses/pt-br/HassDecreaseTimer.yaml new file mode 100644 index 0000000000..28ecab4cb0 --- /dev/null +++ b/responses/pt-br/HassDecreaseTimer.yaml @@ -0,0 +1,5 @@ +language: pt-br +responses: + intents: + HassDecreaseTimer: + default: "Tempo reduzido" diff --git a/responses/pt-br/HassIncreaseTimer.yaml b/responses/pt-br/HassIncreaseTimer.yaml new file mode 100644 index 0000000000..18a46d2564 --- /dev/null +++ b/responses/pt-br/HassIncreaseTimer.yaml @@ -0,0 +1,5 @@ +language: pt-br +responses: + intents: + HassIncreaseTimer: + default: "Tempo adicionado" diff --git a/responses/pt-br/HassPauseTimer.yaml b/responses/pt-br/HassPauseTimer.yaml new file mode 100644 index 0000000000..dd3fc91a0a --- /dev/null +++ b/responses/pt-br/HassPauseTimer.yaml @@ -0,0 +1,5 @@ +language: pt-br +responses: + intents: + HassPauseTimer: + default: "Temporizador pausado" diff --git a/responses/pt-br/HassStartTimer.yaml b/responses/pt-br/HassStartTimer.yaml new file mode 100644 index 0000000000..af0c739371 --- /dev/null +++ b/responses/pt-br/HassStartTimer.yaml @@ -0,0 +1,6 @@ +language: pt-br +responses: + intents: + HassStartTimer: + default: "Temporizador iniciado" + command: "Comando recebido" diff --git a/responses/pt-br/HassTimerStatus.yaml b/responses/pt-br/HassTimerStatus.yaml new file mode 100644 index 0000000000..409d2767a6 --- /dev/null +++ b/responses/pt-br/HassTimerStatus.yaml @@ -0,0 +1,96 @@ +language: pt-br +responses: + intents: + HassTimerStatus: + default: | + {% set num_timers = slots.timers | length %} + {% set active_timers = slots.timers | selectattr('is_active') | list %} + {% set num_active_timers = active_timers | length %} + {% set paused_timers = slots.timers | rejectattr('is_active') | list %} + {% set num_paused_timers = paused_timers | length %} + {% set next_timer = None %} + + {% if num_timers == 0: %} + Não existem temporizadores. + {% elif num_active_timers == 0: %} + {# No active timers #} + {% if num_paused_timers == 1: %} + {% set next_timer = paused_timers[0] %} + O temporizador está pausado. + {% else: %} + {{ num_paused_timers }} temporizadores pausados. + {% endif %} + {% else: %} + {# At least one active timer #} + {% if num_active_timers == 1: %} + {% set next_timer = active_timers[0] %} + {% else: %} + {# Get active timer that will finish soonest #} + {% set sorted_timers = active_timers | sort(attribute='total_seconds_left') %} + {% set next_timer = sorted_timers[0] %} + {{ num_active_timers }} temporizadores ativos. + {% endif %} + + {% if num_paused_timers == 1: %} + 1 temporizador pausado. + {% elif num_paused_timers > 0: %} + {{ num_paused_timers }} temporizadores pausados. + {% endif %} + {% endif %} + + {% if next_timer: %} + + {% if num_timers > 1: %} + + No temporizador + + {% if next_timer.name: %} + {{ next_timer.name }} + {% elif next_timer.area: %} + da área {{ next_timer.area }} + {% endif %} + + de + + {# Give some extra information to disambiguate #} + {% if (next_timer.start_hours > 0) and (next_timer.start_minutes > 0): %} + {{ next_timer.start_hours }} hora{{ "s" if next_timer.start_hours != 1 }} e {{ next_timer.start_minutes }} minuto{{ "s" if next_timer.start_minutes != 1 }} + {% elif (next_timer.start_hours > 0): %} + {{ next_timer.start_hours }} hora{{ "s" if next_timer.start_hours != 1 }} + {% elif (next_timer.start_minutes > 0) and (next_timer.start_seconds > 0): %} + {{ next_timer.start_minutes }} minuto{{ "s" if next_timer.start_minutes != 1 }} e {{ next_timer.start_seconds }} segundo{{ "s" if next_timer.start_seconds != 1 }} + {% elif (next_timer.start_minutes > 0): %} + {{ next_timer.start_minutes }} minuto{{ "s" if next_timer.start_minutes != 1 }} + {% elif (next_timer.start_seconds > 0): %} + {{ next_timer.start_seconds }} segundo{{ "s" if next_timer.start_seconds != 1 }} + {% endif %} + + restam + {% else %} + Restam + {% endif %} + + {# At least one active timer #} + {% if (next_timer.rounded_hours_left == 1) and (next_timer.rounded_minutes_left > 0): %} + 1 hora e {{ next_timer.rounded_minutes_left }} minutos. + {% elif (next_timer.rounded_hours_left == 1): %} + 1 hora. + {% elif (next_timer.rounded_hours_left > 1) and (next_timer.rounded_minutes_left > 0): %} + {{ next_timer.rounded_hours_left }} horas e {{ next_timer.rounded_minutes_left }} minutos. + {% elif (next_timer.rounded_hours_left > 1): %} + {{ next_timer.rounded_hours_left }} horas. + {% elif (next_timer.rounded_minutes_left == 1) and (next_timer.rounded_seconds_left > 0): %} + 1 minuto e {{ next_timer.rounded_seconds_left }} segundos. + {% elif (next_timer.rounded_minutes_left == 1): %} + 1 minuto. + {% elif (next_timer.rounded_minutes_left > 1) and (next_timer.rounded_seconds_left > 0): %} + {{ next_timer.rounded_minutes_left }} minutos e {{ next_timer.rounded_seconds_left }} segundos. + {% elif (next_timer.rounded_minutes_left > 1): %} + {{ next_timer.rounded_minutes_left }} minutos. + {% elif (next_timer.rounded_seconds_left == 1): %} + 1 segundo. + {% elif (next_timer.rounded_seconds_left > 1): %} + {{ next_timer.rounded_seconds_left }} segundos. + {% endif %} + + {% endif %} diff --git a/sentences/pt-br/_common.yaml b/sentences/pt-br/_common.yaml index 3ffea40508..c7a4087a2a 100644 --- a/sentences/pt-br/_common.yaml +++ b/sentences/pt-br/_common.yaml @@ -212,7 +212,7 @@ expansion_rules: brilho: "{brightness}[%| porcento]" colocar: "(coloque|coloca[r]|pôr|põe)" cade: "(onde está [a|o]|cadê [a|o])" - cancela: "(cancele|cancela[r])" + cancela: "(cancele|cancela[r]|para[r]|pare)" desligar: "(desliga|desligue|apaga|apague|desligar|apagar|desativa[r]|desative)" esta: "(está|estão|existe|existem)" fecha: "(fecha|feche|fechar)" @@ -228,13 +228,15 @@ expansion_rules: temperatura: "{temperature}[°| graus] [{temperature_unit}]" volume: "{volume:volume_level}[[ ]%| por cento]" zona: "[(o|os|a|as)] {area}" - + falta: "(falta|resta)" + alarme: "(alarme[s]|cronômetro[s]|timer[s]|temporizador[es])" + pausar: "(pausa[r]|pause)" # Context awareness expansion rules casa: "(casa|apartamento)" # Timers - temporizador: "[o ][meu ](alarme|cronômetro|timer)" - temporizadores: "[os ][meus ](alarmes|cronômetros|timers)" + temporizador: "[(no|do|o)] [meu ]" + temporizadores: "[(nos|dos|os) ][meus ]" nb_seconds: "({timer_seconds:seconds}|{timer_words_seconds:seconds})" nb_minutes: "({timer_minutes:minutes}|{timer_words_minutes:minutes})" @@ -243,7 +245,7 @@ expansion_rules: nb_start_minutes: "({timer_minutes:start_minutes}|{timer_words_minutes:start_minutes})" nb_start_hours: "({timer_hours:start_hours}|{timer_words_hours:start_hours})" - timer_set: "(alarme|inicia[r])" + timer_set: "" timer_cancel: "(|)" timer_duration_seconds: " segundo[s]" timer_duration_minutes: " minuto[s][ [e ]]" diff --git a/sentences/pt-br/homeassistant_HassCancelTimer.yaml b/sentences/pt-br/homeassistant_HassCancelTimer.yaml new file mode 100644 index 0000000000..06e4a80c9a --- /dev/null +++ b/sentences/pt-br/homeassistant_HassCancelTimer.yaml @@ -0,0 +1,10 @@ +--- +language: "pt-br" +intents: + HassCancelTimer: + data: + - sentences: + - " " + - " [de ]" + - " " + - " [chamado ]{timer_name:name}" diff --git a/sentences/pt-br/homeassistant_HassDecreaseTimer.yaml b/sentences/pt-br/homeassistant_HassDecreaseTimer.yaml new file mode 100644 index 0000000000..c6782d3cae --- /dev/null +++ b/sentences/pt-br/homeassistant_HassDecreaseTimer.yaml @@ -0,0 +1,19 @@ +--- +language: "pt-br" +intents: + HassDecreaseTimer: + data: + - sentences: + - " [do ]" + - " [do ] [de ]" + - " [do ] " + - " [do ] [chamado ]{timer_name:name}" + expansion_rules: + reduzir: "(reduz[ir]|remove[r]|retira[r])[ em]" + - sentences: + - " [do ] [em ]" + - " [do ] [de ] [em ]" + - " [do ] [em ]" + - " [do ] [chamado ]{timer_name:name} [em ]" + expansion_rules: + reduzir: "(reduz[ir]|remove[r]|retira[r])" diff --git a/sentences/pt-br/homeassistant_HassIncreaseTimer.yaml b/sentences/pt-br/homeassistant_HassIncreaseTimer.yaml new file mode 100644 index 0000000000..4ec0f65cce --- /dev/null +++ b/sentences/pt-br/homeassistant_HassIncreaseTimer.yaml @@ -0,0 +1,19 @@ +--- +language: "pt-br" +intents: + HassIncreaseTimer: + data: + - sentences: + - " [ao |no ]" + - " [ao |no ] [de ]" + - " [ao |no ] " + - " [ao |no ] [chamado ]{timer_name:name}" + expansion_rules: + aumentar: "(aumenta[r]|adiciona[r]|acrescenta[r])[ em]" + - sentences: + - " [em ]" + - " [de ] [em ]" + - " [em ]" + - " [chamado ]{timer_name:name} [em ]" + expansion_rules: + aumentar: "(aumenta[r]|adiciona[r]|acrescenta[r])" diff --git a/sentences/pt-br/homeassistant_HassPauseTimer.yaml b/sentences/pt-br/homeassistant_HassPauseTimer.yaml new file mode 100644 index 0000000000..c2cb0304d5 --- /dev/null +++ b/sentences/pt-br/homeassistant_HassPauseTimer.yaml @@ -0,0 +1,10 @@ +--- +language: "pt-br" +intents: + HassPauseTimer: + data: + - sentences: + - " " + - " [de ]" + - " " + - " [chamado ]{timer_name:name}" diff --git a/sentences/pt-br/homeassistant_HassStartTimer.yaml b/sentences/pt-br/homeassistant_HassStartTimer.yaml new file mode 100644 index 0000000000..3cddc915e3 --- /dev/null +++ b/sentences/pt-br/homeassistant_HassStartTimer.yaml @@ -0,0 +1,19 @@ +--- +language: "pt-br" +intents: + HassStartTimer: + data: + - sentences: + - "[ ][um ][ ] " + - "[ ][um ][ chamado] {timer_name:name}[ ] " + - "[ ][um ][ ] [ chamado] {timer_name:name}" + - " " + expansion_rules: + timer_set: "(define|definir|começa[r]|inicia[r]|cria[r])" + duration_prefix: "(de|com|para|em)" + - sentences: + - "{timer_command:conversation_command} " + - " {timer_command:conversation_command}" + expansion_rules: + daqui_a: "(em|dentro de|daqui a)" + response: command diff --git a/sentences/pt-br/homeassistant_HassTimerStatus.yaml b/sentences/pt-br/homeassistant_HassTimerStatus.yaml new file mode 100644 index 0000000000..2269959069 --- /dev/null +++ b/sentences/pt-br/homeassistant_HassTimerStatus.yaml @@ -0,0 +1,17 @@ +--- +language: "pt-br" +intents: + HassTimerStatus: + data: + - sentences: + - "[ ][o ](status|estado dos|tempo restante) " + - "quanto tempo " + + - "[ ][o ](status|estado do|tempo restante) [ [de ]]" + - "quanto tempo [ [de ]]" + + - "[ ][o ](status|estado do|tempo restante) " + - "quanto tempo " + + - "[ ][o ](status|estado do|tempo restante) [chamado ]{timer_name:name}" + - "quanto tempo no [chamado ]{timer_name:name}" diff --git a/tests/pt-br/_fixtures.yaml b/tests/pt-br/_fixtures.yaml index 35e6884bfd..92cff1290d 100644 --- a/tests/pt-br/_fixtures.yaml +++ b/tests/pt-br/_fixtures.yaml @@ -203,3 +203,23 @@ entities: - name: "Bernardo" id: "person.bernardo" state: "not_home" + +timers: + - is_active: false + start_hours: 1 + total_seconds_left: 100 + rounded_hours_left: 0 + rounded_minutes_left: 1 + rounded_seconds_left: 40 + - name: "pizza" + start_minutes: 30 + total_seconds_left: 1505 + rounded_hours_left: 0 + rounded_minutes_left: 25 + rounded_seconds_left: 0 + - area: "cozinha" + start_minutes: 5 + total_seconds_left: 190 + rounded_hours_left: 0 + rounded_minutes_left: 3 + rounded_seconds_left: 0 diff --git a/tests/pt-br/homeassistant_HassCancelTimer.yaml b/tests/pt-br/homeassistant_HassCancelTimer.yaml new file mode 100644 index 0000000000..4d5a6070e1 --- /dev/null +++ b/tests/pt-br/homeassistant_HassCancelTimer.yaml @@ -0,0 +1,39 @@ +language: pt-br +tests: + - sentences: + - "cancelar temporizador" + - "cancela o cronômetro" + - "parar alarme" + - "pare o temporizador" + intent: + name: HassCancelTimer + response: Cancelado + + - sentences: + - "cancelar o temporizador de 5 minutos" + - "pare o temporizador de 5 minutos" + intent: + name: HassCancelTimer + slots: + start_minutes: 5 + response: Cancelado + + - sentences: + - "cancelar temporizador pizza" + - "cancela o meu temporizador chamado pizza" + intent: + name: HassCancelTimer + slots: + name: + - "pizza " + - "pizza" + response: Cancelado + + - sentences: + - "cancelar temporizador da cozinha" + - "cancelar o temporizador na cozinha" + intent: + name: HassCancelTimer + slots: + area: Cozinha + response: Cancelado diff --git a/tests/pt-br/homeassistant_HassDecreaseTimer.yaml b/tests/pt-br/homeassistant_HassDecreaseTimer.yaml new file mode 100644 index 0000000000..bb55f2828f --- /dev/null +++ b/tests/pt-br/homeassistant_HassDecreaseTimer.yaml @@ -0,0 +1,52 @@ +language: pt-br +tests: + - sentences: + - "reduzir em 5 minutos o temporizador" + - "remover 5 minutos do temporizador" + - "retirar 5 minutos do temporizador" + - "reduzir o temporizador em 5 minutos" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + response: Tempo reduzido + + - sentences: + - "reduzir em 5 minutos o temporizador de uma hora" + - "remover 5 minutos do temporizador de 1 hora" + - "retirar 5 minutos do temporizador de 1 hora" + - "reduzir o temporizador de 1 hora em 5 minutos" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + start_hours: 1 + response: Tempo reduzido + + - sentences: + - "reduzir em 5 minutos o temporizador chamado pizza" + - "reduzir em 5 minutos o temporizador pizza" + - "remover 5 minutos do temporizador pizza" + - "retirar 5 minutos do temporizador pizza" + - "reduzir o temporizador pizza em 5 minutos" + - "reduzir o temporizador chamado pizza em 5 minutos" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + name: + - "pizza " + - "pizza" + response: Tempo reduzido + + - sentences: + - "reduzir em 5 minutos o temporizador da cozinha" + - "remover 5 minutos do temporizador da cozinha" + - "retirar 5 minutos do temporizador da cozinha" + - "reduzir o temporizador da cozinha em 5 minutos" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + area: Cozinha + response: Tempo reduzido diff --git a/tests/pt-br/homeassistant_HassIncreaseTimer.yaml b/tests/pt-br/homeassistant_HassIncreaseTimer.yaml new file mode 100644 index 0000000000..f706c3f299 --- /dev/null +++ b/tests/pt-br/homeassistant_HassIncreaseTimer.yaml @@ -0,0 +1,52 @@ +language: pt-br +tests: + - sentences: + - "aumentar em 5 minutos o temporizador" + - "adicionar 5 minutos ao temporizador" + - "acrescentar 5 minutos ao temporizador" + - "aumentar o temporizador em 5 minutos" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + response: Tempo adicionado + + - sentences: + - "aumentar em 5 minutos o temporizador de uma hora" + - "adicionar 5 minutos ao temporizador de 1 hora" + - "acrescentar 5 minutos ao temporizador de 1 hora" + - "aumentar o temporizador de 1 hora em 5 minutos" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + start_hours: 1 + response: Tempo adicionado + + - sentences: + - "aumentar em 5 minutos o temporizador chamado pizza" + - "aumentar em 5 minutos o temporizador pizza" + - "adicionar 5 minutos ao temporizador pizza" + - "acrescentar 5 minutos ao temporizador pizza" + - "aumentar o temporizador pizza em 5 minutos" + - "aumentar o temporizador chamado pizza em 5 minutos" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + name: + - "pizza " + - "pizza" + response: Tempo adicionado + + - sentences: + - "aumentar em 5 minutos o temporizador da cozinha" + - "adicionar 5 minutos ao temporizador da cozinha" + - "acrescentar 5 minutos ao temporizador da cozinha" + - "aumentar o temporizador da cozinha em 5 minutos" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + area: Cozinha + response: Tempo adicionado diff --git a/tests/pt-br/homeassistant_HassPauseTimer.yaml b/tests/pt-br/homeassistant_HassPauseTimer.yaml new file mode 100644 index 0000000000..905b2f7fe4 --- /dev/null +++ b/tests/pt-br/homeassistant_HassPauseTimer.yaml @@ -0,0 +1,38 @@ +language: pt-br +tests: + - sentences: + - "pausar temporizador" + - "pausa o cronômetro" + - "pause o alarme" + intent: + name: HassPauseTimer + response: Temporizador pausado + + - sentences: + - "pausar o temporizador de 5 minutos" + - "pause temporizador de 5 minutos" + intent: + name: HassPauseTimer + slots: + start_minutes: 5 + response: Temporizador pausado + + - sentences: + - "pausar temporizador pizza" + - "pausa o meu temporizador chamado pizza" + intent: + name: HassPauseTimer + slots: + name: + - "pizza " + - "pizza" + response: Temporizador pausado + + - sentences: + - "pausar temporizador da cozinha" + - "pausar o temporizador na cozinha" + intent: + name: HassPauseTimer + slots: + area: Cozinha + response: Temporizador pausado diff --git a/tests/pt-br/homeassistant_HassStartTimer.yaml b/tests/pt-br/homeassistant_HassStartTimer.yaml new file mode 100644 index 0000000000..23866fb7e1 --- /dev/null +++ b/tests/pt-br/homeassistant_HassStartTimer.yaml @@ -0,0 +1,110 @@ +language: pt-br +tests: + - sentences: + - "temporizador de 30 segundos" + intent: + name: HassStartTimer + context: + area: Sala + slots: + seconds: 30 + response: Temporizador iniciado + + - sentences: + - "temporizador de 45 minutos" + intent: + name: HassStartTimer + context: + area: Sala + slots: + minutes: 45 + response: Temporizador iniciado + + - sentences: + - "temporizador de 2 minutos, e um segundo" + - "temporizador de 2 minutos e 1 segundo" + intent: + name: HassStartTimer + context: + area: Sala + slots: + minutes: 2 + seconds: 1 + response: Temporizador iniciado + + - sentences: + - "temporizador de 3 horas, e um minuto" + - "temporizador de 3 horas e 1 minuto" + intent: + name: HassStartTimer + context: + area: Sala + slots: + hours: 3 + minutes: 1 + response: Temporizador iniciado + + - sentences: + - "temporizador de uma hora, um minuto e 30 segundos" + - "temporizador de uma hora e um minuto e 30 segundos" + - "temporizador de uma hora, um minuto, 30 segundos" + - "temporizador de uma hora um minuto 30 segundos" + intent: + name: HassStartTimer + context: + area: Sala + slots: + hours: 1 + minutes: 1 + seconds: 30 + response: Temporizador iniciado + + - sentences: + - "temporizador de 1 hora" + - "definir cronômetro de 1 hora" + - "define cronômetro de 1 hora" + - "começa temporizador com 1 hora" + - "começar temporizador de 1 hora" + - "cria temporizador para 1 hora" + - "cria um temporizador de 1 hora" + - "criar temporizador de 1 hora" + - "inicia cronômetro de 1 hora" + - "inicia alarme de 1 hora" + - "iniciar um cronômetro de uma hora" + intent: + name: HassStartTimer + context: + area: Sala + slots: + hours: 1 + response: Temporizador iniciado + + - sentences: + - "temporizador de 5 minutos chamado pizza" + - "definir temporizador chamado pizza para 5 minutos" + - "começar cronômetro chamado pizza com 5 minutos" + - "iniciar alarme chamado pizza com 5 minutos" + intent: + name: HassStartTimer + context: + area: Sala + slots: + minutes: 5 + name: + - "pizza " + - "pizza" + response: Temporizador iniciado + + - sentences: + - "ligar a luz dentro de 5 minutos" + - "ligar a luz daqui a 5 minutos" + - "daqui a 5 minutos, ligar a luz" + - "em 5 minutos, ligar a luz" + intent: + name: HassStartTimer + slots: + minutes: 5 + conversation_command: + - "ligar a luz" + - "ligar a luz " + response: Comando recebido diff --git a/tests/pt-br/homeassistant_HassTimerStatus.yaml b/tests/pt-br/homeassistant_HassTimerStatus.yaml new file mode 100644 index 0000000000..21b551f81d --- /dev/null +++ b/tests/pt-br/homeassistant_HassTimerStatus.yaml @@ -0,0 +1,57 @@ +language: pt-br +tests: + - sentences: + - "estado dos temporizadores" + - "qual é o estado dos temporizadores" + - "qual o tempo restante nos cronômetro" + - "tempo restante nos cronômetro" + - "quanto tempo resta nos temporizadores" + - "quanto tempo falta nos temporizadores" + intent: + name: HassTimerStatus + response: | + 2 temporizadores ativos. 1 temporizador pausado. No temporizador da área cozinha de 5 minutos restam 3 minutos. + + - sentences: + - "estado do temporizador de 1 hora" + - "qual é o estado do temporizador de 1 hora" + - "qual o tempo restante no cronômetro de 1 hora" + - "tempo restante no cronômetro de 1 hora" + - "quanto tempo resta no temporizador de 1 hora" + - "quanto tempo falta no temporizador de 1 hora" + intent: + name: HassTimerStatus + slots: + start_hours: 1 + response: | + O temporizador está pausado. Restam 1 minuto e 40 segundos. + + - sentences: + - "estado do temporizador pizza" + - "qual é o estado do temporizador chamado pizza" + - "qual o tempo restante no cronômetro pizza" + - "tempo restante no cronômetro pizza" + - "quanto tempo resta no temporizador pizza" + - "quanto tempo falta no temporizador pizza" + intent: + name: HassTimerStatus + slots: + name: + - "pizza " + - "pizza" + response: | + Restam 25 minutos. + + - sentences: + - "estado do temporizador da cozinha" + - "qual é o estado do temporizador da cozinha" + - "qual o tempo restante no cronômetro da cozinha" + - "tempo restante no cronômetro da cozinha" + - "quanto tempo resta no temporizador da cozinha" + - "quanto tempo falta no temporizador da cozinha" + intent: + name: HassTimerStatus + slots: + area: Cozinha + response: | + Restam 3 minutos. From b17a3326842122868ede848839272c050fa25e86 Mon Sep 17 00:00:00 2001 From: Luiz Oliveira <134880920+luyzfernando08@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:31:45 -0300 Subject: [PATCH 25/92] [PT-BR] HassRespond (#2461) --- responses/pt-br/HassRespond.yaml | 9 ++++++ .../pt-br/homeassistant_HassRespond.yaml | 23 ++++++++++++++ tests/pt-br/homeassistant_HassRespond.yaml | 31 +++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 responses/pt-br/HassRespond.yaml create mode 100644 sentences/pt-br/homeassistant_HassRespond.yaml create mode 100644 tests/pt-br/homeassistant_HassRespond.yaml diff --git a/responses/pt-br/HassRespond.yaml b/responses/pt-br/HassRespond.yaml new file mode 100644 index 0000000000..05743899c0 --- /dev/null +++ b/responses/pt-br/HassRespond.yaml @@ -0,0 +1,9 @@ +language: pt-br +responses: + intents: + HassRespond: + hello: "Olá do Home Assistant." + listening: "Não, eu só gravo quando você diz a palavra de ativação." + data: "Seus dados são enviados para o seu servidor Home Assistant." + commands: "Para saber o que você pode perguntar, visite H.A. ponto I.O. barra voice." + creator: "Fui criado pela maravilhosa comunidade do Home Assistant, formada por entusiastas de todo o mundo." diff --git a/sentences/pt-br/homeassistant_HassRespond.yaml b/sentences/pt-br/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..db5c7f5bb3 --- /dev/null +++ b/sentences/pt-br/homeassistant_HassRespond.yaml @@ -0,0 +1,23 @@ +language: "pt-br" +intents: + HassRespond: + data: + - sentences: + - "(olá|oi) [home assistant]" + response: hello + + - sentences: + - "você está sempre (ouvindo|gravando)" + response: listening + + - sentences: + - "(para|pra) onde vão [os] [meus] dados" + response: data + + - sentences: + - "o que eu posso (dizer|perguntar)" + response: commands + + - sentences: + - "quem (fez|criou) você" + response: creator diff --git a/tests/pt-br/homeassistant_HassRespond.yaml b/tests/pt-br/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..9bc0686b21 --- /dev/null +++ b/tests/pt-br/homeassistant_HassRespond.yaml @@ -0,0 +1,31 @@ +language: pt-br +tests: + - sentences: + - "olá home assistant" + intent: + name: HassRespond + response: "Olá do Home Assistant." + + - sentences: + - "você está sempre ouvindo?" + intent: + name: HassRespond + response: "Não, eu só gravo quando você diz a palavra de ativação." + + - sentences: + - "para onde vão os meus dados?" + intent: + name: HassRespond + response: "Seus dados são enviados para o seu servidor Home Assistant." + + - sentences: + - "o que eu posso dizer?" + intent: + name: HassRespond + response: "Para saber o que você pode perguntar, visite H.A. ponto I.O. barra voice." + + - sentences: + - "quem fez você?" + intent: + name: HassRespond + response: "Fui criado pela maravilhosa comunidade do Home Assistant, formada por entusiastas de todo o mundo." From 3def82f1e1e44eefb51f76caf3a028a8ebfc0f51 Mon Sep 17 00:00:00 2001 From: Martijn van der Pol Date: Tue, 5 Nov 2024 17:33:43 +0100 Subject: [PATCH 26/92] [NL] Add some more sentences to ask for timer status (#2459) --- .../nl/homeassistant_HassTimerStatus.yaml | 20 ++++++++++--------- tests/nl/homeassistant_HassTimerStatus.yaml | 5 ++++- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/sentences/nl/homeassistant_HassTimerStatus.yaml b/sentences/nl/homeassistant_HassTimerStatus.yaml index cf972de20e..6accb84f12 100644 --- a/sentences/nl/homeassistant_HassTimerStatus.yaml +++ b/sentences/nl/homeassistant_HassTimerStatus.yaml @@ -4,17 +4,19 @@ intents: HassTimerStatus: data: - sentences: - - "timer[s] status" - - "status van[ de| mijn] timer[s]" + - "[wat is de ]timer[s] status" + - "[wat is de ]status van[ de| mijn] timer[s]" - "[hoe veel ]tijd[ is][ er][ nog] over (op|van|voor)[ de| mijn] timer[s]" - - " timer status" - - "status van[ de| mijn] timer" + - "[wat is de ] timer status" + - "[wat is de ]status van[ de| mijn] timer" - "[hoe veel ]tijd[ is][ er][ nog] over (op|van|voor)[ de| mijn] timer" - - "{area}[ ]timer status" - - "status van[ de| mijn] {area}[ ]timer[s]" - - "status van[ de| mijn] timer[s] " + - "[wat is de ]{area}[ ]timer status" + - "[wat is de ]status van[ de| mijn] {area}[ ]timer[s]" + - "[wat is de ]status van[ de| mijn] timer[s] " - "[hoe veel ]tijd[ is][ er][ nog] over (op|van|voor)[ de| mijn] {area}[ ]timer" - "[hoe veel ]tijd[ is][ er][ nog] over (op|van|voor)[ de| mijn] timer[s] " - - "{timer_name:name}[ ]timer status" - - "status van[ de| mijn] {timer_name:name}[ ]timer[s]" + - "[wat is de ]{timer_name:name}[ ]timer status" + - "[wat is de ]status van[ de| mijn] {timer_name:name}[ ]timer[s]" - "[hoe veel ]tijd[ is][ er][ nog] over (op|van|voor)[ de| mijn] {timer_name:name}[ ]timer" + - "hoe lang (is|moet) [de ]({area}[ ]timer|timer |{timer_name:name}[ ]timer| timer|timer) nog" + - "hoe lang (zijn|moeten) [de ]({area}[ ]timers|timers |{timer_name:name}[ ]timers|timers) nog" diff --git a/tests/nl/homeassistant_HassTimerStatus.yaml b/tests/nl/homeassistant_HassTimerStatus.yaml index 0e8d928504..bf53135984 100644 --- a/tests/nl/homeassistant_HassTimerStatus.yaml +++ b/tests/nl/homeassistant_HassTimerStatus.yaml @@ -5,6 +5,7 @@ tests: - "timer status" - "status van mijn timers" - "hoe veel tijd is er over van mijn timers" + - "hoe lang moeten de timers nog" intent: name: HassTimerStatus response: | @@ -23,8 +24,9 @@ tests: - sentences: - "pizza timer status" - - "status van pizza timer" + - "wat is de status van pizza timer" - "hoe veel tijd is er over op pizza timer" + - "hoe lang is de pizza timer nog" intent: name: HassTimerStatus slots: @@ -38,6 +40,7 @@ tests: - "status van timer in keuken" - "hoe veel tijd is er over van de keuken timer" - "hoe veel tijd is er over van de timer in de keuken" + - "hoe lang moet de keuken timer nog" intent: name: HassTimerStatus slots: From 6c02a9bbbf9c1ed93126e0c5b19783ec465459a8 Mon Sep 17 00:00:00 2001 From: Alex Graupera <29673614+alexgraupera@users.noreply.github.com> Date: Tue, 5 Nov 2024 20:28:33 +0100 Subject: [PATCH 27/92] [CA] Add more Get Temperature sentences (#2340) * Fix Template error: float got invalid input 'Refreda' when rendering template * Added more sentences. Code refactor and test refactor --- responses/ca/HassClimateGetTemperature.yaml | 4 +- sentences/ca/_common.yaml | 1 + .../ca/climate_HassClimateGetTemperature.yaml | 7 ++-- tests/ca/_fixtures.yaml | 39 +++++++++++++++++++ .../ca/climate_HassClimateGetTemperature.yaml | 39 ++++++++++++++++--- 5 files changed, 80 insertions(+), 10 deletions(-) diff --git a/responses/ca/HassClimateGetTemperature.yaml b/responses/ca/HassClimateGetTemperature.yaml index e24b6f768c..4c18a262ca 100644 --- a/responses/ca/HassClimateGetTemperature.yaml +++ b/responses/ca/HassClimateGetTemperature.yaml @@ -2,4 +2,6 @@ language: ca responses: intents: HassClimateGetTemperature: - default: "{{ state.state | float | abs | round(2) }} {{ 'grau' if state.state | float | abs == 1 else 'graus' }} {{ 'sota zero' if state.state | float < 0 else '' }}" + default: > + {% set temperature = state_attr(state.entity_id, 'current_temperature') %} + {{ temperature | float | abs | round(1) | replace('.0', '') | replace('.',',') }} {{ 'grau' if temperature | float | abs == 1 else 'graus' }} {{ 'sota zero' if temperature | float < 0 else '' }} diff --git a/sentences/ca/_common.yaml b/sentences/ca/_common.yaml index c09f04dc65..c98b23836e 100644 --- a/sentences/ca/_common.yaml +++ b/sentences/ca/_common.yaml @@ -115,6 +115,7 @@ lists: from: 0 to: 100 expansion_rules: + actual: "(ara|actual[ment])" pronom_singular: "(el|la|l')[ ]" pronom_plural: "(els|les)[ ]" pronom: "(|)" diff --git a/sentences/ca/climate_HassClimateGetTemperature.yaml b/sentences/ca/climate_HassClimateGetTemperature.yaml index 1490cdd493..a95ea66d28 100644 --- a/sentences/ca/climate_HassClimateGetTemperature.yaml +++ b/sentences/ca/climate_HassClimateGetTemperature.yaml @@ -3,7 +3,6 @@ intents: HassClimateGetTemperature: data: - sentences: - - "quina fa" - - "quina és la " - - "quina és la " - - "quanta calor fa " + - "quina fa [] []" + - "quina és la [] []" + - "(quanta|quina) calor fa [] []" diff --git a/tests/ca/_fixtures.yaml b/tests/ca/_fixtures.yaml index a5273c2925..fe79a0a201 100644 --- a/tests/ca/_fixtures.yaml +++ b/tests/ca/_fixtures.yaml @@ -2,12 +2,16 @@ language: ca areas: - name: Cuina id: kitchen + - name: Menjador id: living_room + - name: Dormitori id: bedroom + - name: Garatge id: garage + entities: - name: Llum Dormitori id: light.bedroom_lamp @@ -15,26 +19,32 @@ entities: state: in: "apagada" out: "off" + - name: Interruptor Cuina id: switch.kitchen area: kitchen state: in: "encés" out: "on" + - name: Ventilador sostre id: fan.ceiling area: living_room state: "on" + - name: Cortina esquerra id: cover.curtain_left area: living_room state: "open" attributes: device_class: curtain + - name: Festa id: scene.festa + - name: Obre porta id: script.obre_porta + - name: Cortina dormitori id: cover.cortina_dormitori area: bedroom @@ -44,22 +54,27 @@ entities: attributes: device_class: curtain position: "0" + - name: Clau de pas id: valve.clau_de_pas state: open attributes: position: "100" + - name: TV id: media_player.tv state: idle attributes: volume_level: "50" + - name: Radiocasset id: media_player.radiocasset state: idle + - name: Aspiradora id: vacuum.aspiradora state: idle + - name: Barcelona id: weather.barcelona state: rainy @@ -73,3 +88,27 @@ entities: attributes: temperature: "-4" temperature_unit: "°C" + + - name: Termostat menjador + id: climate.termostat_menjador + area: living_room + state: "off" + attributes: + unit_of_measurement: "°C" + current_temperature: 22 + + - name: Termostat dormitori + id: climate.termostat_dormitori + area: bedroom + state: "heat" + attributes: + unit_of_measurement: "°C" + current_temperature: 24.28 + + - name: Termostat cuina + id: climate.termostat_cuina + area: kitchen + state: "off" + attributes: + unit_of_measurement: "°C" + current_temperature: -5 diff --git a/tests/ca/climate_HassClimateGetTemperature.yaml b/tests/ca/climate_HassClimateGetTemperature.yaml index cb7f1885d2..31ad4d2c35 100644 --- a/tests/ca/climate_HassClimateGetTemperature.yaml +++ b/tests/ca/climate_HassClimateGetTemperature.yaml @@ -1,15 +1,44 @@ language: ca tests: - sentences: - - quina temperatura fa - - quina és la temperatura + - "quina temperatura fa?" + - "quina temperatura fa ara?" + - "quina calor fa actualment?" + - "quina calor fa?" + - "quina calor fa ara?" + - "quina és la temperatura?" + - "quina és la temperatura ara?" + - "quina és la temperatura actual?" + - "quina és la temperatura actualment?" intent: name: HassClimateGetTemperature - slots: {} + response: "22 graus" + - sentences: - - quina és la temperatura al dormitori - - quanta calor fa al dormitori + - "quina és la temperatura al dormitori?" + - "quina és la temperatura actual al dormitori?" + - "quina és la temperatura ara al dormitori?" + - "quina temperatura fa al dormitori?" + - "quina temperatura fa ara al dormitori?" + - "quina temperatura fa actualment al dormitori?" + - "quanta calor fa al dormitori?" + - "quina calor fa al dormitori?" intent: name: HassClimateGetTemperature slots: area: Dormitori + response: "24,3 graus" + + - sentences: + - "quina és la temperatura a la cuina?" + - "quina és la temperatura actual a la cuina?" + - "quina temperatura fa a la cuina?" + - "quina temperatura fa ara a la cuina?" + - "quanta calor fa a la cuina?" + - "quanta calor fa ara a la cuina?" + - "quina calor fa a la cuina?" + intent: + name: HassClimateGetTemperature + slots: + area: Cuina + response: "5 graus sota zero" From da2d4aa2db861756c3646e2f27d235485de4b87e Mon Sep 17 00:00:00 2001 From: Witold Gren Date: Tue, 5 Nov 2024 23:00:16 +0100 Subject: [PATCH 28/92] [PL] added polish HassRespond intent (#2452) * added polish HassRespond intent --- responses/pl/HassRespond.yaml | 9 +++++ sentences/pl/homeassistant_HassRespond.yaml | 31 +++++++++++++++ tests/pl/homeassistant_HassRespond.yaml | 44 +++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 responses/pl/HassRespond.yaml create mode 100644 sentences/pl/homeassistant_HassRespond.yaml create mode 100644 tests/pl/homeassistant_HassRespond.yaml diff --git a/responses/pl/HassRespond.yaml b/responses/pl/HassRespond.yaml new file mode 100644 index 0000000000..21712fddeb --- /dev/null +++ b/responses/pl/HassRespond.yaml @@ -0,0 +1,9 @@ +language: pl +responses: + intents: + HassRespond: + hello: "Witam, Home Assistant." + listening: "Nie, nagrywam tylko wtedy, gdy wypowiesz słowo budzące." + data: "Twoje dane są przesyłane do Twojego serwera Home Assistant." + commands: "Aby dowiedzieć się, o co możesz zapytać, odwiedź: home, myślnik, assistant, kropka, i, o, slesz, voice" + creator: "Zostałem stworzony przez wspaniałą społeczność Home Assistant, składającą się z pasjonatów na całym świecie." diff --git a/sentences/pl/homeassistant_HassRespond.yaml b/sentences/pl/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..ceb1744912 --- /dev/null +++ b/sentences/pl/homeassistant_HassRespond.yaml @@ -0,0 +1,31 @@ +language: pl +intents: + HassRespond: + data: + - sentences: + - "(witaj|cześć|hej)[ home assistant]" + response: hello + + - sentences: + - "czy zawsze (słuchasz|nasłuchujesz|nagrywasz)" + - "czy jesteś zawsze w trybie nasłuchiwania" + response: listening + + - sentences: + - "dokąd trafiają [moje] dane" + - "gdzie są (wysyłane|przesyłane)[ moje] dane" + - "gdzie trafiają [moje] dane" + response: data + + - sentences: + - "co mogę powiedzieć" + - "o co mogę zapytać" + - "co potrafisz" + response: commands + + - sentences: + - "kto cię stworzył" + - "przez kogo zostałeś stworzony" + - "kim jest twój twórca" + # - "kto jest twoim twórcą" + response: creator diff --git a/tests/pl/homeassistant_HassRespond.yaml b/tests/pl/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..efac3e9741 --- /dev/null +++ b/tests/pl/homeassistant_HassRespond.yaml @@ -0,0 +1,44 @@ +language: pl +tests: + - sentences: + - "witaj home assistant" + - "cześć home assistant" + intent: + name: HassRespond + response: "Witam, Home Assistant." + + - sentences: + - "czy zawsze słuchasz" + - "czy zawsze nasłuchujesz" + - "czy zawsze nagrywasz" + - "czy jesteś zawsze w trybie nasłuchiwania" + intent: + name: HassRespond + response: "Nie, nagrywam tylko wtedy, gdy wypowiesz słowo budzące." + + - sentences: + - "dokąd trafiają dane" + - "dokąd trafiają moje dane" + - "gdzie są wysyłane moje dane" + - "gdzie są przesyłane dane" + - "gdzie trafiają dane" + - "gdzie trafiają moje dane" + intent: + name: HassRespond + response: "Twoje dane są przesyłane do Twojego serwera Home Assistant." + + - sentences: + - "co mogę powiedzieć" + - "o co mogę zapytać" + - "co potrafisz" + intent: + name: HassRespond + response: "Aby dowiedzieć się, o co możesz zapytać, odwiedź: home, myślnik, assistant, kropka, i, o, slesz, voice" + + - sentences: + - "kto cię stworzył" + - "przez kogo zostałeś stworzony" + - "kim jest twój twórca" + intent: + name: HassRespond + response: "Zostałem stworzony przez wspaniałą społeczność Home Assistant, składającą się z pasjonatów na całym świecie." From d795a67a96c3eb80c53faba9e1d8674f45141649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Gir=C3=B3n?= Date: Wed, 6 Nov 2024 00:18:03 +0100 Subject: [PATCH 29/92] [CA] Add ListAddItems (#2284) --- responses/ca/HassListAddItem.yaml | 5 +++++ sentences/ca/_common.yaml | 1 + sentences/ca/todo_HassListAddItem.yaml | 15 +++++++++++++++ tests/ca/_fixtures.yaml | 4 ++++ tests/ca/todo_HassListAddItem.yaml | 24 ++++++++++++++++++++++++ 5 files changed, 49 insertions(+) create mode 100644 responses/ca/HassListAddItem.yaml create mode 100644 sentences/ca/todo_HassListAddItem.yaml create mode 100644 tests/ca/todo_HassListAddItem.yaml diff --git a/responses/ca/HassListAddItem.yaml b/responses/ca/HassListAddItem.yaml new file mode 100644 index 0000000000..7842dc1406 --- /dev/null +++ b/responses/ca/HassListAddItem.yaml @@ -0,0 +1,5 @@ +language: ca +responses: + intents: + HassListAddItem: + item_added: "He afegit {{ slots.item }}" diff --git a/sentences/ca/_common.yaml b/sentences/ca/_common.yaml index c98b23836e..13ef7f64de 100644 --- a/sentences/ca/_common.yaml +++ b/sentences/ca/_common.yaml @@ -139,6 +139,7 @@ expansion_rules: percent: "[ ](%|per[ ]cent)" cancela: "cancel[·l]a[r]" seguent: "(següent|proper[a]|pròxim[a])" + anterior: "[l']anterior" element: "(element|ítem|pista|cançó|tema|tonada|mitjà|canal|recurs|vídeo|clip|film)" reproduir: "(reprodu(ir|eix)|posa[r]|fica[r]|salta[r]|passa[r]|canvia[r])" reactiva: "(reactiva[r]|continua[r]|segu(ir|eix))" diff --git a/sentences/ca/todo_HassListAddItem.yaml b/sentences/ca/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..3bce239eff --- /dev/null +++ b/sentences/ca/todo_HassListAddItem.yaml @@ -0,0 +1,15 @@ +language: ca +intents: + HassListAddItem: + data: + - sentences: + - (a|en) + - al cistell [de|del] {name} + - (a|en) + response: item_added + requires_context: + domain: todo + expansion_rules: + my_list: "[ la][ meva] llista [de|del] {name}" + item: "{shopping_list_item:item}" + add: "(afeg[e]ix|posa)" diff --git a/tests/ca/_fixtures.yaml b/tests/ca/_fixtures.yaml index fe79a0a201..21abc590b7 100644 --- a/tests/ca/_fixtures.yaml +++ b/tests/ca/_fixtures.yaml @@ -112,3 +112,7 @@ entities: attributes: unit_of_measurement: "°C" current_temperature: -5 + + - name: "Bonpreu" + id: "todo.bonpreu" + state: "" diff --git a/tests/ca/todo_HassListAddItem.yaml b/tests/ca/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..a3d410d238 --- /dev/null +++ b/tests/ca/todo_HassListAddItem.yaml @@ -0,0 +1,24 @@ +language: ca +tests: + - sentences: + - afegeix pomes a la llista del Bonpreu + - afegeix pomes al cistell del Bonpreu + - afegeix pomes a llista Bonpreu + - afegeix pomes a llista del Bonpreu + - posa pomes a la llista del Bonpreu + intent: + name: HassListAddItem + slots: + item: "pomes " + name: "Bonpreu" + response: He afegit pomes + + - sentences: + - posa a la llista del Bonpreu pomes + - afegeix a la llista del Bonpreu pomes + intent: + name: HassListAddItem + slots: + item: "pomes" + name: "Bonpreu" + response: He afegit pomes From 9a2a730db1338e8ccedd507f9b385b884ebcb5ba Mon Sep 17 00:00:00 2001 From: Helmut <99959910+ascha191@users.noreply.github.com> Date: Wed, 6 Nov 2024 15:19:22 +0100 Subject: [PATCH 30/92] =?UTF-8?q?[DE]=20Add=20"Beschattung[en]"=20to=20cov?= =?UTF-8?q?er=5Fclasses=20and=20"ge=C3=B6ffnet"=20to=20cover=5Fstates=20(#?= =?UTF-8?q?2463)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [DE] Add "Beschattung[en]" to cover_classes and "geöffnet" to cover_states * removed singular for Beschattungen Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com> * [DE] Test sentences for "Beschattung" in cover_HassTurnOn.yaml * [DE] test sentences for "Beschattung" in cover_HassTurnOff.yaml * [DE] test sentences for "geöffnet" in cover_HassGetState.yaml * Unnecessary blanks removed --------- Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com> --- sentences/de/_common.yaml | 10 ++--- tests/de/cover_HassGetState.yaml | 4 ++ tests/de/cover_HassTurnOff.yaml | 51 +++++++++++++++++++++++ tests/de/cover_HassTurnOn.yaml | 70 ++++++++++++++++++++++++++++++++ 4 files changed, 130 insertions(+), 5 deletions(-) diff --git a/sentences/de/_common.yaml b/sentences/de/_common.yaml index 004e82e23a..2090374988 100644 --- a/sentences/de/_common.yaml +++ b/sentences/de/_common.yaml @@ -74,7 +74,7 @@ lists: out: 1 cover_states: values: - - in: "(offen|auf|oben)" + - in: "(offen|auf|oben|geöffnet)" out: "open" - in: "(geschlossen|zu|unten)" out: "closed" @@ -86,7 +86,7 @@ lists: values: - in: Markise[n] out: awning - - in: "(Jalousie[n]|Rollo[s])" + - in: "(Jalousie[n]|Rollo[s]|Beschattung[en])" out: blind - in: "(Gardine[n]|Vorhang|Vorhänge)" out: curtain @@ -98,7 +98,7 @@ lists: out: gate - in: Schirm[e] out: shade - - in: "(Rollladen|Rollläden|Rollo[s])" + - in: "(Rollladen|Rollläden|Rollo[s]|Beschattung[en])" out: shutter - in: Fenster out: window @@ -280,8 +280,8 @@ expansion_rules: schalten: "(schalt[e|en|et])" machen: "(mach[e|en|t])" setzen: "(setz[e|en]|stell[e|en]|einstellen|änder[e|n]|veränder[e|n])" - abdeckung: " (Rollo[s]|Abdeckung[en]|Rolll(a|ä)den|Jalousie[n]|Raffstore[s]|Markise[n]|Vorh(a|ä)ng[e])" - alle_abdeckungen: " (Rollos|Abdeckungen|Rolll(a|ä)den|Jalousien|Raffstores|Markisen|Vorhänge)" + abdeckung: " (Rollo[s]|Abdeckung[en]|Rolll(a|ä)den|Jalousie[n]|Raffstore[s]|Markise[n]|Vorh(a|ä)ng[e]|Beschattung[en])" + alle_abdeckungen: " (Rollos|Abdeckungen|Rolll(a|ä)den|Jalousien|Raffstores|Markisen|Vorhänge|Beschattungen)" garage: " (Garage[n]|Garagentor[e])" alle_garagen: " (Garagen[tore])" tor: " Tor[e]" diff --git a/tests/de/cover_HassGetState.yaml b/tests/de/cover_HassGetState.yaml index 4cc5746378..d6a46380b5 100644 --- a/tests/de/cover_HassGetState.yaml +++ b/tests/de/cover_HassGetState.yaml @@ -4,6 +4,7 @@ tests: - sentences: - "ist das Rollo links im Wohnzimmer offen?" - "ist im Wohnzimmer das Rollo links offen?" + - "ist im Wohnzimmer das Rollo links geöffnet?" intent: name: HassGetState slots: @@ -28,6 +29,7 @@ tests: - sentences: - "sind irgendwelche Rollos offen im Wohnzimmer?" - "sind irgendwelche Rollos im Wohnzimmer offen?" + - "sind irgendwelche Rollos im Wohnzimmer geöffnet?" - "sind im Wohnzimmer irgendwelche Rollos offen?" intent: name: HassGetState @@ -54,6 +56,7 @@ tests: - sentences: - "sind alle Rollos im Wohnzimmer oben?" - "ist jedes Rollo im Wohnzimmer oben?" + - "ist jedes Rollo im Wohnzimmer geöffnet?" intent: name: HassGetState slots: @@ -66,6 +69,7 @@ tests: # response welches - sentences: - "welche Rollos im Wohnzimmer sind offen?" + - "welche Rollos im Wohnzimmer sind geöffnet?" intent: name: HassGetState slots: diff --git a/tests/de/cover_HassTurnOff.yaml b/tests/de/cover_HassTurnOff.yaml index b8d2b615be..9114c5c83d 100644 --- a/tests/de/cover_HassTurnOff.yaml +++ b/tests/de/cover_HassTurnOff.yaml @@ -271,6 +271,35 @@ tests: - Raffstore im Wohnzimmer runter - Raffstore im Wohnzimmer runter machen - Raffstore im Wohnzimmer zu machen + - schließe im Wohnzimmer die Beschattung + - schließe im Wohnzimmer die Beschattungen + - Beschattung im Wohnzimmer schließen + - schließe die Beschattung im Wohnzimmer + - schließe die Beschattungen im Wohnzimmer + - mach im Wohnzimmer die Beschattung zu + - mach im Wohnzimmer die Beschattungen zu + - mach die Beschattung im Wohnzimmer zu + - mach die Beschattungen im Wohnzimmer zu + - macht im Wohnzimmer die Beschattung zu + - macht im Wohnzimmer die Beschattungen zu + - macht die Beschattung im Wohnzimmer zu + - macht die Beschattungen im Wohnzimmer zu + - mache im Wohnzimmer die Beschattung zu + - mache im Wohnzimmer die Beschattungen zu + - mache die Beschattung im Wohnzimmer zu + - mache die Beschattungen im Wohnzimmer zu + - mach im Wohnzimmer die Beschattung runter + - mach im Wohnzimmer die Beschattungen runter + - mach die Beschattung im Wohnzimmer runter + - mach die Beschattungen im Wohnzimmer runter + - macht im Wohnzimmer die Beschattung runter + - macht im Wohnzimmer die Beschattungen runter + - macht die Beschattung im Wohnzimmer runter + - macht die Beschattungen im Wohnzimmer runter + - mache im Wohnzimmer die Beschattung runter + - mache im Wohnzimmer die Beschattungen runter + - mache die Beschattung im Wohnzimmer runter + - mache die Beschattungen im Wohnzimmer runter intent: name: HassTurnOff slots: @@ -345,6 +374,20 @@ tests: - mach alle Vorhänge im Wohnzimmer runter - mache im Wohnzimmer alle Vorhänge runter - mache alle Vorhänge im Wohnzimmer runter + - schließe im Wohnzimmer alle Beschattungen + - schließe alle Beschattungen im Wohnzimmer + - mach im Wohnzimmer alle Beschattungen zu + - mach alle Beschattungen im Wohnzimmer zu + - macht im Wohnzimmer alle Beschattungen zu + - macht alle Beschattungen im Wohnzimmer zu + - mache im Wohnzimmer alle Beschattungen zu + - mache alle Beschattungen im Wohnzimmer zu + - mach im Wohnzimmer alle Beschattungen runter + - mach alle Beschattungen im Wohnzimmer runter + - macht im Wohnzimmer alle Beschattungen runter + - macht alle Beschattungen im Wohnzimmer runter + - mache im Wohnzimmer alle Beschattungen runter + - mache alle Beschattungen im Wohnzimmer runter intent: name: HassTurnOff slots: @@ -408,6 +451,14 @@ tests: - mach alle Abdeckungen runter - macht alle Abdeckungen runter - mache alle Abdeckungen runter + - schließ alle Beschattungen + - schließe alle Beschattungen + - mach alle Beschattungen zu + - macht alle Beschattungen zu + - mache alle Beschattungen zu + - mach alle Beschattungen runter + - macht alle Beschattungen runter + - mache alle Beschattungen runter intent: name: HassTurnOff slots: diff --git a/tests/de/cover_HassTurnOn.yaml b/tests/de/cover_HassTurnOn.yaml index c6b65b875b..fc51034f10 100644 --- a/tests/de/cover_HassTurnOn.yaml +++ b/tests/de/cover_HassTurnOn.yaml @@ -349,6 +349,46 @@ tests: - Raffstore im Wohnzimmer nach oben - Raffstore im Wohnzimmer nach oben machen - Raffstore im Wohnzimmer auf machen + - öffne im Wohnzimmer die Beschattung + - öffne im Wohnzimmer die Beschattungen + - öffne die Beschattung im Wohnzimmer + - öffne die Beschattungen im Wohnzimmer + - mach im Wohnzimmer die Beschattung auf + - mach im Wohnzimmer die Beschattungen auf + - mach die Beschattung im Wohnzimmer auf + - mach die Beschattungen im Wohnzimmer auf + - macht im Wohnzimmer die Beschattung auf + - macht im Wohnzimmer die Beschattungen auf + - macht die Beschattung im Wohnzimmer auf + - macht die Beschattungen im Wohnzimmer auf + - mache im Wohnzimmer die Beschattung auf + - mache im Wohnzimmer die Beschattungen auf + - mache die Beschattung im Wohnzimmer auf + - mache die Beschattungen im Wohnzimmer auf + - mach im Wohnzimmer die Beschattung hoch + - mach im Wohnzimmer die Beschattungen hoch + - mach die Beschattung im Wohnzimmer hoch + - mach die Beschattungen im Wohnzimmer hoch + - macht im Wohnzimmer die Beschattung hoch + - macht im Wohnzimmer die Beschattungen hoch + - macht die Beschattung im Wohnzimmer hoch + - macht die Beschattungen im Wohnzimmer hoch + - mache im Wohnzimmer die Beschattung hoch + - mache im Wohnzimmer die Beschattungen hoch + - mache die Beschattung im Wohnzimmer hoch + - mache die Beschattungen im Wohnzimmer hoch + - mach im Wohnzimmer die Beschattung rauf + - mach im Wohnzimmer die Beschattungen rauf + - mach die Beschattung im Wohnzimmer rauf + - mach die Beschattungen im Wohnzimmer rauf + - macht im Wohnzimmer die Beschattung rauf + - macht im Wohnzimmer die Beschattungen rauf + - macht die Beschattung im Wohnzimmer rauf + - macht die Beschattungen im Wohnzimmer rauf + - mache im Wohnzimmer die Beschattung rauf + - mache im Wohnzimmer die Beschattungen rauf + - mache die Beschattung im Wohnzimmer rauf + - mache die Beschattungen im Wohnzimmer rauf intent: name: HassTurnOn slots: @@ -457,6 +497,26 @@ tests: - macht alle Jalousien im Wohnzimmer rauf - mache im Wohnzimmer alle Jalousien rauf - mache alle Jalousien im Wohnzimmer rauf + - öffne im Wohnzimmer alle Beschattungen + - öffne alle Beschattungen im Wohnzimmer + - mach im Wohnzimmer alle Beschattungen auf + - mach alle Beschattungen im Wohnzimmer auf + - macht im Wohnzimmer alle Beschattungen auf + - macht alle Beschattungen im Wohnzimmer auf + - mache im Wohnzimmer alle Beschattungen auf + - mache alle Beschattungen im Wohnzimmer auf + - mach im Wohnzimmer alle Beschattungen hoch + - mach alle Beschattungen im Wohnzimmer hoch + - macht im Wohnzimmer alle Beschattungen hoch + - macht alle Beschattungen im Wohnzimmer hoch + - mache im Wohnzimmer alle Beschattungen hoch + - mache alle Beschattungen im Wohnzimmer hoch + - mach im Wohnzimmer alle Beschattungen rauf + - mach alle Beschattungen im Wohnzimmer rauf + - macht im Wohnzimmer alle Beschattungen rauf + - macht alle Beschattungen im Wohnzimmer rauf + - mache im Wohnzimmer alle Beschattungen rauf + - mache alle Beschattungen im Wohnzimmer rauf intent: name: HassTurnOn slots: @@ -530,6 +590,16 @@ tests: - mach alle Abdeckungen hoch - macht alle Abdeckungen hoch - mache alle Abdeckungen hoch + - öffne alle Beschattungen + - mach alle Beschattungen auf + - macht alle Beschattungen auf + - mache alle Beschattungen auf + - mach alle Beschattungen rauf + - macht alle Beschattungen rauf + - mache alle Beschattungen rauf + - mach alle Beschattungen hoch + - macht alle Beschattungen hoch + - mache alle Beschattungen hoch intent: name: HassTurnOn slots: From 57d03b1978434c8dc031340e548cd78e4a76f5ca Mon Sep 17 00:00:00 2001 From: Fredrik <5780904+frli4797@users.noreply.github.com> Date: Wed, 6 Nov 2024 18:47:32 +0100 Subject: [PATCH 31/92] [SV] Locks sentences (#2395) * Sentences for locks * Tests and fixtures for locks --- responses/sv/HassTurnOff.yaml | 1 + responses/sv/HassTurnOn.yaml | 1 + sentences/sv/_common.yaml | 7 +++++++ sentences/sv/lock_HassTurnOff.yaml | 17 +++++++++++++++++ sentences/sv/lock_HassTurnOn.yaml | 18 ++++++++++++++++++ tests/sv/_fixtures.yaml | 9 +++++++++ tests/sv/lock_HassTurnOff.yaml | 21 +++++++++++++++++++++ tests/sv/lock_HassTurnOn.yaml | 23 +++++++++++++++++++++++ 8 files changed, 97 insertions(+) create mode 100644 sentences/sv/lock_HassTurnOff.yaml create mode 100644 sentences/sv/lock_HassTurnOn.yaml create mode 100644 tests/sv/lock_HassTurnOff.yaml create mode 100644 tests/sv/lock_HassTurnOn.yaml diff --git a/responses/sv/HassTurnOff.yaml b/responses/sv/HassTurnOff.yaml index f590416fd9..420a67ee3f 100644 --- a/responses/sv/HassTurnOff.yaml +++ b/responses/sv/HassTurnOff.yaml @@ -9,3 +9,4 @@ responses: cover: "Stängde {{ slots.name }}" cover_area: "Stängde i {{ slots.area }}" cover_device_class: "Stängde {{ slots.device_class }}" + lock: "Låste upp" diff --git a/responses/sv/HassTurnOn.yaml b/responses/sv/HassTurnOn.yaml index 08e7e84fa6..e75bfff871 100644 --- a/responses/sv/HassTurnOn.yaml +++ b/responses/sv/HassTurnOn.yaml @@ -9,3 +9,4 @@ responses: cover: "Öppnade {{ slots.name }}" cover_area: "Öppnade i {{ slots.area }}" cover_device_class: "Öppnade {{ slots.device_class }}" + lock: "Låste" diff --git a/sentences/sv/_common.yaml b/sentences/sv/_common.yaml index 0d81301387..a35787be6c 100644 --- a/sentences/sv/_common.yaml +++ b/sentences/sv/_common.yaml @@ -66,6 +66,12 @@ lists: out: 100 - in: out: 1 + lock_states: + values: + - in: "[säkert ]låst" + out: "locked" + - in: "upplåst" + out: "unlocked" on_off_states: values: - in: "på|igång|tända|tänd|påslagna" @@ -335,6 +341,7 @@ expansion_rules: alla: "(all | alla | allt)" ljusintensitet: "(ljusstyrka | intensitet | styrka | nivå | effekt)" ljuskällor: "(ljuskällor[na]|ljus[en|et]|[glöd|led|diod]lamp[a|an|or|orna]|lysrör[en|et]|belysning[en])" + låsbar: "(lås[en]|dörr[ar|en|arna]|fönster|grind[ar|en|arna]|garagedörr[ar|en|arna])" dimra: "(ändra | sätt | vrid | dra [på] | skruva [på] | dimra | dimma | ställ [in] | höj | sänk)" möjliga: "(möjlig[a] | tillgänglig[a])" maximal: "(maximal | max[imum] | högsta | starkaste | intensivaste | full[t])" diff --git a/sentences/sv/lock_HassTurnOff.yaml b/sentences/sv/lock_HassTurnOff.yaml new file mode 100644 index 0000000000..7d2ad74762 --- /dev/null +++ b/sentences/sv/lock_HassTurnOff.yaml @@ -0,0 +1,17 @@ +language: sv +intents: + HassTurnOff: + data: + - sentences: + - "lås upp [ i_på ]" + requires_context: + domain: lock + response: lock + + - sentences: + - "lås upp [] " + - "lås upp [] " + slots: + domain: "lock" + name: "all" + response: lock diff --git a/sentences/sv/lock_HassTurnOn.yaml b/sentences/sv/lock_HassTurnOn.yaml new file mode 100644 index 0000000000..d0688f706a --- /dev/null +++ b/sentences/sv/lock_HassTurnOn.yaml @@ -0,0 +1,18 @@ +language: "sv" + +intents: + HassTurnOn: + data: + - sentences: + - "lås [ i ]" + requires_context: + domain: lock + response: lock + + - sentences: + - "lås [] " + - "lås [] " + slots: + domain: "lock" + name: "all" + response: lock diff --git a/tests/sv/_fixtures.yaml b/tests/sv/_fixtures.yaml index ad00a71748..ce0286d87c 100644 --- a/tests/sv/_fixtures.yaml +++ b/tests/sv/_fixtures.yaml @@ -10,6 +10,9 @@ areas: id: garage - name: Bastu id: sauna + - name: Hallen + id: hallen + entities: - name: garagelampa id: light.garage_light @@ -92,6 +95,12 @@ entities: - name: Rover id: vacuum.rover area: livingroom + - name: Ytterdörren + id: lock.ytterdorren + area: hallen + - name: Bakdörren + id: lock.backdorren + area: hallen - name: "Stockholm" id: "weather.stockholm" diff --git a/tests/sv/lock_HassTurnOff.yaml b/tests/sv/lock_HassTurnOff.yaml new file mode 100644 index 0000000000..56a19036f1 --- /dev/null +++ b/tests/sv/lock_HassTurnOff.yaml @@ -0,0 +1,21 @@ +language: sv +tests: + - sentences: + - "Lås upp Ytterdörren" + intent: + name: HassTurnOff + context: + domain: lock + slots: + name: Ytterdörren + response: "Låste upp" + - sentences: + - "lås upp alla lås i hallen" + - "Lås upp alla dörrar i hallen" + intent: + name: HassTurnOff + slots: + area: Hallen + domain: lock + name: all + response: "Låste upp" diff --git a/tests/sv/lock_HassTurnOn.yaml b/tests/sv/lock_HassTurnOn.yaml new file mode 100644 index 0000000000..e2089865be --- /dev/null +++ b/tests/sv/lock_HassTurnOn.yaml @@ -0,0 +1,23 @@ +language: sv +tests: + - sentences: + - lås Ytterdörren + intent: + name: HassTurnOn + context: + domain: lock + slots: + name: Ytterdörren + response: Låste + + - sentences: + - "Lås alla låsen i hallen" + - "Lås alla dörrarna i hallen" + - "Lås alla hallens dörrar" + intent: + name: HassTurnOn + slots: + area: Hallen + domain: lock + name: all + response: Låste From 7df2e44efb6c2f1faf1e84897ad8313e4adb13a4 Mon Sep 17 00:00:00 2001 From: Luiz Oliveira <134880920+luyzfernando08@users.noreply.github.com> Date: Wed, 6 Nov 2024 15:13:43 -0300 Subject: [PATCH 32/92] [PT-BR] New sentences and responses (#2470) * [PT-BR] New sentences and responses --- responses/pt-br/HassUnpauseTimer.yaml | 6 + sentences/pt-br/_common.yaml | 151 ++++++++++++++++-- sentences/pt-br/cover_HassGetState.yaml | 34 +++- .../pt-br/homeassistant_HassGetState.yaml | 32 +++- .../pt-br/homeassistant_HassTurnOff.yaml | 2 + sentences/pt-br/homeassistant_HassTurnOn.yaml | 1 + .../pt-br/homeassistant_HassUnpauseTimer.yaml | 12 ++ sentences/pt-br/light_HassTurnOff.yaml | 8 + sentences/pt-br/light_HassTurnOn.yaml | 8 + tests/pt-br/cover_HassGetState.yaml | 73 ++++++++- tests/pt-br/homeassistant_HassGetState.yaml | 77 ++++++++- .../pt-br/homeassistant_HassUnpauseTimer.yaml | 40 +++++ 12 files changed, 431 insertions(+), 13 deletions(-) create mode 100644 responses/pt-br/HassUnpauseTimer.yaml create mode 100644 sentences/pt-br/homeassistant_HassUnpauseTimer.yaml create mode 100644 tests/pt-br/homeassistant_HassUnpauseTimer.yaml diff --git a/responses/pt-br/HassUnpauseTimer.yaml b/responses/pt-br/HassUnpauseTimer.yaml new file mode 100644 index 0000000000..a1dcaf6674 --- /dev/null +++ b/responses/pt-br/HassUnpauseTimer.yaml @@ -0,0 +1,6 @@ +--- +language: pt-br +responses: + intents: + HassUnpauseTimer: + default: "Temporizador retomado" diff --git a/sentences/pt-br/_common.yaml b/sentences/pt-br/_common.yaml index c7a4087a2a..1175884383 100644 --- a/sentences/pt-br/_common.yaml +++ b/sentences/pt-br/_common.yaml @@ -8,12 +8,145 @@ responses: # Errors for when user is not logged in no_area: "Não existe nenhuma área chamada {{ area }}" no_floor: "Desculpe, não existe nenhum piso chamado {{ floor }}" - no_domain: "Desculpe, eu não conheço nenhum {{ domain }}" - no_domain_in_area: "{{ area }} não contem {{ domain }}" - no_domain_in_floor: "Desculpe, não existe nenhum(a) {{ domain }} no piso {{ floor }}." - no_device_class: "Desculpe, eu não conheço nenhuma {{ device_class }}" - no_device_class_in_area: "{{ area }} não contém {{ device_class }}" - no_device_class_in_floor: "Desculpe, não existe nenhum(a) {{ device_class }} no piso {{ floor }}." + no_domain: | + {% set translations = { + "button": "nenhum botão", + "camera": "nenhuma câmera", + "input_button": "nenhum botão de entrada", + "alarm_control_panel": "nenhum alarme", + "automation": "nenhuma automação", + "fan": "nenhum ventilador", + "climate": "nenhum termostato", + "humidifier": "nenhum umidificador", + "input_boolean": "nenhum interruptor", + "siren": "nenhuma sirene", + "water_heater": "nenhum aquecedor de água", + "light": "nenhuma luz", + "switch": "nenhum interruptor", + "script": "nenhum script", + "remote": "nenhum controle remoto", + "lock": "nenhuma fechadura", + "vacuum": "nenhum aspirador", + "scene": "nenhuma cena", + "media_player": "nenhum reprodutor de mídia", + "lawn_mower": "nenhum cortador de grama", + "valve": "nenhuma válvula" + } %} + {% if domain in translations -%} + Desculpe, eu não conheço {{ translations[domain] }} + {%- else -%} + Desculpe, eu não conheço nenhum domínio com este nome + {%- endif %} + no_domain_in_area: | + {% set translations = { + "button": "nenhum botão", + "camera": "nenhuma câmera", + "input_button": "nenhum botão de entrada", + "alarm_control_panel": "nenhum alarme", + "automation": "nenhuma automação", + "fan": "nenhum ventilador", + "climate": "nenhum termostato", + "humidifier": "nenhum umidificador", + "input_boolean": "nenhum interruptor", + "siren": "nenhuma sirene", + "water_heater": "nenhum aquecedor de água", + "light": "nenhuma luz", + "switch": "nenhum interruptor", + "script": "nenhum script", + "remote": "nenhum controle remoto", + "lock": "nenhuma fechadura", + "vacuum": "nenhum aspirador", + "scene": "nenhuma cena", + "media_player": "nenhum reprodutor de mídia", + "lawn_mower": "nenhum cortador de grama", + "valve": "nenhuma válvula" + } %} + {% if domain in translations -%} + Desculpe, não conheço {{ translations[domain] }} na área {{ area }} + {%- else -%} + Desculpe, não conheço nenhum elemento do tipo {{ domain }} na área {{ area }} + {%- endif %} + no_domain_in_floor: | + {% set translations = { + "button": "nenhum botão", + "camera": "nenhuma câmera", + "input_button": "nenhum botão de entrada", + "alarm_control_panel": "nenhum alarme", + "automation": "nenhuma automação", + "fan": "nenhum ventilador", + "climate": "nenhum termostato", + "humidifier": "nenhum umidificador", + "input_boolean": "nenhum interruptor", + "siren": "nenhuma sirene", + "water_heater": "nenhum aquecedor de água", + "light": "nenhuma luz", + "switch": "nenhum interruptor", + "script": "nenhum script", + "remote": "nenhum controle remoto", + "lock": "nenhuma fechadura", + "vacuum": "nenhum aspirador", + "scene": "nenhuma cena", + "media_player": "nenhum reprodutor de mídia", + "lawn_mower": "nenhum cortador de grama", + "valve": "nenhuma válvula" + } %} + {% if domain in translations -%} + Desculpe, não conheço {{ translations[domain] }} no andar {{ floor }} + {%- else -%} + Desculpe, não conheço nenhum elemento do tipo {{ domain }} no andar {{ floor }} + {%- endif %} + no_device_class: | + {% set translations = { + "awning": "nenhum toldo", + "blind": "nenhuma persiana", + "curtain": "nenhuma cortina", + "door": "nenhuma porta", + "garage": "nenhuma porta de garagem", + "gate": "nenhuma porta", + "shade": "nenhum estore", + "shutter": "nenhuma veneziana", + "window": "nenhuma janela" + } %} + {% if device_class in translations -%} + Desculpe, não conheço {{ translations[device_class] }} + {%- else -%} + Desculpe, não conheço nenhum elemento da classe {{ device_class }} + {%- endif %} + no_device_class_in_area: | + {% set translations = { + "awning": "nenhum toldo", + "blind": "nenhuma persiana", + "curtain": "nenhuma cortina", + "door": "nenhuma porta", + "garage": "nenhuma porta de garagem", + "gate": "nenhuma porta", + "shade": "nenhum estore", + "shutter": "nenhuma veneziana", + "window": "nenhuma janela" + } %} + {% if device_class in translations -%} + Desculpe, não conheço {{ translations[device_class] }} na área {{ area }} + {%- else -%} + Desculpe, não conheço nenhum elemento da classe {{ device_class }} na área {{ area }} + {%- endif %} + no_device_class_in_floor: | + {% set translations = { + "awning": "nenhum toldo", + "blind": "nenhuma persiana", + "curtain": "nenhuma cortina", + "door": "nenhuma porta", + "garage": "nenhuma porta de garagem", + "gate": "nenhuma porta", + "shade": "nenhum estore", + "shutter": "nenhuma veneziana", + "window": "nenhuma janela" + } %} + {% if device_class in translations -%} + Desculpe, não conheço {{ translations[device_class] }} no andar {{ floor }} + {%- else -%} + Desculpe, não conheço nenhum elemento da classe {{ device_class }} no andar {{ floor }} + {%- endif %} + no_entity: "Não existe nenhum dispositivo ou entidade com o nome {{ entity }}" no_entity_in_area: "Desculpe, eu não conheço nenhum dispositivo chamado {{ entity }} na área {{ area }}" no_entity_in_floor: "Desculpe, não existe nenhum dispositivo chamado {{ entity }} no piso {{ floor }}." @@ -106,7 +239,7 @@ lists: out: "off" on_off_domains: values: - - in: luz[es] + - in: (luz[es]|lâmpada[s]) out: light - in: ventilador[es] out: fan @@ -144,9 +277,9 @@ lists: out: window lock_states: values: - - in: "trancada" + - in: "trancad(a|o)" out: "locked" - - in: "destrancada" + - in: "destrancad(a|o)" out: "unlocked" shopping_list_item: wildcard: true diff --git a/sentences/pt-br/cover_HassGetState.yaml b/sentences/pt-br/cover_HassGetState.yaml index a88d1eb768..1908c2e54f 100644 --- a/sentences/pt-br/cover_HassGetState.yaml +++ b/sentences/pt-br/cover_HassGetState.yaml @@ -1,4 +1,36 @@ language: pt-br intents: HassGetState: - data: [] + data: + - sentences: + - " está {cover_states:state} []" + response: one_yesno + requires_context: + domain: cover + slots: + domain: cover + + - sentences: + - " {cover_classes:device_class} {cover_states:state} []" + - "(tem|há) {cover_classes:device_class} {cover_states:state} [na] []" + response: any + slots: + domain: cover + + - sentences: + - "todas [as] {cover_classes:device_class} {cover_states:state} []" + response: all + slots: + domain: cover + + - sentences: + - " {cover_classes:device_class} {cover_states:state} []" + response: which + slots: + domain: cover + + - sentences: + - "(quantas|quantos) {cover_classes:device_class} estão {cover_states:state} []" + response: how_many + slots: + domain: cover diff --git a/sentences/pt-br/homeassistant_HassGetState.yaml b/sentences/pt-br/homeassistant_HassGetState.yaml index a88d1eb768..0d4aa1baa3 100644 --- a/sentences/pt-br/homeassistant_HassGetState.yaml +++ b/sentences/pt-br/homeassistant_HassGetState.yaml @@ -1,4 +1,34 @@ language: pt-br intents: HassGetState: - data: [] + data: + - sentences: + - [o estado] [do|da] [] + response: one + excludes_context: + domain: + - scene + - script + + - sentences: + - está {on_off_states:state} [] + response: one_yesno + excludes_context: + domain: + - cover + + - sentences: + - (tem|) {on_off_domains:domain} {on_off_states:state} [] + response: any + + - sentences: + - (todos|todas) [os|as] {on_off_domains:domain} estão {on_off_states:state} [] + response: all + + - sentences: + - {on_off_domains:domain} (está|estão) {on_off_states:state} [] + response: which + + - sentences: + - (quantos|quantas) {on_off_domains:domain} (está|estão) {on_off_states:state} [] + response: how_many diff --git a/sentences/pt-br/homeassistant_HassTurnOff.yaml b/sentences/pt-br/homeassistant_HassTurnOff.yaml index a94e0fa997..a44d1f6553 100644 --- a/sentences/pt-br/homeassistant_HassTurnOff.yaml +++ b/sentences/pt-br/homeassistant_HassTurnOff.yaml @@ -12,3 +12,5 @@ intents: - scene - script - sensor + - valve + - vacuum diff --git a/sentences/pt-br/homeassistant_HassTurnOn.yaml b/sentences/pt-br/homeassistant_HassTurnOn.yaml index 2a58e1bab1..4f0331a0d0 100644 --- a/sentences/pt-br/homeassistant_HassTurnOn.yaml +++ b/sentences/pt-br/homeassistant_HassTurnOn.yaml @@ -13,3 +13,4 @@ intents: - script - sensor - valve + - vacuum diff --git a/sentences/pt-br/homeassistant_HassUnpauseTimer.yaml b/sentences/pt-br/homeassistant_HassUnpauseTimer.yaml new file mode 100644 index 0000000000..4da415b16d --- /dev/null +++ b/sentences/pt-br/homeassistant_HassUnpauseTimer.yaml @@ -0,0 +1,12 @@ +--- +language: "pt-br" +intents: + HassUnpauseTimer: + data: + - sentences: + - " " + - " [de ]" + - " " + - " [ chamado] {timer_name:name}" + expansion_rules: + continuar: "(continua[r]|retoma[r])" diff --git a/sentences/pt-br/light_HassTurnOff.yaml b/sentences/pt-br/light_HassTurnOff.yaml index 11841c55b8..50d6929f25 100644 --- a/sentences/pt-br/light_HassTurnOff.yaml +++ b/sentences/pt-br/light_HassTurnOff.yaml @@ -19,3 +19,11 @@ intents: response: "lights_floor" slots: domain: "light" + - sentences: + - " [(o | os | a | as)] (luz[es]| lâmpada[s])" + - " [(todas | todos)] [(o | os | a | as)] (luz[es]| lâmpada[s]) aqui" + slots: + domain: "light" + requires_context: + area: + slot: true diff --git a/sentences/pt-br/light_HassTurnOn.yaml b/sentences/pt-br/light_HassTurnOn.yaml index 5ba57fa67b..aa28355ae6 100644 --- a/sentences/pt-br/light_HassTurnOn.yaml +++ b/sentences/pt-br/light_HassTurnOn.yaml @@ -19,3 +19,11 @@ intents: slots: domain: "light" response: "lights_floor" + - sentences: + - " [(o | os | a | as)] (luz[es]| lâmpada[s])" + - " [(todas | todos)] [(o | os | a | as)] (luz[es]| lâmpada[s]) aqui" + slots: + domain: "light" + requires_context: + area: + slot: true diff --git a/tests/pt-br/cover_HassGetState.yaml b/tests/pt-br/cover_HassGetState.yaml index d863976d78..5d77ff494b 100644 --- a/tests/pt-br/cover_HassGetState.yaml +++ b/tests/pt-br/cover_HassGetState.yaml @@ -1,2 +1,73 @@ language: pt-br -tests: [] +tests: + - sentences: + - "a Cortina Quarto está fechada?" + intent: + name: HassGetState + slots: + domain: cover + name: "Cortina Quarto" + state: "closed" + response: "Sim" + + - sentences: + - "tem alguma cortina aberta na Sala de Estar?" + intent: + name: HassGetState + slots: + domain: cover + area: "Sala de Estar" + device_class: curtain + state: "open" + response: "Sim, Cortina Esquerda" + + - sentences: + - "Todas as cortinas estão abertas na Sala de Estar?" + intent: + name: HassGetState + slots: + domain: cover + area: "Sala de Estar" + device_class: curtain + state: "open" + response: "Não, Cortina Direita não" + + - sentences: + - "qual cortina está fechada?" + intent: + name: HassGetState + slots: + domain: cover + device_class: curtain + state: "closed" + response: "Cortina Direita e Cortina Quarto" + + - sentences: + - "Quantas cortinas estão fechadas?" + intent: + name: HassGetState + slots: + domain: cover + device_class: curtain + state: "closed" + response: "2" + + - sentences: + - "Quantas persianas estão abertas?" + intent: + name: HassGetState + slots: + domain: cover + device_class: blind + state: "open" + response: "0" + + - sentences: + - "Quantas persianas estão fechadas?" + intent: + name: HassGetState + slots: + domain: cover + device_class: blind + state: "closed" + response: "0" diff --git a/tests/pt-br/homeassistant_HassGetState.yaml b/tests/pt-br/homeassistant_HassGetState.yaml index d863976d78..4f603ce8cb 100644 --- a/tests/pt-br/homeassistant_HassGetState.yaml +++ b/tests/pt-br/homeassistant_HassGetState.yaml @@ -1,2 +1,77 @@ language: pt-br -tests: [] +tests: + - sentences: + - "Qual é a Temperatura exterior?" + intent: + name: HassGetState + slots: + name: "Temperatura exterior" + response: "25 °C" + + - sentences: + - "a Luz do Quarto está ligada?" + intent: + name: HassGetState + slots: + name: "Luz do Quarto" + state: "on" + response: "Não, off" + + - sentences: + - "tem algum interruptor ligado na Cozinha?" + intent: + name: HassGetState + slots: + area: "Cozinha" + domain: "switch" + state: "on" + response: "Sim, Interruptor da Cozinha" + + - sentences: + - "todos interruptores estão ligados?" + intent: + name: HassGetState + slots: + domain: "switch" + state: "on" + response: "Não, Aquecedor Quarto e Maquina de Cafe não" + + - sentences: + - "todas as luzes estão desligadas?" + intent: + name: HassGetState + slots: + domain: "light" + state: "off" + response: "Não, Luz Cozinha e Luz da Garagem não" + + - sentences: + - "Quais luzes estão ligadas?" + - "Que luzes estão ligadas?" + intent: + name: HassGetState + slots: + domain: "light" + state: "on" + response: "Luz Cozinha e Luz da Garagem" + + - sentences: + - "Quantas luzes estão ligadas?" + intent: + name: HassGetState + slots: + domain: "light" + state: "on" + response: "2" + + - sentences: + - "Tem alguma luz ligada?" + - "Tem alguma lâmpada ligada?" + - "Existe alguma luz ligada?" + - "Existe alguma lâmpada ligada?" + intent: + name: HassGetState + slots: + domain: "light" + state: "on" + response: "Sim, Luz Cozinha e Luz da Garagem" diff --git a/tests/pt-br/homeassistant_HassUnpauseTimer.yaml b/tests/pt-br/homeassistant_HassUnpauseTimer.yaml new file mode 100644 index 0000000000..9d172c5c46 --- /dev/null +++ b/tests/pt-br/homeassistant_HassUnpauseTimer.yaml @@ -0,0 +1,40 @@ +--- +language: pt-br +tests: + - sentences: + - "continua o meu temporizador" + - "continuar temporizador" + - "retoma o temporizador" + - "retomar cronômetro" + intent: + name: HassUnpauseTimer + response: Temporizador retomado + + - sentences: + - "continuar temporizador de 1 hora" + - "retomar cronômetro de 1 hora" + intent: + name: HassUnpauseTimer + slots: + start_hours: 1 + response: Temporizador retomado + + - sentences: + - "continuar temporizador chamado pizza" + - "retomar cronômetro chamado pizza" + intent: + name: HassUnpauseTimer + slots: + name: + - "pizza " + - "pizza" + response: Temporizador retomado + + - sentences: + - "continuar temporizador na cozinha" + - "retomar cronômetro na cozinha" + intent: + name: HassUnpauseTimer + slots: + area: Cozinha + response: Temporizador retomado From a713efcb2cbdc5f0c89c0fa4d0613c83c6ab1d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mar=C3=ADn?= <292309+davefx@users.noreply.github.com> Date: Wed, 6 Nov 2024 21:50:22 +0100 Subject: [PATCH 33/92] [ES] Updating translations (#2466) * [ES] Updating translations --- responses/es/HassRespond.yaml | 9 +++++ responses/es/HassTurnOff.yaml | 22 +++++++++++- responses/es/HassTurnOn.yaml | 22 +++++++++++- sentences/es/_common.yaml | 20 ++++++----- .../es/climate_HassClimateGetTemperature.yaml | 4 +++ sentences/es/cover_HassGetState.yaml | 8 +++++ sentences/es/cover_HassSetPosition.yaml | 2 +- sentences/es/cover_HassTurnOff.yaml | 2 +- sentences/es/fan_HassTurnOff.yaml | 4 +-- sentences/es/fan_HassTurnOn.yaml | 2 +- .../es/homeassistant_HassCancelTimer.yaml | 8 ++--- sentences/es/homeassistant_HassRespond.yaml | 23 +++++++++++++ sentences/es/light_HassLightSet.yaml | 22 +++++------- sentences/es/lock_HassGetState.yaml | 18 +++++----- sentences/es/lock_HassTurnOff.yaml | 4 +-- sentences/es/lock_HassTurnOn.yaml | 6 ++-- tests/es/_fixtures.yaml | 4 +-- tests/es/binary_sensor_HassGetState.yaml | 34 ++++++++++++++++--- tests/es/homeassistant_HassRespond.yaml | 31 +++++++++++++++++ tests/es/homeassistant_HassTurnOn.yaml | 2 +- tests/es/light_HassLightSet.yaml | 21 ++++++++++-- tests/es/lock_HassGetState.yaml | 2 ++ tests/es/lock_HassTurnOn.yaml | 1 - 23 files changed, 211 insertions(+), 60 deletions(-) create mode 100644 responses/es/HassRespond.yaml create mode 100644 sentences/es/homeassistant_HassRespond.yaml create mode 100644 tests/es/homeassistant_HassRespond.yaml diff --git a/responses/es/HassRespond.yaml b/responses/es/HassRespond.yaml new file mode 100644 index 0000000000..dd4e9a5ed9 --- /dev/null +++ b/responses/es/HassRespond.yaml @@ -0,0 +1,9 @@ +language: es +responses: + intents: + HassRespond: + hello: "Saludos desde Home Assistant." + listening: "No, sólo grabo cuando escucho la palabra de activación." + data: "Tus datos se envían al servidor de Home Assistant." + commands: "Para averiguar lo que puedes preguntar, visita H.A. punto I.O. barra voice." + creator: "Fui creado por la maravillosa comunidad de Home Assistant, conformada por multitud de entusiastas de todo el mundo." diff --git a/responses/es/HassTurnOff.yaml b/responses/es/HassTurnOff.yaml index 8d384c1de8..aa9dc6fdc1 100644 --- a/responses/es/HassTurnOff.yaml +++ b/responses/es/HassTurnOff.yaml @@ -2,7 +2,27 @@ language: es responses: intents: HassTurnOff: - default: "{{ slots.name }} se ha desconectado" + default: >- + {% set translations = { + "button": "el botón", + "camera": "la cámara", + "input_button": "el botón", + "alarm_control_panel": "la alarma", + "automation": "la automatización", + "fan": "el ventilador", + "climate": "el termostato", + "humidifier": "el humidificador", + "input_boolean": "el interruptor", + "siren": "la sirena", + "water_heater": "el calentador de agua", + "light": "la luz", + "switch": "el interruptor", + "remote": "el control remoto", + "vacuum": "la aspiradora", + "media_player": "el reproductor", + "lawn_mower": "el cortacésped" + } %} + Se ha apagado {{ translations.get(state.domain) }} light: "{{ slots.name }} se ha apagado" lights_area: "Luces apagadas" lights_floor: "Luces apagadas" diff --git a/responses/es/HassTurnOn.yaml b/responses/es/HassTurnOn.yaml index 07a9e18ff8..6d8b8a1ca3 100644 --- a/responses/es/HassTurnOn.yaml +++ b/responses/es/HassTurnOn.yaml @@ -2,7 +2,27 @@ language: es responses: intents: HassTurnOn: - default: "{{ slots.name }} se ha activado" + default: >- + {% set translations = { + "button": "el botón", + "camera": "la cámara", + "input_button": "el botón", + "alarm_control_panel": "la alarma", + "automation": "la automatización", + "fan": "el ventilador", + "climate": "el termostato", + "humidifier": "el humidificador", + "input_boolean": "el interruptor", + "siren": "la sirena", + "water_heater": "el calentador de agua", + "light": "la luz", + "switch": "el interruptor", + "remote": "el control remoto", + "vacuum": "la aspiradora", + "media_player": "el reproductor", + "lawn_mower": "el cortacésped" + } %} + Se ha activado {{ translations.get(state.domain) }} light: "{{ slots.name }} se ha encendido" lights_area: "Luces encendidas" lights_floor: "Luces encendidas" diff --git a/sentences/es/_common.yaml b/sentences/es/_common.yaml index eddebc14df..6a6e510cf7 100644 --- a/sentences/es/_common.yaml +++ b/sentences/es/_common.yaml @@ -531,16 +531,18 @@ expansion_rules: anterior: "(anterior|últim(o|a))" añadir: "(añad(a|e|ir|í)|apunt[a|e|ar|á]|pon[ga|er|é]|sum(e|a|ar|á))" apaga: "(apag(a|ue|ar|á)|desconect(a|e|ar|á)|desactiv(a|e|ar|á))" - area: "[en|del|de] [el|la] {area}" + area: "[en |del |de ][el |la ]{area}" + area_planta: "(|)" baja: "(baj(a|e|ar|á)|redu(ce|zca|cir|cí)|decrement(a|e|ar|á)|disminu(ye|ya|ir|í))" brightness: "{brightness} [%|porcien[to]|por cien[to]]" cancela: "cancel(a[r]|á|e|ación)" cambia: "(cambi(a[r]|á|e|o)|(muev[a|e]|mov[er|é]))" + cerrables: "[de ][(el|la|l(a|o)s|mi[s]) ](cancela[s]|cierre[s]|cerradura[s]|cerrojo[s]|llave[s]|pestillo[s]|puerta[s][ de garaje]|port(ón|ones)|ventana[s])" cierra: "(cierr(a|e)|cerr(ar|á)|)" continúa: "(contin(úa|úe|uar|uá)|(sig(ue|a)|segu(ir|í))|(reactiv(a|e|ar|á)))" crea: "(cre(a|e|ar|á))" - cual_es: "(cu(a|á)l es [el|la]|cu(a|á)les son [los|las]|c(o|ó)mo (va|está|marcha)[n] [el|la|los|las])" - de_aqui: "[ (de|en)] (aquí|acá|(el|la) )" + cual_es: "(cu(a|á)l es [el |la ]|cu(a|á)les son [los |las ]|c(o|ó)mo (va|está|marcha|se encuentra)[n] [el |la |los |las ])" + de_aqui: "[(de|en) ](aquí|acá|(el|la) )" dime: "(sab(es|é)|dime|dec(ir|í|id)[me]|ind(i|í)(ca|que|car|cá)[me])" dime_si: " si" donde_se_encuentra: "dónde " @@ -551,23 +553,23 @@ expansion_rules: establece_abre_cierra: "(||)" establece_sube_baja: "(|||)" inicia: "(inici(a|e|ar|á)|com[i]en(za|ce|zar|zá)|emp[i]e(za|ce|zar|zá))" - luces: "[el|la|l(a|o)s] (luz|luces|lámpara[s]|bombill(a|o)[s]|ampolleta[s]|luminaria[s]|lamparilla[s]|foco[s]|interruptor[es]|llave[s][ de la luz])" - mide: "[que] ([es|está] (mid(e|ie)|medi|indica|marca)[ndo|d(a|o)]|tiene|hay) [por|en]" - name: "[el|la|los|las] {name}" + luces: "[el |la |l(a|o)s ](luz|luces|lámpara[s]|bombill(a|o)[s]|ampolleta[s]|luminaria[s]|lamparilla[s]|foco[s]|interruptor[es]|llave[s][ de la luz])" + mide: "[que ]([es|está] (mid(e|ie)|medi|indica|marca)[ndo|d(a|o)]|tiene|hay) [por|en]" + name: "[el |la |los |las ]{name}" otra_vez: "(otra vez|de nuevo|una vez más)" pausa: "(paus(a|ar|e|á)|)" para: "(par(a|ar|e|á))|det(én|ener|enga|ené)" - planta: "[en|del|de] [el|la] ([planta|piso] {floor}|{floor} (planta|piso))" + planta: "[en |del |de ][el |la ][planta |piso ]{floor}[ planta| piso]" pista: "[el |la ](pista|canción|medio|vídeo|video|elemento|tema)" posición: "{position}[ ][%|por[ ]cien[to]]" - puerta: "[el|la] (puerta|portón|cancela|verja|reja|compuerta|portillo)" + puerta: "[el |la ](puerta|portón|cancela|verja|reja|compuerta|portillo)" quita: "quit(a|e|ar|á)" reproduce: "(reprodu(ce|cir|cí|zca)|escuchar|o(i|í)r|ver|visualizar)" resta: "(rest(a|e|ar|á))" salta: "(salt(a|e|ar|á))" se_encuentra: "(se (encuentra|localiza|ubica)|está|mora)" sube: "(sub(a|e|ir|í)|levant(a|e|ar|á)|aument(a|e|ar|á)|increment(a|e|ar|á))" - temp: "[el|la] (temperatura|calor|grados)" + temp: "[el |la ](temperatura|calor|grados)" temperature: "{temperature}[([ ]°[ ][{temperature_unit}])|( {temperature_unit})|( grados[ {temperature_unit}])]" temporizador: "[el |la ](temporizador|cuenta atrás)" temporizadores: "[el |la |l(o|a)s ](temporizador[es]|cuenta[s] atrás)" diff --git a/sentences/es/climate_HassClimateGetTemperature.yaml b/sentences/es/climate_HassClimateGetTemperature.yaml index c552524267..fac9cd60e4 100644 --- a/sentences/es/climate_HassClimateGetTemperature.yaml +++ b/sentences/es/climate_HassClimateGetTemperature.yaml @@ -9,3 +9,7 @@ intents: - "[a] (cuánta|cuánto|cuántos|qué) (hace|hacen|hay|está|están|estamos) ([] | )" - "cuál es ([] de[l] |de[l] )" - "[a] (cuánta|cuánto|cuántos|qué) está ([] | )" + - sentences: + - "hace (frío|calor) [[] | ]" + requires_context: + domain: "climate" diff --git a/sentences/es/cover_HassGetState.yaml b/sentences/es/cover_HassGetState.yaml index 54dda04911..5fe8e19889 100644 --- a/sentences/es/cover_HassGetState.yaml +++ b/sentences/es/cover_HassGetState.yaml @@ -11,6 +11,14 @@ intents: slots: domain: cover + - sentences: + - " [(estado|situación) de ] [|]" + response: one + requires_context: + domain: cover + slots: + domain: cover + - sentences: - "(hay|está[n]) [(algún|alguna|algunos|algunas)] {cover_classes:device_class} {cover_states:state}[ | ]" - "(hay|está[n]) [(algún|alguna|algunos|algunas)] {cover_classes:device_class}[ | ] {cover_states:state}" diff --git a/sentences/es/cover_HassSetPosition.yaml b/sentences/es/cover_HassSetPosition.yaml index e17f85cfd4..6fa414ca38 100644 --- a/sentences/es/cover_HassSetPosition.yaml +++ b/sentences/es/cover_HassSetPosition.yaml @@ -3,7 +3,7 @@ intents: HassSetPosition: data: - sentences: - - " [[la ]posición [de[l]]] a[l] " + - " [[la ]posición [de[l]] ] a[l] " requires_context: domain: cover slots: diff --git a/sentences/es/cover_HassTurnOff.yaml b/sentences/es/cover_HassTurnOff.yaml index f6fb6d6815..f445c1dd44 100644 --- a/sentences/es/cover_HassTurnOff.yaml +++ b/sentences/es/cover_HassTurnOff.yaml @@ -22,7 +22,7 @@ intents: response: cover_device_class - sentences: - - [ el | la | los | las ] {cover_classes:device_class}[] + - [ el | la | los | las ] {cover_classes:device_class} [] slots: domain: cover response: cover_device_class diff --git a/sentences/es/fan_HassTurnOff.yaml b/sentences/es/fan_HassTurnOff.yaml index cb3256bb63..50f9bf4e0a 100644 --- a/sentences/es/fan_HassTurnOff.yaml +++ b/sentences/es/fan_HassTurnOff.yaml @@ -17,8 +17,8 @@ intents: name: "all" - sentences: - - " [todos] [el|los] (ventilador[es]|abanico[s])" - - " [el|los] (ventilador[es]|abanico[s])[]" + - " [todos] [el|los] (ventilador[es]|abanico[s]) " + - " [el|los] (ventilador[es]|abanico[s]) []" response: "fans_area" slots: domain: "fan" diff --git a/sentences/es/fan_HassTurnOn.yaml b/sentences/es/fan_HassTurnOn.yaml index 38fe306e2b..039db1607e 100644 --- a/sentences/es/fan_HassTurnOn.yaml +++ b/sentences/es/fan_HassTurnOn.yaml @@ -10,7 +10,7 @@ intents: response: fans_area - sentences: - - " [todos] [los|el] (ventilador[es]|abanico[s])[]" + - " [todos] [los|el] (ventilador[es]|abanico[s]) []" response: fans_area slots: domain: "fan" diff --git a/sentences/es/homeassistant_HassCancelTimer.yaml b/sentences/es/homeassistant_HassCancelTimer.yaml index 8bf24eefae..f10443b126 100644 --- a/sentences/es/homeassistant_HassCancelTimer.yaml +++ b/sentences/es/homeassistant_HassCancelTimer.yaml @@ -4,7 +4,7 @@ intents: HassCancelTimer: data: - sentences: - - "[ mi] " - - "[ mi] [de |para ]" - - "[ mi] " - - "[ mi] [ de| con nombre| llamad(o|a)| denominad(o|a)] {timer_name:name}" + - " [mi] " + - " [mi] [de |para ]" + - " [mi] " + - " [mi] [ de| con nombre| llamad(o|a)| denominad(o|a)] {timer_name:name}" diff --git a/sentences/es/homeassistant_HassRespond.yaml b/sentences/es/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..33bb348eca --- /dev/null +++ b/sentences/es/homeassistant_HassRespond.yaml @@ -0,0 +1,23 @@ +language: "es" +intents: + HassRespond: + data: + - sentences: + - "(hola) [home assistant]" + response: hello + + - sentences: + - "(escuch(a|as|á)|(grab(a|as|á))|estás (escuchando|grabando) siempre)" + response: listening + + - sentences: + - "dónde (van|se envían) (mis|los) datos" + response: data + + - sentences: + - "qué (puedo|se puede) (decir|preguntar)" + response: commands + + - sentences: + - "quién te (hizo|creó|ha hecho|ha creado)" + response: creator diff --git a/sentences/es/light_HassLightSet.yaml b/sentences/es/light_HassLightSet.yaml index aa4458a82c..bb1bf9e679 100644 --- a/sentences/es/light_HassLightSet.yaml +++ b/sentences/es/light_HassLightSet.yaml @@ -12,11 +12,9 @@ intents: domain: light - sentences: - - [el] brillo [a|al] - - [a|al] brillo - - [a|al] - slots: - name: "all" + - [el] brillo [a|al] + - [a|al] brillo + - [a|al] response: "brightness" - sentences: @@ -37,11 +35,9 @@ intents: response: "brightness" - sentences: - - "[] [el] brillo [a[l]] {brightness_level:brightness}" - - "[] [a[l]|el] brillo [a[l]] {brightness_level:brightness}" - - "[] [a[l]|el] {brightness_level:brightness} [de] brillo" - slots: - name: "all" + - "[] [el] brillo [a[l]] {brightness_level:brightness}" + - "[] [a[l]|el] brillo [a[l]] {brightness_level:brightness}" + - "[] [a[l]|el] {brightness_level:brightness} [de] brillo" response: "brightness" - sentences: @@ -61,10 +57,8 @@ intents: response: "color" - sentences: - - [[el] color de] ( | [todas] las luces ) [a | al | en] {color} - - ( | [todas] las luces ) [a | al | en] [color] {color} - slots: - name: "all" + - [[el] color de] ( | [todas] las luces ) [a | al | en] {color} + - ( | [todas] las luces ) [a | al | en] [color] {color} response: "color" - sentences: diff --git a/sentences/es/lock_HassGetState.yaml b/sentences/es/lock_HassGetState.yaml index 6b9f3493c5..d0cc2958b3 100644 --- a/sentences/es/lock_HassGetState.yaml +++ b/sentences/es/lock_HassGetState.yaml @@ -12,29 +12,31 @@ intents: domain: lock - sentences: - - "(está[n]|hay) alg(ún|una)[s] (cierre|cerradura|pestillo|cerrojo|llave)[s] {lock_states:state}[ ]" - - "(está[n]|hay) {lock_states:state} alg(ún|una)[s] (cierre|cerradura|pestillo|cerrojo|llave)[s][ ]" + - "(está[n]|hay) alg(ún|uno|una)[s] {lock_states:state}[ ]" + - "(está[n]|hay) {lock_states:state} alg(ún|uno|una)[s] [ ]" response: any slots: domain: lock - sentences: - - "están tod(o|a)s l(o|a)s (cierres|cerraduras|pestillos|cerrojos|llaves) {lock_states:state}[ ]" - - "están todas l(o|a)s (puertas|ventanas) {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ ]" + - "están tod(o|a)s {lock_states:state}[ ]" + - "están {lock_states:state} tod(o|a)s [ ]" + - "están todas l(o|a)s {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ ]" + - "están {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave) tod(o|a)s [ ]" response: all slots: domain: lock - sentences: - - "(qué|cual[es]) (cierre|cerradura|pestillo|cerrojo|llave)[s] está[n] {lock_states:state}[ ]" - - "(qué|cual[es]) (puerta|ventana)[s] está[n] {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ ]" + - "(qué|cual[es]) (está[n]|hay) {lock_states:state}[ ]" + - "(qué|cual[es]) (está[n]|hay) {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ ]" response: which slots: domain: lock - sentences: - - "cuánt(o|a)s (cierres|cerraduras|pestillos|cerrojos|llaves) (están|hay) {lock_states:state}[ ]" - - "cuánt(o|a)s (puertas|ventanas) (están|hay) {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ ]" + - "cuánt(o|a)s (están|hay) {lock_states:state}[ ]" + - "cuánt(o|a)s (están|hay) {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ ]" response: how_many slots: domain: lock diff --git a/sentences/es/lock_HassTurnOff.yaml b/sentences/es/lock_HassTurnOff.yaml index f67fc1fb2c..7cf4304b4e 100644 --- a/sentences/es/lock_HassTurnOff.yaml +++ b/sentences/es/lock_HassTurnOff.yaml @@ -10,8 +10,8 @@ intents: response: lock - sentences: - - "abrir [todas|todos] [los|las] (cierres|cerraduras|cerrojos|candados|llaves) [de [la[s]] (puerta|ventana)[s]] " - - "quitar [todas|todos] [los|las] (cierres|cerraduras|cerrojos|candados|llaves) [de [la[s]] (puerta|venana)[s]] " + - "abrir [todas|todos] [los|las] (cierres|cerraduras|cerrojos|candados|llaves) [[de ] ]" + - "quitar [tod(a|o)s] [los|las] (cierres|cerraduras|cerrojos|candados|llaves) [[de ] ]" slots: domain: "lock" name: "all" diff --git a/sentences/es/lock_HassTurnOn.yaml b/sentences/es/lock_HassTurnOn.yaml index db6bc398d7..bd0a0aeee3 100644 --- a/sentences/es/lock_HassTurnOn.yaml +++ b/sentences/es/lock_HassTurnOn.yaml @@ -10,11 +10,9 @@ intents: response: lock - sentences: - - "cerrar [con (llave|cerrojo|pestillo|cerradura|candado|cierre)] [tod(o|a)s] [los|las] [cerraduras|cerrojos|pestillos|cierres] " - - "cerrar con (llave|cerrojo|pestillo|cerradura|candado|cierre) [tod(o|a)s] [los|las] [puertas|ventanas] " - - "echar [el|la[s]|los] (llave|cerrojo|pestillo|cerradura|candado|cierre)[s] en [tod(o|a)s] [los|las] [cerraduras|cerrojos|pestillos|cierres|puertas|ventanas] " + - "cerrar [con (llave|cerrojo|pestillo|cerradura|candado|cierre)] [tod(o|a)s ][los |las ] " + - "echar [el|la[s]|los] (llave|cerrojo|pestillo|cerradura|candado|cierre)[s] (en|de) [tod(o|a)s] " - "echar [tod(o|a)s] [los|las] (llaves|cerrojos|pestillos|cerraduras|candados|cierres) " slots: domain: "lock" - name: "all" response: lock_area diff --git a/tests/es/_fixtures.yaml b/tests/es/_fixtures.yaml index 86ae1eb9cf..b8bd6d027e 100644 --- a/tests/es/_fixtures.yaml +++ b/tests/es/_fixtures.yaml @@ -204,8 +204,8 @@ entities: attributes: device_class: battery_charging - - name: "Sensor CO2" - id: "binary_sensor.co2" + - name: "Sensor CO" + id: "binary_sensor.co" area: "id_cocina" state: in: "despejado" diff --git a/tests/es/binary_sensor_HassGetState.yaml b/tests/es/binary_sensor_HassGetState.yaml index b0544de249..c2d933646f 100644 --- a/tests/es/binary_sensor_HassGetState.yaml +++ b/tests/es/binary_sensor_HassGetState.yaml @@ -13,6 +13,18 @@ tests: state: "on" response: "No, su estado es normal" + - sentences: + - "¿está normal la batería del teléfono?" + - "¿está la batería del teléfono cargada?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "battery" + name: "Teléfono" + state: "off" + response: "Sí" + - sentences: - "¿hay alguna batería baja?" - "¿está baja alguna batería?" @@ -114,14 +126,14 @@ tests: # Carbon monoxide - sentences: - - "¿está el sensor CO2 activo?" - - "¿está activo el sensor CO2?" + - "¿está el sensor CO activo?" + - "¿está activo el sensor CO?" intent: name: HassGetState slots: domain: "binary_sensor" device_class: "carbon_monoxide" - name: "Sensor CO2" + name: "Sensor CO" state: "on" response: "No, su estado es despejado" @@ -157,7 +169,7 @@ tests: domain: binary_sensor device_class: carbon_monoxide state: "on" - response: "No, el dispositivo Sensor CO2 no tiene ese estado" + response: "No, el dispositivo Sensor CO no tiene ese estado" - sentences: - "¿están todos los sensores de monóxido de carbono de la cocina activos?" @@ -168,7 +180,7 @@ tests: device_class: carbon_monoxide state: "on" area: "Cocina" - response: "No, el dispositivo Sensor CO2 no tiene ese estado" + response: "No, el dispositivo Sensor CO no tiene ese estado" - sentences: - "¿Qué sensores de monóxido de carbono están activos?" @@ -320,6 +332,18 @@ tests: state: "off" response: "Sí" + - sentences: + - "¿Está la puerta del cobertizo cerrada?" + - "¿Está cerrada la puerta del cobertizo?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "opening" + name: "Puerta del cobertizo" + state: "off" + response: "Sí" + # Gas - sentences: - "¿Está el sensor de gas activo?" diff --git a/tests/es/homeassistant_HassRespond.yaml b/tests/es/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..567661d825 --- /dev/null +++ b/tests/es/homeassistant_HassRespond.yaml @@ -0,0 +1,31 @@ +language: es +tests: + - sentences: + - "hola home assistant" + intent: + name: HassRespond + response: "Saludos desde Home Assistant." + + - sentences: + - "¿estás escuchando siempre?" + intent: + name: HassRespond + response: "No, sólo grabo cuando escucho la palabra de activación." + + - sentences: + - "¿dónde van mis datos?" + intent: + name: HassRespond + response: "Tus datos se envían al servidor de Home Assistant." + + - sentences: + - "¿qué puedo decir?" + intent: + name: HassRespond + response: "Para averiguar lo que puedes preguntar, visita H.A. punto I.O. barra voice." + + - sentences: + - "¿quién te ha creado?" + intent: + name: HassRespond + response: "Fui creado por la maravillosa comunidad de Home Assistant, conformada por multitud de entusiastas de todo el mundo." diff --git a/tests/es/homeassistant_HassTurnOn.yaml b/tests/es/homeassistant_HassTurnOn.yaml index 08e93a048e..f0dfdf52ac 100644 --- a/tests/es/homeassistant_HassTurnOn.yaml +++ b/tests/es/homeassistant_HassTurnOn.yaml @@ -19,7 +19,7 @@ tests: name: HassTurnOn slots: name: Ventilador de techo - response: "ventilador de techo se ha activado" + response: "Se ha activado el ventilador" - sentences: - enciende luces de la cocina diff --git a/tests/es/light_HassLightSet.yaml b/tests/es/light_HassLightSet.yaml index b157acee08..5babfca203 100644 --- a/tests/es/light_HassLightSet.yaml +++ b/tests/es/light_HassLightSet.yaml @@ -27,7 +27,6 @@ tests: slots: brightness: 50 area: Dormitorio - name: all response: Brillo establecido - sentences: @@ -68,7 +67,6 @@ tests: slots: brightness: 100 area: Dormitorio - name: all response: "Brillo establecido" - sentences: @@ -92,7 +90,6 @@ tests: slots: brightness: 1 area: Dormitorio - name: all response: "Brillo establecido" - sentences: @@ -108,6 +105,15 @@ tests: area: Dormitorio response: "Brillo establecido" + - sentences: + - "bajar brillo de la primera planta al 50%" + intent: + name: HassLightSet + slots: + brightness: 50 + floor: Primera planta + response: "Brillo establecido" + # color - sentences: - configura la lámpara de la mesilla en color rojo @@ -135,3 +141,12 @@ tests: color: red area: Dormitorio response: "Color establecido" + + - sentences: + - "pon las luces de la primera planta en azul" + intent: + name: HassLightSet + slots: + color: blue + floor: Primera planta + response: "Color establecido" diff --git a/tests/es/lock_HassGetState.yaml b/tests/es/lock_HassGetState.yaml index fd5f361030..0146c4885a 100644 --- a/tests/es/lock_HassGetState.yaml +++ b/tests/es/lock_HassGetState.yaml @@ -24,6 +24,8 @@ tests: - sentences: - "¿Están todas las puertas cerradas con pestillo?" - "¿Están todos los cerrojos cerrados?" + - "¿Están cerrados con llave todos los portones?" + - "¿Están todas las cerraduras cerradas?" intent: name: HassGetState slots: diff --git a/tests/es/lock_HassTurnOn.yaml b/tests/es/lock_HassTurnOn.yaml index 2f84284816..cb3cdf9a86 100644 --- a/tests/es/lock_HassTurnOn.yaml +++ b/tests/es/lock_HassTurnOn.yaml @@ -21,5 +21,4 @@ tests: slots: area: Cocina domain: lock - name: all response: Cierre efectuado From a37566da4fced0f6364a4e717a1bfce092f3e66b Mon Sep 17 00:00:00 2001 From: Luiz Oliveira <134880920+luyzfernando08@users.noreply.github.com> Date: Wed, 6 Nov 2024 18:10:25 -0300 Subject: [PATCH 34/92] [PT-BR] Update media previous (#2474) --- responses/pt-br/HassMediaPrevious.yaml | 5 ++++ .../pt-br/media_player_HassMediaPrevious.yaml | 15 ++++++++++ .../pt-br/media_player_HassMediaPrevious.yaml | 30 +++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 responses/pt-br/HassMediaPrevious.yaml create mode 100644 sentences/pt-br/media_player_HassMediaPrevious.yaml create mode 100644 tests/pt-br/media_player_HassMediaPrevious.yaml diff --git a/responses/pt-br/HassMediaPrevious.yaml b/responses/pt-br/HassMediaPrevious.yaml new file mode 100644 index 0000000000..3fabd354d5 --- /dev/null +++ b/responses/pt-br/HassMediaPrevious.yaml @@ -0,0 +1,5 @@ +language: pt-br +responses: + intents: + HassMediaPrevious: + default: "Voltando" diff --git a/sentences/pt-br/media_player_HassMediaPrevious.yaml b/sentences/pt-br/media_player_HassMediaPrevious.yaml new file mode 100644 index 0000000000..8ffd1f51c9 --- /dev/null +++ b/sentences/pt-br/media_player_HassMediaPrevious.yaml @@ -0,0 +1,15 @@ +language: pt-br +intents: + HassMediaPrevious: + data: + - sentences: + - "(volt(e|a[r])) [(faixa|música|video)] [(na|no)] {name}" + requires_context: + domain: media_player + - sentences: + - "(volt(e|a[r])) [(faixa|música|video)]" + requires_context: + area: + slot: true + - sentences: + - "(volt(e|a[r])) [a] [(faixa|música|video)] " diff --git a/tests/pt-br/media_player_HassMediaPrevious.yaml b/tests/pt-br/media_player_HassMediaPrevious.yaml new file mode 100644 index 0000000000..437c1a668a --- /dev/null +++ b/tests/pt-br/media_player_HassMediaPrevious.yaml @@ -0,0 +1,30 @@ +language: pt-br +tests: + - sentences: + - "volte video na TV do Quarto" + intent: + name: HassMediaPrevious + slots: + name: "TV do Quarto" + response: "Voltando" + - sentences: + - "volte video" + - "volte faixa" + intent: + name: HassMediaPrevious + slots: + area: "Sala" + context: + area: Sala + response: "Voltando" + - sentences: + - "volte faixa na sala" + - "volte video na sala" + - "volte a música na sala" + intent: + name: HassMediaPrevious + slots: + area: Sala + context: + area: Sala + response: "Voltando" From fb655bf43286ca5b8b08990e6080aa001b3dba77 Mon Sep 17 00:00:00 2001 From: Miguel Camba Date: Thu, 7 Nov 2024 06:24:56 +0100 Subject: [PATCH 35/92] [ES] Add more sentences to test getting the temperature (#2468) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add more sentences to test getting the temperature Particularly I added masculine examples and examples that used "de la / del" instead of "en la / en el", which is also a valid way command that wasn't tested. * Fix trailing whitespace * Reverting unneeded change --------- Co-authored-by: David Marín <292309+davefx@users.noreply.github.com> --- .../es/climate_HassClimateGetTemperature.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/es/climate_HassClimateGetTemperature.yaml b/tests/es/climate_HassClimateGetTemperature.yaml index e3cc647c47..8722104365 100644 --- a/tests/es/climate_HassClimateGetTemperature.yaml +++ b/tests/es/climate_HassClimateGetTemperature.yaml @@ -14,6 +14,7 @@ tests: - sentences: - ¿cuál es la temperatura actual en la cocina? + - ¿cuál es la temperatura actual de la cocina? - ¿qué temperatura hace en la cocina? - ¿qué temperatura hay en la cocina en este momento? - ¿cuánto calor hace en la cocina? @@ -27,6 +28,23 @@ tests: area: Cocina response: "24,3 grados" + - sentences: + - ¿cuál es la temperatura actual en el salón? + - ¿cuál es la temperatura actual del salón? + - ¿qué temperatura hace en el salón? + - ¿qué temperatura hay en el salón en este momento? + - ¿cuánto calor hace en el salón? + - ¿cuántos grados hace en el salón? + - ¿a qué temperatura está el salón? + - ¿a cuántos grados estamos en el salón? + - ¿a cuántos grados estamos en el salón ahora? + - ¿a qué temperatura están ahora en el salón? + intent: + name: HassClimateGetTemperature + slots: + area: Salón + response: "22 grados" + - sentences: - "¿cuál es la temperatura del termostato cocina?" - "¿a cuántos grados está el termostato cocina?" From 20b4138f2313088798b19d851a4f84bc566edcef Mon Sep 17 00:00:00 2001 From: Andrej <44124120+andrejs2@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:18:07 +0100 Subject: [PATCH 36/92] [sl] added respond (#2477) --- responses/sl/HassRespond.yaml | 9 ++++++ sentences/sl/_common.yaml | 8 ++++++ sentences/sl/homeassistant_HassRespond.yaml | 23 +++++++++++++++ tests/sl/homeassistant_HassRespond.yaml | 31 +++++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 responses/sl/HassRespond.yaml create mode 100644 sentences/sl/homeassistant_HassRespond.yaml create mode 100644 tests/sl/homeassistant_HassRespond.yaml diff --git a/responses/sl/HassRespond.yaml b/responses/sl/HassRespond.yaml new file mode 100644 index 0000000000..4322656b39 --- /dev/null +++ b/responses/sl/HassRespond.yaml @@ -0,0 +1,9 @@ +language: sl +responses: + intents: + HassRespond: + hello: "Pozdrav od domačega pomočnika." + listening: "Ne, brez skrbi, snemam samo, ko izgovorite besedo budilko." + data: "Podatki so poslani na strežnik domačega pomočnika." + commands: "Če želiš izvedeti kaj lahko vprašaš, obišči spletno stran home pomišljaj assistant pika I.O." + creator: "Ustvarila me je čudovita home assistant skupnost, sestavljena iz ustvarjalcev iz vsega sveta." diff --git a/sentences/sl/_common.yaml b/sentences/sl/_common.yaml index 8656b6478f..1b82a1d4cf 100644 --- a/sentences/sl/_common.yaml +++ b/sentences/sl/_common.yaml @@ -402,6 +402,14 @@ expansion_rules: position: "{position}[[ ]%| odstotkov|procentov]" volume: "{volume:volume_level}[[ ]%| (procent(a|ov)|odsotk(a|ov))]" pol: "30 (minut|sekund)" + + # Context awareness expansion rules + vsi: "(vs(i|e|a|ak|aki))" + so_vsi: "[ ]" + home: "(dom|hiš(a|i|e|o)|stanovanj(e|a|u|o)|apartma[ju|jem])" + povsod: "(povsod)[[ v] vsak(i)] (sob(a|i)|sobah|prostor(u|ih)|[v] )" + here: "(tukaj|tu|[v] [tem] (prostor(ih|u)|sob(ah|i)))" + # Questions kaksna_je_vrednost_senzorja: "((kakšna je) [vrednost [senzorja]] [za] [v|na|za] [senzor[ju|ja]] [[v|na] ] | (kakšna je) [vrednost [senzorja]] [za] [[v|na] ] | (kakšen je|kakšna je) [vrednost] [napolnjenost|koncentracija|stopnja] [] [v|na|za] [senzor[ju|ja]] [[v|na] ] | kateri [je|bo|bil] )" diff --git a/sentences/sl/homeassistant_HassRespond.yaml b/sentences/sl/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..a636497a02 --- /dev/null +++ b/sentences/sl/homeassistant_HassRespond.yaml @@ -0,0 +1,23 @@ +language: "sl" +intents: + HassRespond: + data: + - sentences: + - "(živjo|živijo|hej|zdravo|pozdravljen[i]|čao|čau) [home assistant]" + response: hello + + - sentences: + - "ali vedno (poslušaš|snemaš)" + response: listening + + - sentences: + - "(kam|kje) (gredo|[se|so] shran(jujejo|jeni|ijo)|sprav(ljajo|ijo)) [moj[i]|vsi|tile|tale] (podat(ki|ek)|posnet(ki|ek))" + response: data + + # - sentences: + # - "kaj [vse] (lahko|naj|je mogoče|je možno) (vpraš(am|ti)|pove(dati|m)|spraš(evati|ujem))" + # response: commands + + - sentences: + - "kdo te je (ustvaril|naredil|sprogramiral|)" + response: creator diff --git a/tests/sl/homeassistant_HassRespond.yaml b/tests/sl/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..8fab000a14 --- /dev/null +++ b/tests/sl/homeassistant_HassRespond.yaml @@ -0,0 +1,31 @@ +language: sl +tests: + - sentences: + - "zdravo home assistant" + intent: + name: HassRespond + response: "Pozdrav od domačega pomočnika." + + - sentences: + - "Ali vedno poslušaš?" + intent: + name: HassRespond + response: "Ne, brez skrbi, snemam samo, ko izgovorite besedo budilko." + + - sentences: + - "Kam se shranjujejo moji podatki?" + intent: + name: HassRespond + response: "Podatki so poslani na strežnik domačega pomočnika." + + # - sentences: + # - "kaj vse lahko vprašam" + # intent: + # name: HassRespond + # response: "Če želiš izvedeti kaj lahko vprašaš, obišči spletno stran home pomišljaj assistant pika I.O." + + - sentences: + - "Kdo te je ustvaril?" + intent: + name: HassRespond + response: "Ustvarila me je čudovita home assistant skupnost, sestavljena iz ustvarjalcev iz vsega sveta." From 2d7dca3446d0f3ea078ffe3961cc5154eb50e3c2 Mon Sep 17 00:00:00 2001 From: salleq Date: Thu, 7 Nov 2024 16:41:45 +0200 Subject: [PATCH 37/92] [FI] Timer (#2478) * [FI] timer * change wording * added quarter sayings for future development * cleanup --- responses/fi/HassCancelTimer.yaml | 6 + responses/fi/HassDecreaseTimer.yaml | 6 + responses/fi/HassIncreaseTimer.yaml | 6 + responses/fi/HassPauseTimer.yaml | 6 + responses/fi/HassStartTimer.yaml | 7 + responses/fi/HassTimerStatus.yaml | 91 +++++++++ responses/fi/HassUnpauseTimer.yaml | 6 + sentences/fi/_common.yaml | 49 +++++ .../fi/homeassistant_HassCancelTimer.yaml | 13 ++ .../fi/homeassistant_HassDecreaseTimer.yaml | 33 ++++ .../fi/homeassistant_HassIncreaseTimer.yaml | 31 +++ .../fi/homeassistant_HassPauseTimer.yaml | 13 ++ .../fi/homeassistant_HassStartTimer.yaml | 25 +++ .../fi/homeassistant_HassTimerStatus.yaml | 39 ++++ .../fi/homeassistant_HassUnpauseTimer.yaml | 13 ++ tests/fi/_fixtures.yaml | 20 ++ tests/fi/homeassistant_HassCancelTimer.yaml | 43 +++++ tests/fi/homeassistant_HassDecreaseTimer.yaml | 59 ++++++ tests/fi/homeassistant_HassIncreaseTimer.yaml | 50 +++++ tests/fi/homeassistant_HassPauseTimer.yaml | 40 ++++ tests/fi/homeassistant_HassStartTimer.yaml | 178 ++++++++++++++++++ tests/fi/homeassistant_HassTimerStatus.yaml | 55 ++++++ tests/fi/homeassistant_HassUnpauseTimer.yaml | 38 ++++ 23 files changed, 827 insertions(+) create mode 100644 responses/fi/HassCancelTimer.yaml create mode 100644 responses/fi/HassDecreaseTimer.yaml create mode 100644 responses/fi/HassIncreaseTimer.yaml create mode 100644 responses/fi/HassPauseTimer.yaml create mode 100644 responses/fi/HassStartTimer.yaml create mode 100644 responses/fi/HassTimerStatus.yaml create mode 100644 responses/fi/HassUnpauseTimer.yaml create mode 100644 sentences/fi/homeassistant_HassCancelTimer.yaml create mode 100644 sentences/fi/homeassistant_HassDecreaseTimer.yaml create mode 100644 sentences/fi/homeassistant_HassIncreaseTimer.yaml create mode 100644 sentences/fi/homeassistant_HassPauseTimer.yaml create mode 100644 sentences/fi/homeassistant_HassStartTimer.yaml create mode 100644 sentences/fi/homeassistant_HassTimerStatus.yaml create mode 100644 sentences/fi/homeassistant_HassUnpauseTimer.yaml create mode 100644 tests/fi/homeassistant_HassCancelTimer.yaml create mode 100644 tests/fi/homeassistant_HassDecreaseTimer.yaml create mode 100644 tests/fi/homeassistant_HassIncreaseTimer.yaml create mode 100644 tests/fi/homeassistant_HassPauseTimer.yaml create mode 100644 tests/fi/homeassistant_HassStartTimer.yaml create mode 100644 tests/fi/homeassistant_HassTimerStatus.yaml create mode 100644 tests/fi/homeassistant_HassUnpauseTimer.yaml diff --git a/responses/fi/HassCancelTimer.yaml b/responses/fi/HassCancelTimer.yaml new file mode 100644 index 0000000000..90f7494165 --- /dev/null +++ b/responses/fi/HassCancelTimer.yaml @@ -0,0 +1,6 @@ +--- +language: fi +responses: + intents: + HassCancelTimer: + default: "Ajastin peruutettu" diff --git a/responses/fi/HassDecreaseTimer.yaml b/responses/fi/HassDecreaseTimer.yaml new file mode 100644 index 0000000000..e6c35a5ad8 --- /dev/null +++ b/responses/fi/HassDecreaseTimer.yaml @@ -0,0 +1,6 @@ +--- +language: fi +responses: + intents: + HassDecreaseTimer: + default: "Ajastin päivitetty" diff --git a/responses/fi/HassIncreaseTimer.yaml b/responses/fi/HassIncreaseTimer.yaml new file mode 100644 index 0000000000..f567a81199 --- /dev/null +++ b/responses/fi/HassIncreaseTimer.yaml @@ -0,0 +1,6 @@ +--- +language: fi +responses: + intents: + HassIncreaseTimer: + default: "Ajastin päivitetty" diff --git a/responses/fi/HassPauseTimer.yaml b/responses/fi/HassPauseTimer.yaml new file mode 100644 index 0000000000..2c4e0f63e9 --- /dev/null +++ b/responses/fi/HassPauseTimer.yaml @@ -0,0 +1,6 @@ +--- +language: fi +responses: + intents: + HassPauseTimer: + default: "Ajastin keskeytetty" diff --git a/responses/fi/HassStartTimer.yaml b/responses/fi/HassStartTimer.yaml new file mode 100644 index 0000000000..c0637070e6 --- /dev/null +++ b/responses/fi/HassStartTimer.yaml @@ -0,0 +1,7 @@ +--- +language: fi +responses: + intents: + HassStartTimer: + default: "Ajastin käynnistetty" + command: "Komento vastaanotettu" diff --git a/responses/fi/HassTimerStatus.yaml b/responses/fi/HassTimerStatus.yaml new file mode 100644 index 0000000000..e28096aab3 --- /dev/null +++ b/responses/fi/HassTimerStatus.yaml @@ -0,0 +1,91 @@ +--- +language: fi +responses: + intents: + HassTimerStatus: + default: | + {% set num_timers = slots.timers | length %} + {% set active_timers = slots.timers | selectattr('is_active') | list %} + {% set num_active_timers = active_timers | length %} + {% set paused_timers = slots.timers | rejectattr('is_active') | list %} + {% set num_paused_timers = paused_timers | length %} + {% set next_timer = None %} + + {% if num_timers == 0: %} + Ei ajastimia. + {% elif num_active_timers == 0: %} + {# Ei aktiivisia ajastimia #} + {% if num_paused_timers == 1: %} + {% set next_timer = paused_timers[0] %} + Ajastin on keskeytetty. + {% else: %} + {{ num_paused_timers }} keskeytettyä ajastinta. + {% endif %} + {% else: %} + {# Ainakin yksi aktiivinen ajastin #} + {% if num_active_timers == 1: %} + {% set next_timer = active_timers[0] %} + {% else: %} + {# Get active timer that will finish soonest #} + {% set sorted_timers = active_timers | sort(attribute='total_seconds_left') %} + {% set next_timer = sorted_timers[0] %} + {{ num_active_timers }} käynnissä olevaa ajastinta. + {% endif %} + + {% if num_paused_timers == 1: %} + 1 keskeytetty ajastin. + {% elif num_paused_timers > 0: %} + {{ num_paused_timers }} keskeytettyä ajastinta. + {% endif %} + {% endif %} + + {% if next_timer: %} + {# At least one active timer #} + {% if (next_timer.rounded_hours_left == 1) and (next_timer.rounded_minutes_left > 0): %} + 1 tunti ja {{ next_timer.rounded_minutes_left }} minuuttia + {% elif (next_timer.rounded_hours_left == 1): %} + 1 tunti + {% elif (next_timer.rounded_hours_left > 1) and (next_timer.rounded_minutes_left > 0): %} + {{ next_timer.rounded_hours_left }} tuntia ja {{ next_timer.rounded_minutes_left }} minuuttia + {% elif (next_timer.rounded_hours_left > 1): %} + {{ next_timer.rounded_hours_left }} tuntia + {% elif (next_timer.rounded_minutes_left == 1) and (next_timer.rounded_seconds_left > 0): %} + 1 minuutti ja {{ next_timer.rounded_seconds_left }} sekuntia + {% elif (next_timer.rounded_minutes_left == 1): %} + 1 minuutti + {% elif (next_timer.rounded_minutes_left > 1) and (next_timer.rounded_seconds_left > 0): %} + {{ next_timer.rounded_minutes_left }} minuuttia ja {{ next_timer.rounded_seconds_left }} sekuntia + {% elif (next_timer.rounded_minutes_left > 1): %} + {{ next_timer.rounded_minutes_left }} minuuttia + {% elif (next_timer.rounded_seconds_left == 1): %} + 1 sekunti + {% elif (next_timer.rounded_seconds_left > 1): %} + {{ next_timer.rounded_seconds_left }} sekuntia + {% endif %} + + {% if num_timers > 1: %} + {# Give some extra information to disambiguate #} + jäljellä + {% if (next_timer.start_hours > 0) and (next_timer.start_minutes > 0): %} + {{ next_timer.start_hours }} tuntia ja {{ next_timer.start_minutes }} minuuttia + {% elif (next_timer.start_hours > 0): %} + {{ next_timer.start_hours }} tuntia + {% elif (next_timer.start_minutes > 0) and (next_timer.start_seconds > 0): %} + {{ next_timer.start_minutes }} minuuttia ja {{ next_timer.start_seconds }} sekuntia + {% elif (next_timer.start_minutes > 0): %} + {{ next_timer.start_minutes }} minuutin + {% elif (next_timer.start_seconds > 0): %} + {{ next_timer.start_seconds }} sekuntia + {% endif %} + + {% if next_timer.name: %} + {{ next_timer.name }} + {% elif next_timer.area: %} + {{ next_timer.area }} + {% endif %} + + ajastimessa. + {% else: %} + jäljellä. + {% endif %} + {% endif %} diff --git a/responses/fi/HassUnpauseTimer.yaml b/responses/fi/HassUnpauseTimer.yaml new file mode 100644 index 0000000000..fd71734aa2 --- /dev/null +++ b/responses/fi/HassUnpauseTimer.yaml @@ -0,0 +1,6 @@ +--- +language: fi +responses: + intents: + HassUnpauseTimer: + default: "Ajastinta jatkettu" diff --git a/sentences/fi/_common.yaml b/sentences/fi/_common.yaml index b555a184cb..8c5b8f9e7c 100644 --- a/sentences/fi/_common.yaml +++ b/sentences/fi/_common.yaml @@ -29,6 +29,11 @@ responses: duplicate_entities: "Pahoittelut, useita laitteita nimellä {{ entity }} löytyi" duplicate_entities_in_area: "Pahoittelut, useita laitteita nimellä {{ entity }} löytyi alueelta {{ area }}" + # Errors for timers + timer_not_found: "Pahoittelut, en löydä tätä ajastinta" + multiple_timers_matched: "Pahoittelut, en voi käskyttää useampaa ajastinta" + no_timer_support: "Pahoittelut, ajastimia ei tueta tällä laitteella" + lists: color: values: @@ -141,6 +146,37 @@ lists: from: 0 to: 100 + timer_seconds: + range: + from: 1 + to: 100 + timer_minutes: + range: + from: 1 + to: 100 + timer_hours: + range: + from: 1 + to: 100 + timer_half: + values: + - in: "(puoli|puoleksi)" + out: 30 + - in: "1/2" + out: 30 + timer_quarter: + values: + - in: "(vartin|varttitunnin|vartiksi|varttitunniksi|vartilla|varttitunnilla)" + out: "15" + timer_three_quarter: + values: + - in: "(3 vartin|3 vartiksi|3 vartilla)" + out: "45" + timer_name: + wildcard: true + timer_command: + wildcard: true + expansion_rules: # On off states päälle: "päälle" # on @@ -353,6 +389,19 @@ expansion_rules: # kylmine: "(kylmine|viileine|vilpoisine)" # instruktiivi = miten # kylmineen: "(kylmineen|viileineen|vilpoisineen)" # komitatiivi = minkä, kenen kanssa + # Timers + timer_set: "(aloita|luo|käynnistä|aseta|laita)" + timer_cancel: "(peruuta|poista|lopeta)" + timer_duration_seconds: "{timer_seconds:seconds} (sekunti[a]|sekunnilla|sekunniksi|sekunnille|sekunnin)" + timer_duration_minutes: "({timer_minutes:minutes} (minuutti[a]|minuutilla|minuutiksi|minuutille|minuutin)[ [ja ]{timer_seconds:seconds} (sekunti[a]|sekunnilla|sekunniksi|sekunnille|sekunnin)])|({timer_minutes:minutes} ja {timer_half:seconds} (minuutti[a]|minuutilla|minuutiksi|minuutille|minuutin))|({timer_half:seconds} (minuutti[a]|minuutilla|minuutiksi|minuutille|minuutin))" + timer_duration_hours: "({timer_hours:hours} (tunti[a]|tunnilla|tunniksi|tunnille|tunnin)[ [ja ]{timer_minutes:minutes} (minuutti[a]|minuutilla|minuutiksi|minuutille|minuutin)][ [ja ]{timer_seconds:seconds} (sekunti[a]|sekunnilla|sekunniksi|sekunnille|sekunnin)])|({timer_hours:hours} ja {timer_half:minutes} (tunti[a]|tunnilla|tunniksi|tunnille|tunnin))|({timer_half:minutes} (tunti[a]|tunnilla|tunniksi|tunnille|tunnin))" + timer_duration: "||" + + timer_start_seconds: "{timer_seconds:start_seconds} (sekunti[a]|sekunnin|sekunnille)" + timer_start_minutes: "{timer_minutes:start_minutes} (minuutti[a]|minuutin|minuutille)[ [ja ]{timer_seconds:start_seconds} (sekunti[a]|sekunnin|sekunnille)]" + timer_start_hours: "{timer_hours:start_hours} (tunti[a]|tunnin|tunnille)[ [ja ]{timer_minutes:start_minutes} (minuutti[a]|minuutin|minuutille)][ [ja ]{timer_seconds:start_seconds} (sekunti[a]|sekunnin|sekunnille)]" + timer_start: "||" + skip_words: - "voitko" # Can you - "voisitko" # Could you diff --git a/sentences/fi/homeassistant_HassCancelTimer.yaml b/sentences/fi/homeassistant_HassCancelTimer.yaml new file mode 100644 index 0000000000..15ed4a4f35 --- /dev/null +++ b/sentences/fi/homeassistant_HassCancelTimer.yaml @@ -0,0 +1,13 @@ +--- +language: "fi" +intents: + HassCancelTimer: + data: + - sentences: + - " [minun|mun] (ajastin|ajastus)" + - " [minun|mun] (ajastin|ajastus)" + - " [minun|mun] (ajastin|ajastus) " + - " [minun|mun] {area} (ajastin|ajastus)" + - " [minun|mun] (ajastin|ajastus) (|||) {area}" + - " [minun|mun] (ajastin|ajastus) [nimeltä] {timer_name:name}" + - " [minun|mun] {timer_name:name} [niminen] (ajastin|ajastus)" diff --git a/sentences/fi/homeassistant_HassDecreaseTimer.yaml b/sentences/fi/homeassistant_HassDecreaseTimer.yaml new file mode 100644 index 0000000000..1d3258955b --- /dev/null +++ b/sentences/fi/homeassistant_HassDecreaseTimer.yaml @@ -0,0 +1,33 @@ +--- +language: "fi" +intents: + HassDecreaseTimer: + data: + # Poista...sekunti[a]/tunti[a]/minuutti[a] + - sentences: + - "poista [minun|mun] (ajastimesta|ajastuksesta)" + - "poista [minun|mun] (ajastimesta|ajastuksesta)" + - "poista [minun|mun] [] {area} (ajastimesta|ajastuksesta)" + - "poista [minun|mun] (ajastimesta|ajastuksesta) [||] {area}" + - "poista [minun|mun] {timer_name:name} [nimisestä|nimiseltä] (ajastimesta|ajastuksesta)" + - "poista [minun|mun] (ajastimesta|ajastuksesta) [nimeltä] {timer_name:name}" + # Ota...pois....sekuntia/tuntia/minuuttia + - sentences: + - "(ota pois |ota pois) [minun|mun] (ajastimesta|ajastuksesta)" + - "(ota pois |ota pois) [minun|mun] (ajastimesta|ajastuksesta)" + - "(ota pois |ota pois) [minun|mun] [] {area} (ajastimesta|ajastuksesta)" + - "(ota pois |ota pois) [minun|mun] (ajastimesta|ajastuksesta) [||] {area}" + - "(ota pois |ota pois) [minun|mun] {timer_name:name} [nimisestä|nimiseltä] (ajastimesta|ajastuksesta)" + - "(ota pois |ota pois) [minun|mun] (ajastimesta|ajastuksesta) [nimeltä] {timer_name:name}" + # Vähennä/Pienennä...minuutilla/sekunnilla/tunnilla + - sentences: + - "(vähennä|pienennä|lyhennä) [minun|mun] (ajastinta|ajastusta|ajastimesta|ajastuksesta) " + - "(vähennä|pienennä|lyhennä) [minun|mun] (ajastinta|ajastusta|ajastimesta|ajastuksesta) " + - "(vähennä|pienennä|lyhennä) [minun|mun] (ajastinta|ajastusta|ajastimesta|ajastuksesta)" + - "(vähennä|pienennä|lyhennä) [minun|mun] {timer_name:name} (ajastinta|ajastusta|ajastimesta|ajastuksesta)" + - "(vähennä|pienennä|lyhennä) [minun|mun] [] {area} (ajastinta|ajastusta|ajastimesta|ajastuksesta) " + - "(vähennä|pienennä|lyhennä) [minun|mun] (ajastinta|ajastusta|ajastimesta|ajastuksesta) [||] {area} " + - "(vähennä|pienennä|lyhennä) (ajastinta|ajastusta|ajastimesta|ajastuksesta) [nimeltä] {timer_name:name}" + - "(vähennä|pienennä|lyhennä) [minun|mun] {timer_name:name} [nimistä] (ajastinta|ajastusta|ajastimesta|ajastuksesta) " + # This must be fixed somehow to remove "ajalla" + - "(vähennä|pienennä|lyhennä) [minun|mun] (ajastinta|ajastusta|ajastimesta|ajastuksesta) [nimeltä] {timer_name:name} ajalla " diff --git a/sentences/fi/homeassistant_HassIncreaseTimer.yaml b/sentences/fi/homeassistant_HassIncreaseTimer.yaml new file mode 100644 index 0000000000..b73d633031 --- /dev/null +++ b/sentences/fi/homeassistant_HassIncreaseTimer.yaml @@ -0,0 +1,31 @@ +--- +language: "fi" +intents: + HassIncreaseTimer: + data: + # Generic timer + - sentences: + - "(lisää [aikaa] | lisää [aikaa]) [minun|mun] (ajastimeen|ajastukseen)" + - "(pidennä) [minun|mun] (ajastinta|ajastusta) " + # Timer called by duration + - sentences: + - "lisää [aikaa] ([minun|mun] (ajastimeen|ajastukseen);)" + - "(pidennä) ([minun|mun] (ajastinta|ajastusta);)" + + # Area + - sentences: + - "(lisää [aikaa] | lisää [aikaa]) [minun|mun] ((ajastimeen|ajastukseen);[|||] {area})" + - "(pidennä) [minun|mun] ((ajastinta|ajastusta);[|||] {area};)" + + # Named + - sentences: + # This must be fixed somehow to remove "ajalla" + - "(pidennä) [minun|mun] (ajastinta|ajastusta) [nimeltä] {timer_name:name} ajalla " + - "(pidennä) (;[minun|mun] {timer_name:name} [nimistä] (ajastinta|ajastusta))" + - "(pidennä) (ajastinta|ajastusta) [nimeltä] {timer_name:name}" + - "lisää (;[minun|mun] {timer_name:name} [nimiseen] (ajastimeen|ajastukseen))" + - "lisää (;[minun|mun] (ajastimeen|ajastukseen) [nimeltä] {timer_name:name})" + - "(lisää [aikaa] | lisää [aikaa]) [minun|mun] {timer_name:name} [nimisestä|nimiseltä] (ajastimeen|ajastukseen)" + - "(lisää [aikaa] | lisää [aikaa]) [minun|mun] (ajastimeen|ajastukseen) [nimeltä] {timer_name:name}" + - "(lisää [aikaa] | lisää [aikaa]) [minun|mun] {timer_name:name} [nimisestä|nimiseltä] (ajastimeen|ajastukseen)" + - "lisää {timer_name:name} (ajastimeen|ajastukseen) [aikaa]" diff --git a/sentences/fi/homeassistant_HassPauseTimer.yaml b/sentences/fi/homeassistant_HassPauseTimer.yaml new file mode 100644 index 0000000000..c2f9166d16 --- /dev/null +++ b/sentences/fi/homeassistant_HassPauseTimer.yaml @@ -0,0 +1,13 @@ +--- +language: "fi" +intents: + HassPauseTimer: + data: + - sentences: + - "(keskeytä|pysäytä) [minun|mun] (ajastin|ajastus)" + - "(keskeytä|pysäytä) [minun|mun] (ajastin|ajastus)" + - "(keskeytä|pysäytä) [minun|mun] (ajastin|ajastus) " + - "(keskeytä|pysäytä) [minun|mun] [] {area} (ajastin|ajastus)" + - "(keskeytä|pysäytä) [minun|mun] (ajastin|ajastus) [||] {area}" + - "(keskeytä|pysäytä) [minun|mun] {timer_name:name} [niminen] (ajastin|ajastus)" + - "(keskeytä|pysäytä) [minun|mun] (ajastin|ajastus) [nimeltä] {timer_name:name}" diff --git a/sentences/fi/homeassistant_HassStartTimer.yaml b/sentences/fi/homeassistant_HassStartTimer.yaml new file mode 100644 index 0000000000..efba17c84d --- /dev/null +++ b/sentences/fi/homeassistant_HassStartTimer.yaml @@ -0,0 +1,25 @@ +--- +language: "fi" +intents: + HassStartTimer: + data: + - sentences: + - "(ajastin|ajastus) " + - "(ajastin|ajastus) (nimeltä|nimelle|nimellä) {timer_name:name}" + - " (ajastin|ajastus)" + - " (ajastin|ajastus) (nimeltä|nimelle|nimellä) {timer_name:name}" + - " (ajastin|ajastus)" + - " (ajastin|ajastus) " + - " (ajastin|ajastus) (nimellä|nimeltä|nimelle) {timer_name:name}" + - " (ajastin|ajastus) (nimellä|nimeltä|nimelle) {timer_name:name} " + - " (ajastin|ajastus) (nimellä|nimeltä|nimelle) {timer_name:name}" + - " (ajastin|ajastus) (nimellä|nimeltä|nimelle) {timer_name:name} ajalle " + - sentences: + # The ones below won't work because it has two wildcards after each other - saved for using after a possible fix + #- "{timer_command:conversation_command} [kuluttua|päästä|jälkeen]" + #- "ajasta {timer_command:conversation_command} [kuluttua|päästä|jälkeen]" + - " (kuluttua|päästä|jälkeen) {timer_command:conversation_command}" + - "{timer_command:conversation_command} kun on (kulunut|mennyt) " + - "jälkeen {timer_command:conversation_command}" + - "komento {timer_command:conversation_command} (ajastus|ajasta) " + response: command diff --git a/sentences/fi/homeassistant_HassTimerStatus.yaml b/sentences/fi/homeassistant_HassTimerStatus.yaml new file mode 100644 index 0000000000..c7bbc9c905 --- /dev/null +++ b/sentences/fi/homeassistant_HassTimerStatus.yaml @@ -0,0 +1,39 @@ +--- +language: "fi" +intents: + HassTimerStatus: + data: + # Timer status + - sentences: + - "[mikä on] (ajastimen|ajastuksen) [jäljellä oleva] (tila|tilanne|aika|status)" + - "[mikä on] (ajastimen|ajastuksen|ajastimien|ajastuksien) [jäljellä oleva] (tila|tilanne|aika|status)" + - "[mikä on] [] {area} [jäljellä oleva] [ajastimen|ajastuksen] (tila|tilanne|aika|status)" + + # How much... + - sentences: + - "[[kuinka|miten] paljon] (on jäljellä|(aikaa;on) [jäljellä]|aikaa jäljellä) [minun|mun] (ajastimessa[ni]|ajastuksessa[ni]|ajastimissa[ni]|ajastuksissa[ni])" + - "[[kuinka|miten] paljon] (on jäljellä|(aikaa;on) [jäljellä]|aikaa jäljellä) [minun|mun] (ajastimessa[ni]|ajastuksessa[ni]|ajastimissa[ni]|ajastuksissa[ni])" + - "[[kuinka|miten] paljon] (on jäljellä|(aikaa;on) [jäljellä]|aikaa jäljellä) [minun|mun] [] {area} (ajastimessa|ajastuksessa)" + - "[[kuinka|miten] paljon] (on jäljellä|(aikaa;on) [jäljellä]|aikaa jäljellä) [minun|mun] (ajastimessa[ni]|ajastuksessa[ni]|ajastimissa[ni]|ajastuksissa[ni]) [|] {area}" + - sentences: + - "jäljellä oleva aika [minun|mun] (ajastimessa[ni]|ajastuksessa[ni]|ajastimissa[ni]|ajastuksissa[ni])" + - "jäljellä oleva aika [minun|mun] (ajastimessa[ni]|ajastuksessa[ni]|ajastimissa[ni]|ajastuksissa[ni])" + - "jäljellä oleva aika [minun|mun] [] {area} (ajastimessa|ajastuksessa)" + - "jäljellä oleva aika [minun|mun] (ajastimessa[ni]|ajastuksessa[ni]|ajastimissa[ni]|ajastuksissa[ni]) [|] {area}" + # How long... + - sentences: + - "(paljonko|kauanko|kuinka kauan) (on jäljellä|(aikaa;on) [jäljellä]|aikaa jäljellä) [minun|mun] (ajastimessa[ni]|ajastuksessa[ni]|ajastimissa[ni]|ajastuksissa[ni])" + - "(paljonko|kauanko|kuinka kauan) (on jäljellä|(aikaa;on) [jäljellä]|aikaa jäljellä) [minun|mun] (ajastimessa|ajastuksessa)" + - "(paljonko|kauanko|kuinka kauan) (on jäljellä|(aikaa;on) [jäljellä]|aikaa jäljellä) [minun|mun] [] {area} (ajastimessa|ajastuksessa)" + - "(paljonko|kauanko|kuinka kauan) (on jäljellä|(aikaa;on) [jäljellä]|aikaa jäljellä) [minun|mun] (ajastimessa[ni]|ajastuksessa[ni]|ajastimissa[ni]|ajastuksissa[ni]) [|] {area}" + # Status of... + - sentences: + - "[minun|mun] (ajastimessa[ni]|ajastuksessa[ni]|ajastimissa[ni]|ajastuksissa[ni]) (tila|tilanne|aika|status) " + - "[minun|mun] (ajastimen|ajastuksen) (tila|tilanne|aika|status)" + - "[minun|mun] [] {area} (ajastimen|ajastuksen) (tila|tilanne|aika|status)" + - "[minun|mun] (ajastimen|ajastuksen) (tila|tilanne|aika|status) [|] {area} " + # Named timers + - sentences: + - "[mikä on] {timer_name:name} [nimisen] (ajastimen|ajastuksen) (tila|tilanne|aika|status)" + - "[[kuinka|miten] paljon|paljonko|kauanko] (on jäljellä|(aikaa;on) [jäljellä]|aikaa jäljellä) [minun|mun] {timer_name:name} [nimisessä] (ajastimessa|ajastuksessa)" + - "(ajastimen|ajastuksen) {timer_name:name} (tila|tilanne|aika|status)" diff --git a/sentences/fi/homeassistant_HassUnpauseTimer.yaml b/sentences/fi/homeassistant_HassUnpauseTimer.yaml new file mode 100644 index 0000000000..299c944a6e --- /dev/null +++ b/sentences/fi/homeassistant_HassUnpauseTimer.yaml @@ -0,0 +1,13 @@ +--- +language: "fi" +intents: + HassUnpauseTimer: + data: + - sentences: + - "(jatka) [minun|mun] (ajastinta|ajastusta)" + - "(jatka) [minun|mun] (ajastinta|ajastusta)" + - "(jatka) [minun|mun] (ajastinta|ajastusta) " + - "(jatka) [minun|mun] [] {area} (ajastinta|ajastusta)" + - "(jatka) [minun|mun] (ajastinta|ajastusta) [|] {area}" + - "(jatka) [minun|mun] (ajastinta|ajastusta) [nimeltä] {timer_name:name}" + - "(jatka) [minun|mun] {timer_name:name} [nimistä] (ajastinta|ajastusta)" diff --git a/tests/fi/_fixtures.yaml b/tests/fi/_fixtures.yaml index d06768318b..5075f63419 100644 --- a/tests/fi/_fixtures.yaml +++ b/tests/fi/_fixtures.yaml @@ -417,3 +417,23 @@ entities: state: "playing" attributes: volume_level: "70" + +timers: + - is_active: false + start_hours: 1 + total_seconds_left: 100 + rounded_hours_left: 0 + rounded_minutes_left: 1 + rounded_seconds_left: 40 + - name: "pizza" + start_minutes: 30 + total_seconds_left: 1505 + rounded_hours_left: 0 + rounded_minutes_left: 25 + rounded_seconds_left: 0 + - area: "kitchen" + start_minutes: 5 + total_seconds_left: 190 + rounded_hours_left: 0 + rounded_minutes_left: 3 + rounded_seconds_left: 0 diff --git a/tests/fi/homeassistant_HassCancelTimer.yaml b/tests/fi/homeassistant_HassCancelTimer.yaml new file mode 100644 index 0000000000..231c5502c8 --- /dev/null +++ b/tests/fi/homeassistant_HassCancelTimer.yaml @@ -0,0 +1,43 @@ +--- +language: fi +tests: + - sentences: + - "peruuta ajastin" + - "poista minun ajastus" + - "lopeta ajastus" + intent: + name: HassCancelTimer + response: Ajastin peruutettu + + - sentences: + - "peruuta 5 minuutin ajastin" + - "lopeta ajastus 5 minuutille" + - "poista 5 minuutin ajastus" + intent: + name: HassCancelTimer + slots: + start_minutes: 5 + response: Ajastin peruutettu + + - sentences: + - "peruuta pizza ajastin" + - "lopeta pizza niminen ajastus" + - "poista ajastus nimeltä pizza" + intent: + name: HassCancelTimer + slots: + name: + - "pizza " + - "pizza" + response: Ajastin peruutettu + + - sentences: + - "lopeta alueen keittiö ajastus" + - "peruuta ajastin huoneessa keittiö" + - "peruuta ajastin huoneesta keittiö" + - "peruuta ajastus alueella keittiö" + intent: + name: HassCancelTimer + slots: + area: Keittiö + response: Ajastin peruutettu diff --git a/tests/fi/homeassistant_HassDecreaseTimer.yaml b/tests/fi/homeassistant_HassDecreaseTimer.yaml new file mode 100644 index 0000000000..8fe6337499 --- /dev/null +++ b/tests/fi/homeassistant_HassDecreaseTimer.yaml @@ -0,0 +1,59 @@ +--- +language: fi +tests: + - sentences: + - "poista 5 minuuttia ajastuksesta" + - "poista 5 minuuttia mun ajastimesta" + - "ota pois 5 minuuttia ajastuksesta" + - "vähennä ajastinta 5 minuuttia" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + response: Ajastin päivitetty + + - sentences: + - "poista 5 minuuttia 1 tunnin ajastimesta" + - "ota pois 5 minuuttia 1 tunnin ajastuksesta" + - "ota 5 minuuttia pois 1 tunnin ajastimesta" + - "lyhennä 5 minuuttia mun 1 tunnin ajastinta" + - "vähennä 1 tunnin ajastinta 5 minuutilla" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + start_hours: 1 + response: Ajastin päivitetty + + - sentences: + - "poista 5 minuuttia pizza nimisestä ajastimesta" + - "poista 5 minuuttia ajastimesta pizza" + - "vähennä 5 minuuttia pizza ajastuksesta" + - "ota 5 minuuttia pois pizza ajastimesta" + - "vähennä mun pizza nimistä ajastinta 5 minuutilla" + - "lyhennä 5 minuutilla ajastusta pizza" + - "lyhennä minun ajastusta nimeltä pizza ajalla 5 minuutilla" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + name: + - "pizza " + - "pizza" + response: Ajastin päivitetty + + - sentences: + - "poista 5 minuuttia keittiö ajastimesta" + - "poista 5 minuuttia alueen keittiö ajastuksesta" + - "poista 5 minuuttia ajastimesta huoneessa keittiö" + - "ota 5 minuuttia pois keittiö ajastimesta" + - "ota pois 5 minuuttia ajastimesta huoneessa keittiö" + - "vähennä ajastinta keittiö 5 minuutilla" + - "pienennä ajastinta keittiö 5 minuuttia" + - "lyhennä alueen keittiö ajastinta 5 minuuttia" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + area: Keittiö + response: Ajastin päivitetty diff --git a/tests/fi/homeassistant_HassIncreaseTimer.yaml b/tests/fi/homeassistant_HassIncreaseTimer.yaml new file mode 100644 index 0000000000..455e0c5373 --- /dev/null +++ b/tests/fi/homeassistant_HassIncreaseTimer.yaml @@ -0,0 +1,50 @@ +--- +language: fi +tests: + - sentences: + - "lisää 5 minuuttia ajastimeen" + - "5 minuuttia lisää mun ajastukseen" + - "pidennä minun ajastinta 5 minuuttia" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + response: Ajastin päivitetty + + - sentences: + - "lisää 5 minuuttia 1 tunnin ajastimeen" + - "pidennä 1 tunnin ajastinta 5 minuutilla" + - "lisää 1 tunnin ajastimeen 5 minuuttia" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + start_hours: 1 + response: Ajastin päivitetty + + - sentences: + - "lisää 5 minuuttia ajastimeen keittiö" + - "lisää 5 minuuttia ajastimeen alueella keittiö" + - "pidennä ajastinta huoneessa keittiö 5 minuutilla" + - "pidennä keittiö ajastinta 5 minuutilla" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + area: Keittiö + response: Ajastin päivitetty + + - sentences: + - "lisää 5 minuuttia pizza ajastimeen" + - "lisää 5 minuuttia ajastimeen nimeltä pizza" + - "lisää pizza ajastimeen 5 minuuttia" + - "pidennä ajastinta pizza ajalla 5 minuuttia" + - "pidennä pizza nimistä ajastinta 5 minuuttia" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + name: + - "pizza " + - "pizza" + response: Ajastin päivitetty diff --git a/tests/fi/homeassistant_HassPauseTimer.yaml b/tests/fi/homeassistant_HassPauseTimer.yaml new file mode 100644 index 0000000000..a436b2e26b --- /dev/null +++ b/tests/fi/homeassistant_HassPauseTimer.yaml @@ -0,0 +1,40 @@ +--- +language: fi +tests: + - sentences: + - "keskeytä ajastin" + - "pysäytä minun ajastin" + intent: + name: HassPauseTimer + response: Ajastin keskeytetty + + - sentences: + - "keskeytä 1 tunnin ajastin" + - "pysäytä 1 tunnin ajastus" + intent: + name: HassPauseTimer + slots: + start_hours: 1 + response: Ajastin keskeytetty + + - sentences: + - "keskeytä pizza niminen ajastin" + - "keskeytä ajastin nimeltä pizza" + - "pysäytä ajastus pizza" + intent: + name: HassPauseTimer + slots: + name: + - "pizza " + - "pizza" + response: Ajastin keskeytetty + + - sentences: + - "keskeytä ajastin keittiö" + - "keskeytä alueen keittiö ajastin" + - "pysäytä keittiö ajastin" + intent: + name: HassPauseTimer + slots: + area: Keittiö + response: Ajastin keskeytetty diff --git a/tests/fi/homeassistant_HassStartTimer.yaml b/tests/fi/homeassistant_HassStartTimer.yaml new file mode 100644 index 0000000000..e30e449079 --- /dev/null +++ b/tests/fi/homeassistant_HassStartTimer.yaml @@ -0,0 +1,178 @@ +--- +language: fi +tests: + - sentences: + - "10 minuutin ajastin" + intent: + name: HassStartTimer + slots: + minutes: 10 + response: Ajastin käynnistetty + + - sentences: + - "käynnistä 1 tunnin ajastus" + - "aseta ajastin 1 tunniksi" + - "luo 1 tunnin ajastin" + - "1 tunnin ajastus" + - "ajastus 1 tunniksi" + intent: + name: HassStartTimer + context: + area: Olohuone + slots: + hours: 1 + response: Ajastin käynnistetty + + - sentences: + - "laita ajastin 5 ja puoleksi minuutiksi" + intent: + name: HassStartTimer + context: + area: Olohuone + slots: + minutes: 5 + seconds: 30 + response: Ajastin käynnistetty + + - sentences: + - "aseta ajastin puoleksi minuutiksi" + - "aseta ajastin 1/2 minuutiksi" + intent: + name: HassStartTimer + context: + area: Olohuone + slots: + seconds: 30 + response: Ajastin käynnistetty + + - sentences: + - "aseta ajastin 1 ja puoleksi tunniksi" + - "aseta ajastin 1 ja 1/2 tunniksi" + intent: + name: HassStartTimer + context: + area: Olohuone + slots: + hours: 1 + minutes: 30 + response: Ajastin käynnistetty + + - sentences: + - "luo ajastin puoleksi tunniksi" + - "luo ajastin 1/2 tunniksi" + intent: + name: HassStartTimer + context: + area: Olohuone + slots: + minutes: 30 + response: Ajastin käynnistetty + + - sentences: + - "käynnistä 1 tunnin ja 15 minuutin ajastin" + - "ajastin 1 tunniksi ja 15 minuutiksi" + - "ajastus 1 tunniksi ja 15 minuutiksi" + intent: + name: HassStartTimer + context: + area: Olohuone + slots: + hours: 1 + minutes: 15 + response: Ajastin käynnistetty + + - sentences: + - "aloita 1 tunnin ja 30 sekunnin ajastin" + - "ajastin 1 tunniksi ja 30 sekunniksi" + - "aseta ajastus 1 tunniksi ja 30 sekunniksi" + intent: + name: HassStartTimer + context: + area: Olohuone + slots: + hours: 1 + seconds: 30 + response: Ajastin käynnistetty + + - sentences: + - "aloita 1 tunnin 15 minuutin ja 30 sekunnin ajastin" + - "käynnistä 1 tunnin 15 minuutin ja 30 sekunnin ajastin" + - "1 tunnin 15 minuutin 30 sekunnin ajastin" + - "aseta ajastin 1 tunniksi, 15 minuutiksi ja 30 sekunniksi" + intent: + name: HassStartTimer + context: + area: Olohuone + slots: + hours: 1 + minutes: 15 + seconds: 30 + response: Ajastin käynnistetty + + - sentences: + - "aloita 5 minuutin ajastin" + - "5 minuutin ajastus" + - "ajastus 5 minuutiksi" + intent: + name: HassStartTimer + context: + area: Olohuone + slots: + minutes: 5 + response: Ajastin käynnistetty + + - sentences: + - "aloita 5 minuutin ajastin nimeltä pizza" + - "käynnistä 5 minuutin ajastin nimelle pizza" + - "5 minuutin ajastus nimellä pizza" + - "aseta ajastin nimeltä pizza ajalle 5 minuutiksi" + - "ajastin 5 minuutiksi nimelle pizza" + intent: + name: HassStartTimer + context: + area: Olohuone + slots: + minutes: 5 + name: + - "pizza " + - "pizza" + response: Ajastin käynnistetty + + - sentences: + - "aloita 5 minuutin ja 10 sekunnin ajastin" + - "ajastin 5 minuutille ja 10 sekunnille" + - "5 minuutin 10 sekunnin ajastin" + intent: + name: HassStartTimer + context: + area: Olohuone + slots: + minutes: 5 + seconds: 10 + response: Ajastin käynnistetty + + - sentences: + - "aloita 45 sekunnin ajastus" + - "ajastin 45 sekunnille" + - "45 sekunnin ajastin" + intent: + name: HassStartTimer + context: + area: Olohuone + slots: + seconds: 45 + response: Ajastin käynnistetty + + - sentences: + - "avaa autotallin toinen ovi kun on kulunut 5 minuuttia" + - "5 minuutin kuluttua, avaa autotallin toinen ovi" + - "komento avaa autotallin toinen ovi ajastus 5 minuuttia" + - "jälkeen 5 minuutin, avaa autotallin toinen ovi" + intent: + name: HassStartTimer + slots: + minutes: 5 + conversation_command: + - "avaa autotallin toinen ovi" + - "avaa autotallin toinen ovi " + response: Komento vastaanotettu diff --git a/tests/fi/homeassistant_HassTimerStatus.yaml b/tests/fi/homeassistant_HassTimerStatus.yaml new file mode 100644 index 0000000000..e0748f3889 --- /dev/null +++ b/tests/fi/homeassistant_HassTimerStatus.yaml @@ -0,0 +1,55 @@ +--- +language: fi +tests: + - sentences: + - "mikä on ajastuksen tilanne" + - "ajastimen tila" + - "ajastimien tila" + - "paljonko aikaa on jäljellä ajastimessani" + - "kuinka paljon on aikaa jäljellä ajastimissani" + - "paljonko on jäljellä ajastimessani" + intent: + name: HassTimerStatus + response: | + 2 käynnissä olevaa ajastinta. 1 keskeytetty ajastin. 3 minuuttia jäljellä 5 minuutin keittiö ajastimessa. + + - sentences: + - "1 tunnin ajastimen jäljellä oleva tilanne" + - "1 tunnin ajastuksen tila" + - "aikaa jäljellä 1 tunnin ajastimessa" + - "jäljellä oleva aika 1 tunnin ajastimessani" + - "mikä on 1 tunnin ajastimen tila" + intent: + name: HassTimerStatus + slots: + start_hours: 1 + response: | + Ajastin on keskeytetty. 1 minuutti ja 40 sekuntia jäljellä. + + - sentences: + - "pizza nimisen ajastimen status" + - "mikä on pizza nimisen ajastimen tilanne" + - "paljonko aikaa on jäljellä pizza ajastimessa" + - "kauanko on jäljellä pizza nimisessä ajastimessa" + - "ajastuksen pizza status" + intent: + name: HassTimerStatus + slots: + name: "pizza " + response: | + 25 minuuttia jäljellä. + + - sentences: + - "mikä on huoneen keittiö ajastimen tilanne" + - "mikä on alueen keittiö ajastuksen tilanne" + - "paljonko on jäljellä keittiö ajastimessa" + - "paljonko on jäljellä huoneen keittiö ajastuksessa" + - "jäljellä oleva aika keittiö ajastimessa" + - "kuinka paljon on jäljellä keittiö ajastimessa" + + intent: + name: HassTimerStatus + slots: + area: Keittiö + response: | + 3 minuuttia jäljellä. diff --git a/tests/fi/homeassistant_HassUnpauseTimer.yaml b/tests/fi/homeassistant_HassUnpauseTimer.yaml new file mode 100644 index 0000000000..1f95b51aae --- /dev/null +++ b/tests/fi/homeassistant_HassUnpauseTimer.yaml @@ -0,0 +1,38 @@ +--- +language: fi +tests: + - sentences: + - "jatka ajastinta" + - "jatka minun ajastusta" + intent: + name: HassUnpauseTimer + response: Ajastinta jatkettu + + - sentences: + - "jatka 1 tunnin ajastinta" + - "jatka ajastinta 1 tunnille" + intent: + name: HassUnpauseTimer + slots: + start_hours: 1 + response: Ajastinta jatkettu + + - sentences: + - "jatka pizza nimistä ajastusta" + - "Jatka ajastusta pizza" + intent: + name: HassUnpauseTimer + slots: + name: + - "pizza " + - "pizza" + response: Ajastinta jatkettu + + - sentences: + - "jatka keittiö ajastinta" + - "jatka ajastinta alueella keittiö" + intent: + name: HassUnpauseTimer + slots: + area: Keittiö + response: Ajastinta jatkettu From fe2ee0cc5905b9f81cfd445bffa456825042dc12 Mon Sep 17 00:00:00 2001 From: Natfaji_A <46685769+Natfaji@users.noreply.github.com> Date: Fri, 8 Nov 2024 08:37:53 +0100 Subject: [PATCH 38/92] [AR] create and fill homeassistant_HassRespond (#2475) * [AR] create and fill homeassistant_HassRespond * add a space between words and improve the test --- responses/ar/HassRespond.yaml | 9 ++ sentences/ar/_common.yaml | 11 ++- sentences/ar/homeassistant_HassRespond.yaml | 23 +++++ tests/ar/homeassistant_HassRespond.yaml | 95 +++++++++++++++++++++ 4 files changed, 136 insertions(+), 2 deletions(-) create mode 100644 responses/ar/HassRespond.yaml create mode 100644 sentences/ar/homeassistant_HassRespond.yaml create mode 100644 tests/ar/homeassistant_HassRespond.yaml diff --git a/responses/ar/HassRespond.yaml b/responses/ar/HassRespond.yaml new file mode 100644 index 0000000000..ff5b6e225e --- /dev/null +++ b/responses/ar/HassRespond.yaml @@ -0,0 +1,9 @@ +language: ar +responses: + intents: + HassRespond: + hello: "اهلا وسهلا" + listening: "لا، فقط في حال قلت كلمة التنشيط" + data: "بياناتك الخاصة يتم ارسالها فقط إلى خادم البيت الذكي الخاص بك" + commands: "لمعرفة ما يمكنك السؤال عنه، قم بزيارة موقعنا الإلكتروني" + creator: "لقد تم إنشائي من قبل المجتمع الرائع للبيت الذكي، والذي يتكون من عباقرة في جميع أنحاء العالم" diff --git a/sentences/ar/_common.yaml b/sentences/ar/_common.yaml index 2449c5a7ad..8b399d484d 100644 --- a/sentences/ar/_common.yaml +++ b/sentences/ar/_common.yaml @@ -1,8 +1,8 @@ language: ar responses: errors: - no_intent: "عفوا، لم أفهم هذا" - no_area: "عفوا، لا توجد منطقة بالإسم {{ area }}" + no_intent: "عفوا، لم أفهم (هذا|ذلك))" + no_area: "عفوا، (ليس هناك|لا توجد) منطقة بالإسم {{ area }}" no_domain_in_area: "عفوا، النطاق {{ domain }} غير موجود بالمنطقة {{ area }}" no_device_class_in_area: "عفوا، المنطقة {{ area }} لا تحتوى على فئة الأجهزة {{ device_class }}" no_entity: "عفوا، لا يوجد جهاز او خاصية بالإسم {{ entity }}" @@ -104,9 +104,16 @@ expansion_rules: script: "[ال](برنامج|برامج|مسار|مسارات|سيناريو)" scene: "[ال](مشهد|مشاهد|اعدادات)" + hello: "(مرحبا|اهلا)" + home_assistant: "[ال]بيت [(الذكي|المساعد)]" + what_is: "(ما هو|ما هي|ماذا يكون|ماذا تكون|كم هي|كم هو)" is_it: "(هل [هي]|هل [هو]|هل هناك)" how_many: "كم عدد" + where: "[(ل| )](اين|وين|فين)" + go: "[ب][(ت|ي)](ذهب|روح|تجه)" + what: "(ما|ماذا|شو)" + can: "(ممكن|يمكن)[ني]" brightness: "{brightness}[% | بالمائة]" temperature: "{temperature}[°| درجة] [{temperature_unit}]" diff --git a/sentences/ar/homeassistant_HassRespond.yaml b/sentences/ar/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..e09111ed81 --- /dev/null +++ b/sentences/ar/homeassistant_HassRespond.yaml @@ -0,0 +1,23 @@ +language: "ar" +intents: + HassRespond: + data: + - sentences: + - " []" + response: hello + + - sentences: + - "هل انت دائما ([ت]تسمع|تسجل)" + response: listening + + - sentences: + - " (بياناتي|معلوماتي) [الخاصه]" + response: data + + - sentences: + - " (اسال|اقول)" + response: commands + + - sentences: + - "من [الذي[ن]] (صنع[و]ك|صمم[و]ك)" + response: creator diff --git a/tests/ar/homeassistant_HassRespond.yaml b/tests/ar/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..014f26003d --- /dev/null +++ b/tests/ar/homeassistant_HassRespond.yaml @@ -0,0 +1,95 @@ +language: ar +tests: + - sentences: + - "اهلا بيت" + - "اهلا البيت" + - "اهلا بيت الذكي" + - "اهلا البيت الذكي" + - "اهلا بيت المساعد" + - "اهلا البيت المساعد" + - "مرحبا بيت" + - "مرحبا البيت" + - "مرحبا بيت الذكي" + - "مرحبا البيت الذكي" + - "مرحبا بيت المساعد" + - "مرحبا البيت المساعد" + intent: + name: HassRespond + response: "اهلا وسهلا" + + - sentences: + - "هل انت دائما تسجل" + - "هل انت دائما تسمع" + - "هل انت دائما تتسمع" + intent: + name: HassRespond + response: "لا، فقط في حال قلت كلمة التنشيط" + + - sentences: + - "لاين ذهب بياناتي" + - "لاين تروح بياناتي" + - "لاين يتجه بياناتي" + - "لاين ذهب معلوماتي" + - "لاين تروح معلوماتي" + - "لاين يتجه معلوماتي" + - "لاين ذهب بياناتي الخاصه" + - "لاين تروح بياناتي الخاصه" + - "لاين يتجه بياناتي الخاصه" + - "لاين ذهب معلوماتي الخاصه" + - "لاين تروح معلوماتي الخاصه" + - "لاين يتجه معلوماتي الخاصه" + - "لوين يروح معلوماتي" + - "الى وين يروح معلوماتي" + - "الى فين بتذهب بياناتي الخاصه" + intent: + name: HassRespond + response: "بياناتك الخاصة يتم ارسالها فقط إلى خادم البيت الذكي الخاص بك" + + - sentences: + - "ما ممكن اسال" + - "ماذا ممكن اسال" + - "شو ممكن اسال" + + - "ما يمكن اسال" + - "ماذا يمكن اسال" + - "شو يمكن اسال" + + - "ما ممكنني اسال" + - "ماذا ممكنني اسال" + - "شو ممكنني اسال" + + - "ما يمكنني اسال" + - "ماذا يمكنني اسال" + - "شو يمكنني اسال" + + - "ما ممكن اقول" + - "ماذا ممكن اقول" + - "شو ممكن اقول" + + - "ما يمكن اقول" + - "ماذا يمكن اقول" + - "شو يمكن اقول" + + - "ما ممكنني اقول" + - "ماذا ممكنني اقول" + - "شو ممكنني اقول" + + - "ما يمكنني اقول" + - "ماذا يمكنني اقول" + - "شو يمكنني اقول" + intent: + name: HassRespond + response: "لمعرفة ما يمكنك السؤال عنه، قم بزيارة موقعنا الإلكتروني" + + - sentences: + - "من صنعك" + - "من صممك" + + - "من الذي صنعك" + - "من الذي صممك" + + - "من الذين صنعوك" + - "من الذين صمموك" + intent: + name: HassRespond + response: "لقد تم إنشائي من قبل المجتمع الرائع للبيت الذكي، والذي يتكون من عباقرة في جميع أنحاء العالم" From 3e6dd6eec3e89aae417061cd25781f8d6b34b67d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Sj=C3=B8gren?= Date: Fri, 8 Nov 2024 09:32:08 +0100 Subject: [PATCH 39/92] [DA]: Add binary_sensor_HassGetState (#1955) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [DA]: Add binary_sensor_HassGetState * fix: incorrect language in tests/da/binary_sensor_HassGetState.yaml * follow up on review * test(da): add more sentences to the binary_sensor_HassGetState tests * feat(da): update to handle names better. Should handle 'den anden garage dør' but not 'den anden garage døren'. --- sentences/da/_common.yaml | 40 +- sentences/da/binary_sensor_HassGetState.yaml | 919 ++++++++++++++ tests/da/_fixtures.yaml | 225 ++++ tests/da/binary_sensor_HassGetState.yaml | 1189 ++++++++++++++++++ 4 files changed, 2359 insertions(+), 14 deletions(-) create mode 100644 sentences/da/binary_sensor_HassGetState.yaml create mode 100644 tests/da/binary_sensor_HassGetState.yaml diff --git a/sentences/da/_common.yaml b/sentences/da/_common.yaml index 304450012d..a0a64035ba 100644 --- a/sentences/da/_common.yaml +++ b/sentences/da/_common.yaml @@ -110,15 +110,15 @@ lists: # binary_sensor bs_battery_states: values: - - in: "lav" + - in: "(lav[(e|t)]|flad[(e|t)])" out: "on" - - in: "normal" + - in: "normal[t]" out: "off" bs_battery_charging_states: values: - - in: "lader" + - in: "(lader|oplader)" out: "on" - - in: "lader ikke" + - in: "(lader|oplader) ikke" out: "off" bs_carbon_monoxide_states: values: @@ -128,7 +128,7 @@ lists: out: "off" bs_cold_states: values: - - in: "kold[t]" + - in: "kold([t]|[e])" out: "on" - in: "normal[t]" out: "off" @@ -176,7 +176,7 @@ lists: out: "off" bs_moisture_states: values: - - in: "våd[t]" + - in: "våd([t]|[e])" out: "on" - in: "tør[t]" out: "off" @@ -200,9 +200,9 @@ lists: out: "off" bs_plug_states: values: - - in: "(koblet til|sat i)" + - in: "(koblet til|sat i|sat til|tilkoblet|tilsluttet)" out: "on" - - in: "(ikke koblet til|ikke sat i)" + - in: "ikke (koblet til|sat i|sat til|tilkoblet|tilsluttet)" out: "off" bs_power_states: values: @@ -224,9 +224,9 @@ lists: out: "off" bs_running_states: values: - - in: "kører" + - in: "køre[r]" out: "on" - - in: "kører ikke" + - in: "køre[r] ikke" out: "off" bs_safety_states: values: @@ -248,9 +248,9 @@ lists: out: "off" bs_tamper_states: values: - - in: "(detekteret|pillet ved|registreret)" + - in: "(detekteret|klar|pillet ved|registreret)" out: "on" - - in: "(ikke detekteret|ikke pillet ved|ikke registreret)" + - in: "ikke (detekteret|klar|pillet ved|registreret)" out: "off" bs_update_states: values: @@ -278,10 +278,11 @@ expansion_rules: gardin: "gardin[(et|er|erne)]" i_på: "(i | på)" koldt_varmt: "(kold[t] | varm[t])" + koldt: "kold[(t|e)]" luk: "luk [for]" lys: "lys[(ene|et)]" lysstyrke: "{brightness}[%| procent]" - navn: "{name}[(en|et|n|t)]" + navn: "((den|det) {name}[s]|{name}[(en|ene|et|n|t|men|ten)][s])" område: "{area}[(en|et|n|t)]" persienne: "persienne[(n|r|rne)]" rullegardin: "rullegardin[(et|er|erne)]" @@ -289,7 +290,18 @@ expansion_rules: sluk: "sluk [for]" temperatur: "{temperature}[°| grader] [{temperature_unit}]" tænd: "tænd [for]" - åbn: "åbn [for]" + åbn: "(åben|åbn[e]) [for]" + nogen: "(nogen|nogle)" + enhed: "enhed[(en|er|erne)]" + hvor_mange: "hvor[ ]mange" + hvilke: "hvilke[(t|n)]" + er_nogen: "er [der] " + er_noget: "er [der] noget" + carbonmonoxid: "(carbonmonoxid|kulilte|kulmonoxid|kulos)" + carbonmonoxid_sensor: " sensorer[ne]" + gas_fundet: "er [der] [noget] gas (detekteret|fundet|registreret)" + gas_ikke_fundet: "er [der] ikke [noget] gas (detekteret|fundet|registreret)" + bevaegelses_sensor: "bevægelses[ ]sensorer[ne]" i: "(i|[oppe ]på)" skip_words: diff --git a/sentences/da/binary_sensor_HassGetState.yaml b/sentences/da/binary_sensor_HassGetState.yaml new file mode 100644 index 0000000000..7b8a29cefb --- /dev/null +++ b/sentences/da/binary_sensor_HassGetState.yaml @@ -0,0 +1,919 @@ +language: da +intents: + HassGetState: + data: + # https://www.home-assistant.io/integrations/binary_sensor/ + # Battery + - sentences: + - "er [batteri[et]] {bs_battery_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: battery + slots: + domain: binary_sensor + device_class: battery + + - sentences: + - "er batteri[er] {bs_battery_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: battery + + - sentences: + - "er alle batterier[ne] {bs_battery_states:state} [ ]" + response: all + slots: + domain: binary_sensor + device_class: battery + + - sentences: + - " batteri[er] er {bs_battery_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: battery + + - sentences: + - " batteri[er] er {bs_battery_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: battery + + # Battery charging + - sentences: + - "{bs_battery_charging_states:state} [battery] [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: battery_charging + slots: + domain: binary_sensor + device_class: battery_charging + + - sentences: + - "{bs_battery_charging_states:state} batteri[er] [ ]" + response: any + slots: + domain: binary_sensor + device_class: battery_charging + + - sentences: + - "{bs_battery_charging_states:state} [alle] batteri[er][ne] [ ]" + response: all + slots: + domain: binary_sensor + device_class: battery_charging + + - sentences: + - " batteri[er] {bs_battery_charging_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: battery_charging + + - sentences: + - " batteri[er] {bs_battery_charging_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: battery_charging + + # Carbon monoxide + - sentences: + - "er {bs_carbon_monoxide_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: carbon_monoxide + slots: + domain: binary_sensor + device_class: carbon_monoxide + + - sentences: + - "er [der] [] {bs_carbon_monoxide_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: carbon_monoxide + + - sentences: + - "er der [noget] [(detekteret|fundet|registreret)] [ ]" + - " (detekteret|fundet|registreret) [ ]" + response: any + slots: + domain: binary_sensor + device_class: carbon_monoxide + state: "on" + + - sentences: + - "er alle {bs_carbon_monoxide_states:state} [ ]" + response: all + slots: + domain: binary_sensor + device_class: carbon_monoxide + + - sentences: + - " er {bs_carbon_monoxide_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: carbon_monoxide + + - sentences: + - " er {bs_carbon_monoxide_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: carbon_monoxide + + # Cold + - sentences: + - "er {bs_cold_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: cold + slots: + domain: binary_sensor + device_class: cold + + - sentences: + - "er noget [ ]" + - " (detekteret|fundet|registreret) " + - " sensorer [ ]" + - " sensorer [ ]" + response: any + slots: + domain: binary_sensor + device_class: cold + state: "on" + + - sentences: + - " [sensorer] er [ ]" + - "hvad er [ ]" + response: which + slots: + domain: binary_sensor + device_class: cold + state: "on" + + - sentences: + - " [sensorer] er [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: cold + state: "on" + + # Connectivity + - sentences: + - "er {bs_connectivity_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: connectivity + slots: + domain: binary_sensor + device_class: connectivity + + - sentences: + - " {bs_connectivity_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: connectivity + + - sentences: + - "er alle [ne] {bs_connectivity_states:state} [ ]" + response: all + slots: + domain: binary_sensor + device_class: connectivity + + - sentences: + - " er {bs_connectivity_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: connectivity + + - sentences: + - " er {bs_connectivity_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: connectivity + + # Door + - sentences: + - "er {bs_door_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: door + slots: + domain: binary_sensor + device_class: door + + # Garage door + - sentences: + - "er {bs_garage_door_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: garage_door + slots: + domain: binary_sensor + device_class: garage_door + + # Gas + - sentences: + - "er {bs_gas_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: gas + slots: + domain: binary_sensor + device_class: gas + + - sentences: + - "er [der] [nogen] gas sensorer {bs_gas_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: gas + + - sentences: + - "er der gas [ ]" + - " " + response: any + slots: + domain: binary_sensor + device_class: gas + state: "on" + + - sentences: + - " " + response: any + slots: + domain: binary_sensor + device_class: gas + state: "off" + + - sentences: + - "er alle gas sensorer[ne] {bs_gas_states:state} [ ]" + response: all + slots: + domain: binary_sensor + device_class: gas + + - sentences: + - " gas sensorer er {bs_gas_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: gas + + - sentences: + - " gas sensorer er {bs_gas_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: gas + + # Heat + - sentences: + - "er {bs_heat_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: heat + slots: + domain: binary_sensor + device_class: heat + + - sentences: + - "er [der] noget [(som|der) er] varmt [ ]" + - "er [der] noget varmt [ ]" + - " varme sensorer [ ]" + response: any + slots: + domain: binary_sensor + device_class: heat + state: "on" + + - sentences: + - "hvad er varmt [ ]" + - " sensorer er varme [ ]" + response: which + slots: + domain: binary_sensor + device_class: heat + state: "on" + + - sentences: + - " (ting|sensorer) er varme [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: heat + state: "on" + + # Light + - sentences: + - "er {bs_light_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: light + slots: + domain: binary_sensor + device_class: light + + - sentences: + - "er (|noget) lys {bs_light_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: light + + - sentences: + - "er alle lys {bs_light_states:state} [ ]" + response: all + slots: + domain: binary_sensor + device_class: light + + - sentences: + - " lys er {bs_light_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: light + + - sentences: + - " lys er {bs_light_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: light + + # Lock + - sentences: + - "er {bs_lock_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: lock + slots: + domain: binary_sensor + device_class: lock + + # Moisture + - sentences: + - "er [sensoren] {bs_moisture_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: moisture + slots: + domain: binary_sensor + device_class: moisture + + - sentences: + - " (vand|fugt|læk|oversvømmelse) sensorer {bs_moisture_states:state} [ ]" + - "er (gulv[et]|vand|fugt|læk|oversvømmelses)[ ][sensoren] {bs_moisture_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: moisture + + - sentences: + - "er der (læk|oversvømmelse) [ ]" + - "er oversvømmet" + response: any + slots: + domain: binary_sensor + device_class: moisture + state: "on" + + - sentences: + - "er alle vand sensorer {bs_moisture_states:state} [ ]" + response: all + slots: + domain: binary_sensor + device_class: moisture + + - sentences: + - " vand sensorer er {bs_moisture_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: moisture + + - sentences: + - " vand sensorer er {bs_moisture_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: moisture + + # Motion + - sentences: + - "er {bs_motion_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: motion + slots: + domain: binary_sensor + device_class: motion + + - sentences: + - " {bs_motion_states:state} [ ]" + - "er bevægelse[s] {bs_motion_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: motion + + - sentences: + - "er der noget (der|som) bevæger sig [ ]" + - "er der (noget|) bevægelse[s] [ ]" + response: any + slots: + domain: binary_sensor + device_class: motion + state: "on" + + - sentences: + - "er alle bevægelse[s][ ]sensorer {bs_motion_states:state} [ ]" + response: all + slots: + domain: binary_sensor + device_class: motion + + - sentences: + - " er {bs_motion_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: motion + + - sentences: + - " er {bs_motion_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: motion + + # Occupancy + - sentences: + - "er {bs_occupancy_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: occupancy + slots: + domain: binary_sensor + device_class: occupancy + + - sentences: + - "er [der] [] optaget[ ]sensorer {bs_occupancy_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: occupancy + + - sentences: + - "er optaget detekteret [ ]" + - "er optaget registreret [ ]" + - "er noget optaget [ ]" + - "er optaget" + response: any + slots: + domain: binary_sensor + device_class: occupancy + state: "on" + + - sentences: + - "er alle optaget[ ]sensorer {bs_occupancy_states:state} [ ]" + response: all + slots: + domain: binary_sensor + device_class: occupancy + + - sentences: + - " optaget[ ]sensor[er] er {bs_occupancy_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: occupancy + + - sentences: + - " optaget[ ]sensor[er] er {bs_occupancy_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: occupancy + + # Opening + - sentences: + - "er {bs_opening_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: opening + slots: + domain: binary_sensor + device_class: opening + + - sentences: + - " åbning[er] {bs_opening_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: opening + + - sentences: + - "er alle åbning[er] {bs_opening_states:state} [ ]" + response: all + slots: + domain: binary_sensor + device_class: opening + + - sentences: + - " åbning[er] er {bs_opening_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: opening + + - sentences: + - " åbning[er] er {bs_opening_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: opening + + # Plug + - sentences: + - "er {bs_plug_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: plug + slots: + domain: binary_sensor + device_class: plug + + - sentences: + - "er {bs_plug_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: plug + + - sentences: + - "er alle {bs_plug_states:state} [ ]" + response: all + slots: + domain: binary_sensor + device_class: plug + + - sentences: + - " er {bs_plug_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: plug + + - sentences: + - " er {bs_plug_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: plug + + # Power + - sentences: + - "er {bs_power_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: power + slots: + domain: binary_sensor + device_class: power + + - sentences: + - " {bs_power_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: power + + - sentences: + - "er alle {bs_power_states:state} [ ]" + response: all + slots: + domain: binary_sensor + device_class: power + + - sentences: + - " er {bs_power_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: power + + - sentences: + - " er {bs_power_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: power + + # Presence + - sentences: + - "er {bs_presence_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: presence + slots: + domain: binary_sensor + device_class: presence + + - sentences: + - " {bs_presence_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: presence + + - sentences: + - "er alle {bs_presence_states:state} [ ]" + response: all + slots: + domain: binary_sensor + device_class: presence + + - sentences: + - " er {bs_presence_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: presence + + - sentences: + - " er {bs_presence_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: presence + + # Problem + - sentences: + - "er der [] problemer med [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: problem + slots: + domain: binary_sensor + device_class: problem + state: "on" + + # Running + - sentences: + - "{bs_running_states:state} [ ]" + - "er ved at {bs_running_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: running + slots: + domain: binary_sensor + device_class: running + + - sentences: + - "{bs_running_states:state} [ ]" + - "er ved at {bs_running_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: running + + - sentences: + - "er alle ved at {bs_running_states:state} [ ]" + - "{bs_running_states:state} alle [ ]" + response: all + slots: + domain: binary_sensor + device_class: running + + - sentences: + - " [er ved at] {bs_running_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: running + + - sentences: + - " [er ved at] {bs_running_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: running + + # Safety + - sentences: + - "er {bs_safety_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: safety + slots: + domain: binary_sensor + device_class: safety + + # Smoke + - sentences: + - "er {bs_smoke_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: smoke + slots: + domain: binary_sensor + device_class: smoke + + - sentences: + - " røg[ ](sensorer|detektorer) {bs_smoke_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: smoke + + - sentences: + - "er der røg " + response: any + slots: + domain: binary_sensor + device_class: smoke + state: "on" + + - sentences: + - "er alle røg[ ](sensorer|detektorer) {bs_smoke_states:state} [ ]" + response: all + slots: + domain: binary_sensor + device_class: smoke + + - sentences: + - " røg[ ](sensorer|detektorer) er {bs_smoke_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: smoke + + - sentences: + - " røg[ ](sensorer|detektorer) er {bs_smoke_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: smoke + + # Sound + - sentences: + - "er {bs_sound_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: sound + slots: + domain: binary_sensor + device_class: sound + + - sentences: + - " (støj|lyd) sensorer {bs_sound_states:state} [ ]" + response: any + slots: + domain: binary_sensor + device_class: sound + + - sentences: + - "er [der] noget (der|som) (larmer|støjer) [ ]" + - "er der (støj|larm) [ ]" + response: any + slots: + domain: binary_sensor + device_class: sound + state: "on" + + - sentences: + - "er alle (støj|lyd) sensorer {bs_sound_states:state} [ ]" + response: all + slots: + domain: binary_sensor + device_class: sound + + - sentences: + - " (støj|lyd) sensorer er {bs_sound_states:state} [ ]" + response: which + slots: + domain: binary_sensor + device_class: sound + + - sentences: + - " (støj|lyd) sensorer er {bs_sound_states:state} [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: sound + + # Tamper + - sentences: + - "er {bs_tamper_states:state} [ ]" + - "er der {bs_tamper_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: tamper + slots: + domain: binary_sensor + device_class: tamper + + # Update + - sentences: + - "er {bs_update_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: update + slots: + domain: binary_sensor + device_class: update + + - sentences: + - "er der [(firmware|software)] opdateringer [ ]" + response: any + slots: + domain: binary_sensor + device_class: update + state: "on" + + - sentences: + - " [(firmware|software)] opdateringer er (der|tilgængelige) [ ]" + response: which + slots: + domain: binary_sensor + device_class: update + state: "on" + + - sentences: + - " [(firmware|software)] opdateringer er (der|tilgængelige) [ ]" + response: how_many + slots: + domain: binary_sensor + device_class: update + state: "on" + + # Vibration + - sentences: + - "er {bs_vibration_states:state} [ ]" + - "{bs_vibration_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: vibration + slots: + domain: binary_sensor + device_class: vibration + + - sentences: + - "er der noget (der|som) vibrerer [ ]" + response: any + requires_context: + domain: binary_sensor + device_class: vibration + slots: + domain: binary_sensor + device_class: vibration + state: "on" + + # Window + - sentences: + - "(er|står) {bs_window_states:state} [ ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: window + slots: + domain: binary_sensor + device_class: window diff --git a/tests/da/_fixtures.yaml b/tests/da/_fixtures.yaml index 943c5d901e..5703525c58 100644 --- a/tests/da/_fixtures.yaml +++ b/tests/da/_fixtures.yaml @@ -65,5 +65,230 @@ entities: state: "14" attributes: unit_of_measurement: °C + + # https://www.home-assistant.io/integrations/binary_sensor/ + - name: "Telefon" + id: "binary_sensor.phone_battery" + state: + in: "normal" + out: "off" + attributes: + device_class: battery + + - name: "Telefon" + id: "binary_sensor.phone_battery_charging" + state: + in: "lader" + out: "on" + attributes: + device_class: battery_charging + + - name: "CO2" + id: "binary_sensor.co2" + area: "kitchen" + state: + in: "klar" + out: "off" + attributes: + device_class: carbon_monoxide + + - name: "Vandrør" + id: "binary_sensor.computer_cold" + state: + in: "normal" + out: "off" + attributes: + device_class: cold + + - name: "Telefon" + id: "binary_sensor.phone_connectivity" + state: + in: "forbundet" + out: "on" + attributes: + device_class: connectivity + + - name: "Kattelem" + id: "binary_sensor.pet_door" + state: + in: "lukket" + out: "off" + attributes: + device_class: door + + - name: "Anden garage dør" + id: "binary_sensor.garage_door" + state: + in: "lukket" + out: "off" + attributes: + device_class: garage_door + + - name: "Gas" + id: "binary_sensor.gas" + area: "kitchen" + state: + in: "klar" + out: "off" + attributes: + device_class: gas + + - name: "Computer" + id: "binary_sensor.computer_heat" + state: + in: "varm" + out: "on" + attributes: + device_class: heat + + - name: "Lys" + id: "binary_sensor.light" + state: + in: "ikke registreret" + out: "off" + attributes: + device_class: light + + - name: "Kattelem" + id: "binary_sensor.pet_door_lock" + state: + in: "ulåst" + out: "on" + attributes: + device_class: lock + + - name: "Køkken læk sensor" + id: "binary_sensor.water_sensor" + area: "kitchen" + state: + in: "tør" + out: "off" + attributes: + device_class: moisture + + - name: "Bevægelsessensor" + id: "binary_sensor.garage_motion" + area: "garage" + state: + in: "detekteret" + out: "on" + attributes: + device_class: motion + + - name: "Optagetsensor" + id: "binary_sensor.kitchen_occupancy" + area: "kitchen" + state: + in: "registreret" + out: "on" + attributes: + device_class: occupancy + + - name: "Skurdør" + id: "binary_sensor.shed_door_opening" + state: + in: "lukket" + out: "off" + attributes: + device_class: opening + + - name: "Telefon" + id: "binary_sensor.phone_plug" + state: + in: "tilsluttet" + out: "on" + attributes: + device_class: plug + + - name: "Hovedafbryder" + id: "binary_sensor.power" + state: + in: "tændt" + out: "on" + attributes: + device_class: power + + - name: "Telefon" + id: "binary_sensor.presence" + state: + in: "væk" + out: "off" + attributes: + device_class: presence + + - name: "Pet Feeder" + id: "binary_sensor.problem" + area: "kitchen" + state: + in: "ok" + out: "off" + attributes: + device_class: problem + + - name: "Vaskemaskine" + id: "binary_sensor.washer_running" + state: + in: "kører" + out: "on" + attributes: + device_class: running + + - name: "Vej" + id: "binary_sensor.road_safety" + state: + in: "sikker" + out: "off" + attributes: + device_class: safety + + - name: "Køkken røg" + id: "binary_sensor.kitchen_smoke" + area: "kitchen" + state: + in: "klar" + out: "off" + attributes: + device_class: smoke + + - name: "Sirene" + id: "binary_sensor.sound" + area: "garage" + state: + in: "detekteret" + out: "on" + attributes: + device_class: sound + + - name: "Småkagedåse" + id: "binary_sensor.cookie_stash_tamper" + state: + in: "pillet ved" + out: "off" + attributes: + device_class: tamper + + - name: "Telefon" + id: "binary_sensor.phone_update" + state: + in: "update available" + out: "on" + attributes: + device_class: update + + - name: "Telefon" + id: "binary_sensor.phone_vibration" + state: + in: "viberer ikke" + out: "off" + attributes: + device_class: vibration + + - name: "Skurvindue" + id: "binary_sensor.shed_window" + state: + in: "åben" + out: "on" + attributes: + device_class: window - name: "Party Mode" id: "scene.party_mode" diff --git a/tests/da/binary_sensor_HassGetState.yaml b/tests/da/binary_sensor_HassGetState.yaml new file mode 100644 index 0000000000..e8e6e542a8 --- /dev/null +++ b/tests/da/binary_sensor_HassGetState.yaml @@ -0,0 +1,1189 @@ +language: da +tests: + # Battery + - sentences: + - "er telefonen flad?" + - "er telefonens batteri fladt?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "battery" + name: "Telefon" + state: "on" + response: "Nej, normal" + + - sentences: + - "er nogle batterier flade?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery + state: "on" + response: "Nej" + + - sentences: + - "er alle batterierne lave??" + - "er alle batterierne flade?" + - "er alle batterier lave?" + - "er alle batterier flade?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery + state: "on" + response: "Nej, ikke Telefon" + + - sentences: + - "Hvilke batterier er flade?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery + state: "on" + response: "Ikke nogen" + + - sentences: + - "Hvormange batterier er flade?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery + state: "on" + response: "0" + + # Battery charging + - sentences: + - "oplader telefonen?" + - "lader telefonen?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "battery_charging" + name: "Telefon" + state: "on" + response: "Ja" + + - sentences: + - "Oplader nogle batterier?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery_charging + state: "on" + response: "Ja, Telefon" + + - sentences: + - "Oplader alle batterierne?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery_charging + state: "on" + response: "Ja" + + - sentences: + - "Hvilke batterier oplader?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery_charging + state: "on" + response: "Telefon" + + - sentences: + - "Hvormange batterier oplader?" + - "Hvor mange batterier lader?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery_charging + state: "on" + response: "1" + + # Carbon monoxide + - sentences: + - "er CO2 detekteret?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "carbon_monoxide" + name: "CO2" + state: "on" + response: "Nej, klar" + + - sentences: + - "er carbonmonoxid sensorerne registreret?" + - "er kulilte sensorerne fundet?" + - "er kulmonoxid sensorerne registreret?" + - "er kulos sensorerne detekteret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: carbon_monoxide + state: "on" + response: "Nej" + + - sentences: + - "er der carbonmonoxid i køkkenet?" + - "er der noget kulilte detekteret i køkkenet?" + - "er der noget kulilte fundet i køkkenet?" + intent: + name: HassGetState + slots: + area: "Køkken" + domain: binary_sensor + device_class: carbon_monoxide + state: "on" + response: "Nej" + + - sentences: + - "er alle carbonmonoxid sensorer detekteret?" + - "er alle kulmonoxid sensorer registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: carbon_monoxide + state: "on" + response: "Nej, ikke CO2" + + - sentences: + - "Hvilke carbonmonoxid sensorer er detekteret?" + - "Hvilke kulos sensorer er detekteret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: carbon_monoxide + state: "on" + response: "Ikke nogen" + + - sentences: + - "Hvormange carbonmonoxid sensorer er detekteret?" + - "Hvor mange kulmonoxid sensorer er detekteret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: carbon_monoxide + state: "on" + response: "0" + + # Cold + - sentences: + - "Er vandrør kolde?" + - "Er vandrørene kolde?" + - "Er vandrøret kolde?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "cold" + name: "Vandrør" + state: "on" + response: "Nej, normal" + + - sentences: + - "Er noget koldt?" + - "Er der nogle sensorer kolde?" + - "Er der nogen kolde sensorer?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: cold + state: "on" + response: "Nej" + + - sentences: + - "Hvad er koldt?" + - "Hvilke sensorer er kolde?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: cold + state: "on" + response: "Ikke nogen" + + - sentences: + - "Hvormange sensorer er kolde?" + - "Hvormange er kolde?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: cold + state: "on" + response: "0" + + # Connectivity + - sentences: + - "Er telefonen forbundet?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "connectivity" + name: "Telefon" + state: "on" + response: "Ja" + + - sentences: + - "er nogen enheder forbundet?" + - "er der nogle enheder forbundet?" + - "er der nogen enheder forbundet?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: connectivity + state: "on" + response: "Ja, Telefon" + + - sentences: + - "Er alle enheder forbundet?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: connectivity + state: "on" + response: "Ja" + + - sentences: + - "hvilke enheder er forbundet?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: connectivity + state: "on" + response: "Telefon" + + - sentences: + - "hvormange enheder er forbundet?" + - "hvor mange enheder er forbundet?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: connectivity + state: "on" + response: "1" + + # Door + - sentences: + - "er kattelemmen åben?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "door" + name: "Kattelem" + state: "on" + response: "Nej, lukket" + + # Garage door + - sentences: + - "Er den anden garage dør lukket?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "garage_door" + name: "Anden garage dør" + state: "off" + response: "Ja" + + # Gas + - sentences: + - "er gas detekteret?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "gas" + name: "Gas" + state: "on" + response: "Nej, klar" + + - sentences: + - "er der nogen gas sensorer registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: gas + state: "on" + response: "Nej" + + - sentences: + - "er der gas i køkkenet?" + - "er noget gas detekteret i køkkenet?" + - "er der noget gas detekteret i køkkenet?" + intent: + name: HassGetState + slots: + area: "Køkken" + domain: binary_sensor + device_class: gas + state: "on" + response: "Nej" + + - sentences: + - "er alle gas sensorer detekteret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: gas + state: "on" + response: "Nej, ikke Gas" + + - sentences: + - "Hvilke gas sensorer er fundet?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: gas + state: "on" + response: "Ikke nogen" + + - sentences: + - "hvormange gas sensorer er fundet?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: gas + state: "on" + response: "0" + + # Heat + - sentences: + - "Er computeren varm?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "heat" + name: "Computer" + state: "on" + response: "Ja" + + - sentences: + - "er noget varmt?" + - "er der noget som er varmt?" + - "er der noget der er varmt?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: heat + state: "on" + response: "Ja, Computer" + + - sentences: + - "hvad er varmt?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: heat + state: "on" + response: "Computer" + + - sentences: + - "hvormange ting er varme?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: heat + state: "on" + response: "1" + + # Light + - sentences: + - "er lys registreret?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "light" + name: "Lys" + state: "on" + response: "Nej, ikke registreret" + + - sentences: + - "Er nogle lys registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: light + state: "on" + response: "Nej" + + - sentences: + - "er alle lys registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: light + state: "on" + response: "Nej, ikke Lys" + + - sentences: + - "Hvilke lys er registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: light + state: "on" + response: "Ikke nogen" + + - sentences: + - "hvormange lys er registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: light + state: "on" + response: "0" + + # Lock + - sentences: + - "Er kattelemmen låst?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "lock" + name: "Kattelem" + state: "off" + response: "Nej, ulåst" + + # Moisture + - sentences: + - "er køkken læk sensoren våd?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "moisture" + name: "Køkken læk sensor" + state: "on" + response: "Nej, tør" + + - sentences: + - "er nogen vand sensorer våde?" + - "er gulvet vådt?" + - "er vand sensoren våd" + - "er der nogen læk?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: moisture + state: "on" + response: "Nej" + + - sentences: + - "er køkkent oversvømmet?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: moisture + state: "on" + area: "Køkken" + response: "Nej" + + - sentences: + - "er alle vand sensorer våde?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: moisture + state: "on" + response: "Nej, ikke Køkken læk sensor" + + - sentences: + - "hvilke vand sensorer er våde?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: moisture + state: "on" + response: "Ikke nogen" + + - sentences: + - "hvormange vand sensorer er våde?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: moisture + state: "on" + response: "0" + + # Motion + - sentences: + - "er bevægelsessensoren registreret i garagen?" + intent: + name: HassGetState + slots: + area: "Garage" + domain: "binary_sensor" + device_class: "motion" + name: "Bevægelsessensor" + state: "on" + response: "Ja" + + - sentences: + - "er der nogen bevægelsessensorer registreret?" + - "er nogle bevægelsessensorer registreret?" + - "er bevægelse detekteret?" + - "er der nogen bevægelse?" + - "er der noget der bevæger sig?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: motion + state: "on" + response: "Ja, Bevægelsessensor" + + - sentences: + - "er alle bevægelsessensorer registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: motion + state: "on" + response: "Ja" + + - sentences: + - "hvilke bevægelsessensorer er registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: motion + state: "on" + response: "Bevægelsessensor" + + - sentences: + - "hvormange bevægelsessensorer er registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: motion + state: "on" + response: "1" + + # Occupancy + - sentences: + - "er Optagetsensor registreret i køkken?" + intent: + name: HassGetState + slots: + area: "Køkken" + domain: "binary_sensor" + device_class: "occupancy" + name: "Optagetsensor" + state: "on" + response: "Ja" + + - sentences: + - "er der nogen optaget sensorer registreret?" + - "er noget optaget?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: occupancy + state: "on" + response: "Ja, Optagetsensor" + + - sentences: + - "er køkkent optaget?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: occupancy + state: "on" + area: "Køkken" + response: "Ja, Optagetsensor" + + - sentences: + - "er alle optagetsensorer registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: occupancy + state: "on" + response: "Ja" + + - sentences: + - "hvilke optagetsensorer er registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: occupancy + state: "on" + response: "Optagetsensor" + + - sentences: + - "Hvormange optagetsensorer er registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: occupancy + state: "on" + response: "1" + + # Opening + - sentences: + - "Er Skurdøren åben?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "opening" + name: "Skurdør" + state: "on" + response: "Nej, lukket" + + - sentences: + - "er nogle åbninger åbne?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: opening + state: "on" + response: "Nej" + + - sentences: + - "er alle åbninger åbne?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: opening + state: "on" + response: "Nej, ikke Skurdør" + + - sentences: + - "hvilke åbninger er åbne?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: opening + state: "on" + response: "Ikke nogen" + + - sentences: + - "hvormange åbninger er åbne?" + - "hvor mange åbninger er åbne?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: opening + state: "on" + response: "0" + + # Plug + - sentences: + - "Er telefonen ikke sat i?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "plug" + name: "Telefon" + state: "off" + response: "Nej, tilsluttet" + + - sentences: + - "er nogle enheder tilsluttet?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: plug + state: "on" + response: "Ja, Telefon" + + - sentences: + - "er alle enheder tilsluttet?" + - "er alle enheder sat til?" + - "er alle enheder sat i?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: plug + state: "on" + response: "Ja" + + - sentences: + - "hvilken enhed er tilsluttet?" + - "hvilke enheder er sat til?" + - "hvilke enheder er sat i?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: plug + state: "on" + response: "Telefon" + + - sentences: + - "hvor mange enheder er tilsluttet?" + - "hvor mange enheder er sat til?" + - "hvor mange enheder er sat i?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: plug + state: "on" + response: "1" + + # Power + - sentences: + - "Er Hovedafbryderen tændt?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "power" + name: "Hovedafbryder" + state: "on" + response: "Ja" + + - sentences: + - "Er nogle enheder tændt?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: power + state: "on" + response: "Ja, Hovedafbryder" + + - sentences: + - "Er alle enheder tændt?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: power + state: "on" + response: "Ja" + + - sentences: + - "Hvilken enheder er tændt?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: power + state: "on" + response: "Hovedafbryder" + + - sentences: + - "Hvor mange enheder er tændt?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: power + state: "on" + response: "1" + + # Presence + - sentences: + - "Er telefonen hjemme?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "presence" + name: "Telefon" + state: "on" + response: "Nej, væk" + + - sentences: + - "Er nogle enheder hjemme?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: presence + state: "on" + response: "Nej" + + - sentences: + - "Er alle enheder hjemme?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: presence + state: "on" + response: "Nej, ikke Telefon" + + - sentences: + - "Hvilke enheder er hjemme?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: presence + state: "on" + response: "Ikke nogen" + + - sentences: + - "Hvor mange enheder er hjemme?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: presence + state: "on" + response: "0" + + # Problem + - sentences: + - "Er der nogle problemer med pet feeder?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "problem" + name: "Pet Feeder" + state: "on" + response: "Nej, ok" + + # Running + - sentences: + - "Kører vaskemaskinen?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "running" + name: "Vaskemaskine" + state: "on" + response: "Ja" + + - sentences: + - "kører nogle enheder?" + - "Er nogen enheder ved at køre?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: running + state: "on" + response: "Ja, Vaskemaskine" + + - sentences: + - "kører alle enheder?" + - "Er alle enheder ved at køre?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: running + state: "on" + response: "Ja" + + - sentences: + - "hvilke enheder kører?" + - "hvilke enheder er ved at køre?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: running + state: "on" + response: "Vaskemaskine" + + - sentences: + - "hvor mange enheder kører?" + - "hvormange enheder er ved at køre?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: running + state: "on" + response: "1" + + # Safety + - sentences: + - "er vejen sikker?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "safety" + name: "Vej" + state: "off" + response: "Ja" + + # Smoke + - sentences: + - "er køkken røg registreret?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "smoke" + name: "Køkken røg" + state: "on" + response: "Nej, klar" + + - sentences: + - "er nogle røgdetektorer registreret?" + - "er nogle røg sensorer registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: smoke + state: "on" + response: "Nej" + + - sentences: + - "er der røg i køkkenet?" + intent: + name: HassGetState + slots: + area: "Køkken" + domain: "binary_sensor" + device_class: "smoke" + state: "on" + response: "Nej" + + - sentences: + - "er alle røgdetektorer registreret?" + - "er alle røg sensorer registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: smoke + state: "on" + response: "Nej, ikke Køkken røg" + + - sentences: + - "hvilke røgdetektorer er registreret?" + - "hvilke røg sensorer er registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: smoke + state: "on" + response: "Ikke nogen" + + - sentences: + - "hvormange røgdetektorer er registreret?" + - "hvormange røg sensorer er registreret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: smoke + state: "on" + response: "0" + + # Sound + - sentences: + - "er sirenen detekteret?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "sound" + name: "Sirene" + state: "on" + response: "Ja" + + - sentences: + - "er nogle lyd sensorer detekteret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: sound + state: "on" + response: "Ja, Sirene" + + - sentences: + - "er der støj i garagen?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: sound + state: "on" + area: "Garage" + response: "Ja, Sirene" + + - sentences: + - "er alle lyd sensorer detekteret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: sound + state: "on" + response: "Ja" + + - sentences: + - "hvilke lyd sensorer er detekteret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: sound + state: "on" + response: "Sirene" + + - sentences: + - "hvormange lyd sensorer er detekteret?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: sound + state: "on" + response: "1" + + # Tamper + - sentences: + - "er Småkagedåsen ikke pillet ved?" + - "er der ikke pillet ved småkagedåsen?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "tamper" + name: "Småkagedåse" + state: "off" + response: "Ja" + + # Update + - sentences: + - "er telefonen opdateret?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "update" + name: "Telefon" + state: "off" + response: "Nej, update available" + + - sentences: + - "er der nogle opdateringer?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: update + state: "on" + response: "Ja, Telefon" + + - sentences: + - "hvilke opdateringer er der?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: update + state: "on" + response: "Telefon" + + - sentences: + - "hvor mange opdateringer er der?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: update + state: "on" + response: "1" + + # Vibration + - sentences: + - "vibrerer telefonen?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "vibration" + name: "Telefon" + state: "on" + response: "Nej, viberer ikke" + + - sentences: + - "er der noget der vibrerer?" + - "er der noget som vibrerer?" + intent: + name: HassGetState + context: + domain: binary_sensor + device_class: vibration + slots: + domain: "binary_sensor" + device_class: "vibration" + state: "on" + response: "Nej" + + # Window + - sentences: + - "er skurvinduet åben?" + - "står skurvinduet åbent?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "window" + name: "Skurvindue" + state: "on" + response: "Ja" From 8dc85e8539e4ea916884ce5f612d0b4bfed1299a Mon Sep 17 00:00:00 2001 From: Dawn3888 <123061968+Dawn3888@users.noreply.github.com> Date: Fri, 8 Nov 2024 09:37:41 +0100 Subject: [PATCH 40/92] update to language da (#2250) * updates for common in DA * update to language da --------- Co-authored-by: Malene Trab --- responses/da/HassTurnOn.yaml | 2 ++ sentences/da/_common.yaml | 46 ++++++++++++++++++++++++++---- sentences/da/light_HassTurnOn.yaml | 25 ++++++++++++++-- tests/da/light_HassTurnOn.yaml | 7 ++--- 4 files changed, 69 insertions(+), 11 deletions(-) diff --git a/responses/da/HassTurnOn.yaml b/responses/da/HassTurnOn.yaml index 549da7ed76..10938f1b4d 100644 --- a/responses/da/HassTurnOn.yaml +++ b/responses/da/HassTurnOn.yaml @@ -4,6 +4,8 @@ responses: HassTurnOn: default: "Tændte {{ slots.name }}" lights_area: "Tændte lys i {{ slots.area }}" + lights_floor: "Tændte lys på {{ slots.floor }}" + light_all: "Tændte alle lys" fans_area: "Tændte blæsere i {{ slots.area }}" cover: "Åbnede {{ slots.name }}" cover_area: "Åbnede {{ slots.area }}" diff --git a/sentences/da/_common.yaml b/sentences/da/_common.yaml index a0a64035ba..1b6528643b 100644 --- a/sentences/da/_common.yaml +++ b/sentences/da/_common.yaml @@ -1,12 +1,46 @@ language: da responses: errors: + # General errors / Generelle fejl no_intent: "Undskyld, det forstod jeg ikke" - no_area: "Området med navnet {{ area }} findes ikke" - no_domain_in_area: "{{ domain }} findes ikke i området {{ area }}" - no_device_class_in_area: "{{ device_class }} findes ikke i området {{ area }}" - no_entity: "{{ entity }} findes ikke" handle_error: "Der opstod en uventet fejl under håndtering af hensigten" + + # Errors for when user is not logged in / Fejl når brugeren ikke er logget ind + no_area: "Undskyld, jeg kan ikke finde området kaldet {{ area }}" + no_floor: "Undskyld, jeg kan ikke finde etagen kaldet {{ floor }}" + no_domain: "Undskyld, jeg kender ikke til {{ domain }}" + no_domain_in_area: "Undskyld, jeg kan ikke finde {{ domain }} i området {{ area }}" + no_domain_in_floor: "Undskyld, jeg kan ikke finde {{ domain }} på etagen {{ floor }}" + no_device_class: "Undskyld, jeg kender ikke til {{ device_class }}" + no_device_class_in_area: "Undskyld, jeg kan ikke finde {{ device_class }} i området {{ area }}" + no_device_class_in_floor: "Undskyld, jeg kan ikke finde {{ device_class }} på etagen {{ floor }}" + no_entity: "Undskyld, jeg kan ikke finde {{ entity }}" + no_entity_in_area: "Undskyld jeg kan ikke finde {{ entity }} i området {{ area }}" + no_entity_in_floor: "Undskyld jeg kan ikke finde {{ entity }} på etagen {{ floor}}" + entity_wrong_state: "Undskyld, ingen enhed er {{ state | lower }}" + feature_not_supported: "Undskyld, ingen enhed har supprt for disse funktioner" + + # Errors for when user is logged in and we can give more information + no_entity_exposed: "Undskyld, {{ entity }} er ikke eksponeret" + no_entity_in_area_exposed: "Undskyld, {{ entity }} i {{ area }} området er ikke eksponeret" + no_entity_in_floor_exposed: "Undskyld, {{ entity }} på {{ floor }} etage er ikke eksponeret" + no_domain_exposed: "Undskyld, ingen {{ domain }} er eksponeret" + no_domain_in_area_exposed: "Undskyld, ingen {{ domain }} i {{ area }} området er eksponeret" + no_domain_in_floor_exposed: "Undskyld, ingen {{ domain }} på {{ floor }} etage er eksponeret" + no_device_class_exposed: "Undskyld, ingen {{ device_class }} er eksponeret" + no_device_class_in_area_exposed: "Undskyld, ingen {{ device_class }} i {{ area }} omrdået er eksponeret" + no_device_class_in_floor_exposed: "Undskyld, ingen {{ device_class }} på {{ floor }} etage er eksponeret" + + # Used when multiple (exposed) devices have the same name + duplicate_entities: "Undskyld, der er flere enheder med navnet {{ entity }}" + duplicate_entities_in_area: "Undskyld, er er flere enheder med navnet {{ entity }} i {{ area }} området" + duplicate_entities_in_floor: "Undskyld, er er flere enheder med navnet {{ entity }} på {{ floor }} etage" + + # Errors for timers / Fejl for nedtælling + timer_not_found: "Undskyld, den timer kunne jeg ikke finde" + multiple_timers_matched: "Undskyld, jeg kan ikke håndtere flere timer" + no_timer_support: "Undskyld, timer er ikk eunderstøttet på denne enhed" + lists: brightness: range: @@ -272,8 +306,9 @@ lists: out: "closed" expansion_rules: - al: "(alle | alt)" + al: "(alle | alt | samtlige)" blæser: "blæser[(e|en|ne)]" + etage: "{area}[(n)]" garagedør: "garage(dør|port)[(en|e|ene)]" gardin: "gardin[(et|er|erne)]" i_på: "(i | på)" @@ -288,6 +323,7 @@ expansion_rules: rullegardin: "rullegardin[(et|er|erne)]" skodde: "skodde[(n|r|rne)]" sluk: "sluk [for]" + timer: "(timer | nedtælling)" temperatur: "{temperature}[°| grader] [{temperature_unit}]" tænd: "tænd [for]" åbn: "(åben|åbn[e]) [for]" diff --git a/sentences/da/light_HassTurnOn.yaml b/sentences/da/light_HassTurnOn.yaml index 2446ab20c4..8b593c0f5c 100644 --- a/sentences/da/light_HassTurnOn.yaml +++ b/sentences/da/light_HassTurnOn.yaml @@ -2,9 +2,30 @@ language: da intents: HassTurnOn: data: + - sentences: + - " ( | [ ] | | [ ])" + requires_context: + domain: "light" + + # Turn on all lights in a area - sentences: - " [] " - " [] " + response: "lights_area" + slots: + domain: "light" + + # Turn on all lights in the home + - sentences: + - " overalt" + - " " + response: "light_all" + slots: + domain: "light" + + # Turn on all lights on a floor + - sentences: + - " [] " + response: "lights_floor" slots: - domain: light - name: all + domain: "light" diff --git a/tests/da/light_HassTurnOn.yaml b/tests/da/light_HassTurnOn.yaml index debd50a2ab..8058da5584 100644 --- a/tests/da/light_HassTurnOn.yaml +++ b/tests/da/light_HassTurnOn.yaml @@ -16,7 +16,7 @@ tests: slots: area: Køkken domain: light - name: all + - sentences: - tænd lys på badeværelse - tænd lyset på badeværelset @@ -29,7 +29,7 @@ tests: slots: area: Badeværelse domain: light - name: all + - sentences: - tænd lyset i saunaen intent: @@ -37,7 +37,7 @@ tests: slots: area: Sauna domain: light - name: all + - sentences: - tænd lyset i stuen intent: @@ -45,4 +45,3 @@ tests: slots: area: Stue domain: light - name: all From 9e546d5edf2f2dbb13d39065405da9f59995efd2 Mon Sep 17 00:00:00 2001 From: dontinelli <73341522+dontinelli@users.noreply.github.com> Date: Fri, 8 Nov 2024 18:57:37 +0100 Subject: [PATCH 41/92] [de-CH] Add intents for timer, date and time (#2482) * Add intents for timer, date and time * Tidy up --- responses/de-CH/HassCancelTimer.yaml | 5 + responses/de-CH/HassDecreaseTimer.yaml | 5 + responses/de-CH/HassGetCurrentDate.yaml | 29 +++++ responses/de-CH/HassGetCurrentTime.yaml | 8 ++ responses/de-CH/HassIncreaseTimer.yaml | 5 + responses/de-CH/HassPauseTimer.yaml | 5 + responses/de-CH/HassStartTimer.yaml | 6 + responses/de-CH/HassTimerStatus.yaml | 93 +++++++++++++++ responses/de-CH/HassUnpauseTimer.yaml | 5 + sentences/de-CH/_common.yaml | 67 +++++++++-- .../de-CH/homeassistant_HassCancelTimer.yaml | 12 ++ .../homeassistant_HassDecreaseTimer.yaml | 11 ++ .../homeassistant_HassGetCurrentDate.yaml | 8 ++ .../homeassistant_HassGetCurrentTime.yaml | 8 ++ .../homeassistant_HassIncreaseTimer.yaml | 19 +++ .../de-CH/homeassistant_HassPauseTimer.yaml | 12 ++ .../de-CH/homeassistant_HassStartTimer.yaml | 16 +++ .../de-CH/homeassistant_HassTimerStatus.yaml | 19 +++ .../de-CH/homeassistant_HassUnpauseTimer.yaml | 12 ++ tests/de-CH/_fixtures.yaml | 28 +++++ .../de-CH/homeassistant_HassCancelTimer.yaml | 38 ++++++ .../homeassistant_HassDecreaseTimer.yaml | 41 +++++++ .../homeassistant_HassGetCurrentDate.yaml | 10 ++ .../homeassistant_HassGetCurrentTime.yaml | 9 ++ .../homeassistant_HassIncreaseTimer.yaml | 46 ++++++++ tests/de-CH/homeassistant_HassPauseTimer.yaml | 36 ++++++ tests/de-CH/homeassistant_HassStartTimer.yaml | 111 ++++++++++++++++++ .../de-CH/homeassistant_HassTimerStatus.yaml | 44 +++++++ .../de-CH/homeassistant_HassUnpauseTimer.yaml | 37 ++++++ 29 files changed, 734 insertions(+), 11 deletions(-) create mode 100644 responses/de-CH/HassCancelTimer.yaml create mode 100644 responses/de-CH/HassDecreaseTimer.yaml create mode 100644 responses/de-CH/HassGetCurrentDate.yaml create mode 100644 responses/de-CH/HassGetCurrentTime.yaml create mode 100644 responses/de-CH/HassIncreaseTimer.yaml create mode 100644 responses/de-CH/HassPauseTimer.yaml create mode 100644 responses/de-CH/HassStartTimer.yaml create mode 100644 responses/de-CH/HassTimerStatus.yaml create mode 100644 responses/de-CH/HassUnpauseTimer.yaml create mode 100644 sentences/de-CH/homeassistant_HassCancelTimer.yaml create mode 100644 sentences/de-CH/homeassistant_HassDecreaseTimer.yaml create mode 100644 sentences/de-CH/homeassistant_HassGetCurrentDate.yaml create mode 100644 sentences/de-CH/homeassistant_HassGetCurrentTime.yaml create mode 100644 sentences/de-CH/homeassistant_HassIncreaseTimer.yaml create mode 100644 sentences/de-CH/homeassistant_HassPauseTimer.yaml create mode 100644 sentences/de-CH/homeassistant_HassStartTimer.yaml create mode 100644 sentences/de-CH/homeassistant_HassTimerStatus.yaml create mode 100644 sentences/de-CH/homeassistant_HassUnpauseTimer.yaml create mode 100644 tests/de-CH/homeassistant_HassCancelTimer.yaml create mode 100644 tests/de-CH/homeassistant_HassDecreaseTimer.yaml create mode 100644 tests/de-CH/homeassistant_HassGetCurrentDate.yaml create mode 100644 tests/de-CH/homeassistant_HassGetCurrentTime.yaml create mode 100644 tests/de-CH/homeassistant_HassIncreaseTimer.yaml create mode 100644 tests/de-CH/homeassistant_HassPauseTimer.yaml create mode 100644 tests/de-CH/homeassistant_HassStartTimer.yaml create mode 100644 tests/de-CH/homeassistant_HassTimerStatus.yaml create mode 100644 tests/de-CH/homeassistant_HassUnpauseTimer.yaml diff --git a/responses/de-CH/HassCancelTimer.yaml b/responses/de-CH/HassCancelTimer.yaml new file mode 100644 index 0000000000..76c6c5c787 --- /dev/null +++ b/responses/de-CH/HassCancelTimer.yaml @@ -0,0 +1,5 @@ +language: de-CH +responses: + intents: + HassCancelTimer: + default: "Timer abbroche" diff --git a/responses/de-CH/HassDecreaseTimer.yaml b/responses/de-CH/HassDecreaseTimer.yaml new file mode 100644 index 0000000000..753086c794 --- /dev/null +++ b/responses/de-CH/HassDecreaseTimer.yaml @@ -0,0 +1,5 @@ +language: de-CH +responses: + intents: + HassDecreaseTimer: + default: "Timer aapasst" diff --git a/responses/de-CH/HassGetCurrentDate.yaml b/responses/de-CH/HassGetCurrentDate.yaml new file mode 100644 index 0000000000..a393120911 --- /dev/null +++ b/responses/de-CH/HassGetCurrentDate.yaml @@ -0,0 +1,29 @@ +language: de-CH +responses: + intents: + HassGetCurrentDate: + default: > + {% set months = { + 1: 'Jänner', + 2: 'Februar', + 3: 'März', + 4: 'Apriu', + 5: 'Mei', + 6: 'Juni', + 7: 'Juli', + 8: 'Ouguscht', + 9: 'Septämber', + 10: 'Oktober', + 11: 'Novämber', + 12: 'Dezämber', + } %} + {% set weekday = [ + 'Mäntig', + 'Zyschtig', + 'Midwuch', + 'Donnschtig', + 'Frytig', + 'Samschtig', + 'Sunntig' + ] %} + Es isch {{ weekday[slots.date.weekday()] }} der {{ slots.date.day }}. {{ months[slots.date.month] }} {{ slots.date.year }} diff --git a/responses/de-CH/HassGetCurrentTime.yaml b/responses/de-CH/HassGetCurrentTime.yaml new file mode 100644 index 0000000000..29a66708da --- /dev/null +++ b/responses/de-CH/HassGetCurrentTime.yaml @@ -0,0 +1,8 @@ +language: de-CH +responses: + intents: + HassGetCurrentTime: + default: > + {% set hour_str = '{0:02d}'.format(slots.time.hour) %} + {% set minute_str = '{0:02d}'.format(slots.time.minute) %} + Es isch {{ hour_str }}:{{ minute_str }} diff --git a/responses/de-CH/HassIncreaseTimer.yaml b/responses/de-CH/HassIncreaseTimer.yaml new file mode 100644 index 0000000000..496537174a --- /dev/null +++ b/responses/de-CH/HassIncreaseTimer.yaml @@ -0,0 +1,5 @@ +language: de-CH +responses: + intents: + HassIncreaseTimer: + default: "Timer aapasst" diff --git a/responses/de-CH/HassPauseTimer.yaml b/responses/de-CH/HassPauseTimer.yaml new file mode 100644 index 0000000000..49d7b21401 --- /dev/null +++ b/responses/de-CH/HassPauseTimer.yaml @@ -0,0 +1,5 @@ +language: de-CH +responses: + intents: + HassPauseTimer: + default: "Timer pousiert" diff --git a/responses/de-CH/HassStartTimer.yaml b/responses/de-CH/HassStartTimer.yaml new file mode 100644 index 0000000000..855e3c3073 --- /dev/null +++ b/responses/de-CH/HassStartTimer.yaml @@ -0,0 +1,6 @@ +language: de-CH +responses: + intents: + HassStartTimer: + default: "Timer gschtartet" + command: "Guet, wird i mache" diff --git a/responses/de-CH/HassTimerStatus.yaml b/responses/de-CH/HassTimerStatus.yaml new file mode 100644 index 0000000000..d8feb80145 --- /dev/null +++ b/responses/de-CH/HassTimerStatus.yaml @@ -0,0 +1,93 @@ +language: de-CH +responses: + intents: + HassTimerStatus: + default: | + {% set num_timers = slots.timers | length %} + {% set active_timers = slots.timers | selectattr('is_active') | list %} + {% set num_active_timers = active_timers | length %} + {% set paused_timers = slots.timers | rejectattr('is_active') | list %} + {% set num_paused_timers = paused_timers | length %} + {% set next_timer = None %} + + {% if num_timers == 0: %} + Ke Timer. + {% elif num_active_timers == 0: %} + {# No active timers #} + {% if num_paused_timers == 1: %} + {% set next_timer = paused_timers[0] %} + Dr Timer isch pousiert. + {% else: %} + {{ num_paused_timers }} Timer sy pousiert. + {% endif %} + {% else: %} + {# At least one active timer #} + {% if num_active_timers == 1: %} + {% set next_timer = active_timers[0] %} + {% else: %} + {# Get active timer that will finish soonest #} + {% set sorted_timers = active_timers | sort(attribute='total_seconds_left') %} + {% set next_timer = sorted_timers[0] %} + {{ num_active_timers }} loufendi Timer. + {% endif %} + + {% if num_paused_timers == 1: %} + 1 pousierte Timer. + {% elif num_paused_timers > 0: %} + {{ num_paused_timers }} pousierti Timer. + {% endif %} + {% endif %} + + {% if next_timer: %} + {# At least one active timer #} + Es sy no + {% if (next_timer.rounded_hours_left == 1) and (next_timer.rounded_minutes_left > 0): %} + 1 Schtung und {{ next_timer.rounded_minutes_left }} Minute + {% elif (next_timer.rounded_hours_left == 1): %} + 1 Schtung + {% elif (next_timer.rounded_hours_left > 1) and (next_timer.rounded_minutes_left > 0): %} + {{ next_timer.rounded_hours_left }} Schtung und {{ next_timer.rounded_minutes_left }} Minute + {% elif (next_timer.rounded_hours_left > 1): %} + {{ next_timer.rounded_hours_left }} Schtung + {% elif (next_timer.rounded_minutes_left == 1) and (next_timer.rounded_seconds_left > 0): %} + 1 Minute und {{ next_timer.rounded_seconds_left }} Sekunde + {% elif (next_timer.rounded_minutes_left == 1): %} + 1 Minute + {% elif (next_timer.rounded_minutes_left > 1) and (next_timer.rounded_seconds_left > 0): %} + {{ next_timer.rounded_minutes_left }} Minute und {{ next_timer.rounded_seconds_left }} Sekunde + {% elif (next_timer.rounded_minutes_left > 1): %} + {{ next_timer.rounded_minutes_left }} Minute + {% elif (next_timer.rounded_seconds_left == 1): %} + 1 Sekunde + {% elif (next_timer.rounded_seconds_left > 1): %} + {{ next_timer.rounded_seconds_left }} Sekunde + {% endif %} + + {% if num_timers > 1: %} + {# Give some extra information to disambiguate #} + vo ursprünglech + {% if (next_timer.start_hours > 0) and (next_timer.start_minutes > 0): %} + {{ next_timer.start_hours }} Schtung und {{ next_timer.start_minutes }} Minute + {% elif (next_timer.start_hours > 0): %} + {{ next_timer.start_hours }} Schtung + {% elif (next_timer.start_minutes > 0) and (next_timer.start_seconds > 0): %} + {{ next_timer.start_minutes }} Minute und {{ next_timer.start_seconds }} Sekunde + {% elif (next_timer.start_minutes > 0): %} + {{ next_timer.start_minutes }} Minute + {% elif (next_timer.start_seconds > 0): %} + {{ next_timer.start_seconds }} Sekunde + {% endif %} + + vom Timer + + {% if next_timer.name: %} + {{ next_timer.name }} + {% elif next_timer.area: %} + {{ next_timer.area }} + {% endif %} + + übrig. + {% else: %} + übrig. + {% endif %} + {% endif %} diff --git a/responses/de-CH/HassUnpauseTimer.yaml b/responses/de-CH/HassUnpauseTimer.yaml new file mode 100644 index 0000000000..687aebea13 --- /dev/null +++ b/responses/de-CH/HassUnpauseTimer.yaml @@ -0,0 +1,5 @@ +language: de-CH +responses: + intents: + HassUnpauseTimer: + default: "Timer wider gschtartet" diff --git a/sentences/de-CH/_common.yaml b/sentences/de-CH/_common.yaml index f1b256a2e4..147aa2aa42 100644 --- a/sentences/de-CH/_common.yaml +++ b/sentences/de-CH/_common.yaml @@ -138,24 +138,69 @@ lists: from: 0 to: 100 + timer_seconds: + range: + from: 1 + to: 100 + timer_minutes: + range: + from: 1 + to: 100 + timer_hours: + range: + from: 1 + to: 100 + timer_half: + values: + - in: "[e ]haub[i]" + out: 30 + - in: "1/2" + out: 30 + - in: "0(.|,)5" + out: 30 + timer_quarter: + values: + - in: "viertu" + out: 15 + - in: "1/4" + out: 15 + - in: "0(.|,)25" + out: 15 + timer_name: + wildcard: true + timer_command: + wildcard: true + expansion_rules: - name: "[(d'[ ]|d |de |dr |der |die |ds |s )]{name}" - area: "[(idr|i dr|im|ir|ide|idä|i dä|i de|i dr|i der)] {area}" - a_y: "(a|aa|y|yy|ii|ih)" ab_us: "(ab|us|uus|uis)" - cover: "[(d'[' ']|d |alli |aui )]([Sunne]s[ch]tore|Vorhang|Vorhäng|Tür[e]|Tor|Abdeckig[e]|Fänschter[l(a|ä)de])" - what_is: "(was isch|wasch)" + area: "[(idr|i dr|im|ir|ide|idä|i dä|i de|i dr|i der) ]{area}" + a_y: "(a|aa|y|yy|ii|ih)" brightness: "{brightness}[(%| %| Proz(e|ä)nt)]" - position: "{position}[[ ]%| %| Proz(e|ä)nt]" - temp: "{temperature} [Grad] [{temperature_unit}]" - #schliessen: "(tue {name} (zue|abe)|mach {name} (zue|abe)|schliess {name})" - steu: "(Scha(l|u)t|S[ch]te(ll|u)|Mach)" - mach: "(mach|tue|la[s])" + cover: "[(d'[' ']|d |alli |aui )]([Sunne]s[ch]tore|Vorhang|Vorhäng|Tür[e]|Tor|Abdeckig[e]|Fänschter[l(a|ä)de])" + Geräte: "([(d'[ ]|d |alli |aui )](Grät|Entitäte|Entitätä))" Liechter: "([(d'[ ]|d |alli |aui )]Liechter|[(d'[ ]|d |alli |aui )]Lampä|[(d'[ ]|d |alli |aui )]Lampe|[(d'[ ]|d |alli |aui )]Lampäne)" Liecht: "([(ds|s)] Liecht|[(d |d'[ ])]Lampe|[(d |d'[ ])]Lampä)" - Geräte: "([(d'[ ]|d |alli |aui )](Grät|Entitäte|Entitätä))" + mach: "(mach|tue|la[s])" + name: "[(d'[ ]|d |de |dr |der |die |ds |s )]{name}" + position: "{position}[[ ]%| %| Proz(e|ä)nt]" + steu: "(Scha(l|u)t|S[ch]te(ll|u)|Mach)" + temp: "{temperature} [Grad] [{temperature_unit}]" + what_is: "(was isch|wasch)" volume: "{volume:volume_level}[[ ]%| %| Proz(e|ä)nt]" + # Timers + timer: "(Timer|Wecker|S[ch]top[p]uhr)" + timer_set: "(start|set|create)" + timer_duration_seconds: "{timer_seconds:seconds} Sekunde" + timer_duration_minutes: "({timer_minutes:minutes} Minute[ (u|und){timer_seconds:seconds} Sekunde])|({timer_minutes:minutes} [(u|und)][ (e|ei)] {timer_half:seconds} Minute)|([(E|Ei)] {timer_half:seconds} Minute)" + timer_duration_hours: "({timer_hours:hours} S[ch]tu(nd[e]|ng)[ [(u|und) ]{timer_minutes:minutes} Minute][ [(u|und) ]{timer_seconds:seconds} Sekunde])|({timer_hours:hours} [(u|und)][ e] {timer_half:minutes} S[ch]tu(nd[e]|ng))|([(E|Ei)] {timer_half:minutes} S[ch]tu(nd[e]|ng))" + timer_duration: "||" + + timer_start_seconds: "{timer_seconds:start_seconds} Sekunde" + timer_start_minutes: "{timer_minutes:start_minutes} Minute[ [und ]{timer_seconds:start_seconds} Sekunde]" + timer_start_hours: "{timer_hours:start_hours} S[ch]tu(nd[e]|ng)[ [(u|und) ]{timer_minutes:start_minutes} minute[s]][ [(u|und) ]{timer_seconds:start_seconds} Sekunde]" + timer_start: "||" + skip_words: - "bitte" - "chönntisch" diff --git a/sentences/de-CH/homeassistant_HassCancelTimer.yaml b/sentences/de-CH/homeassistant_HassCancelTimer.yaml new file mode 100644 index 0000000000..983e779e27 --- /dev/null +++ b/sentences/de-CH/homeassistant_HassCancelTimer.yaml @@ -0,0 +1,12 @@ +language: de-CH +intents: + HassCancelTimer: + data: + - sentences: + - "(Stop[p]|Haut|Brich) [(d[e][r]|m(y|i)) ][ a[a][b]]" + - "(Stop[p]|Haut|Brich) [(d[e][r]|m(y|i)) ] [ a[a][b]]" + - "(Stop[p]|Haut|Brich) [(d[e][r]|m(y|i)) ] (für[ am]|vo[m]) [ a[a][b]]" + - "(Stop[p]|Haut|Brich) [(d[e][r]|m(y|i)) ] [ a[a][b]]" + - "(Stop[p]|Haut|Brich) [(d[e][r]|m(y|i)) ][-| ][ a[a][b]]" + - "(Stop[p]|Haut|Brich) [(d[e][r]|m(y|i)) ]{timer_name:name}[-| ][ a[a][b]]" + - "(Stop[p]|Haut|Brich) [(d[e][r]|m(y|i)) ] {timer_name:name}[ a[a][b]]" diff --git a/sentences/de-CH/homeassistant_HassDecreaseTimer.yaml b/sentences/de-CH/homeassistant_HassDecreaseTimer.yaml new file mode 100644 index 0000000000..f7a78bbc30 --- /dev/null +++ b/sentences/de-CH/homeassistant_HassDecreaseTimer.yaml @@ -0,0 +1,11 @@ +language: de-CH +intents: + HassDecreaseTimer: + data: + - sentences: + - "Zie[h] vo[m| m(i|y)m] ab" + - "Zie[h] vo[m| m(i|y)m] [-| ] ab" + - "Zie[h] vo[m| m(i|y)m] ab" + - "Zie[h] vo[m| m(i|y)m] [-| ] ab" + - "Zie[h] vo[m| m(i|y)m] {timer_name:name}[-| ] ab" + - "Zie[h] vo[m| m(i|y)m] {timer_name:name} ab" diff --git a/sentences/de-CH/homeassistant_HassGetCurrentDate.yaml b/sentences/de-CH/homeassistant_HassGetCurrentDate.yaml new file mode 100644 index 0000000000..2e59fb5073 --- /dev/null +++ b/sentences/de-CH/homeassistant_HassGetCurrentDate.yaml @@ -0,0 +1,8 @@ +language: de-CH +intents: + HassGetCurrentDate: + data: + - sentences: + - "(|Säg mer) (üses|(ds|z)[ (aktuell(e|ä)|hütige)]) Datum" + - "() hüt für[n] e Tag" + - "Weles Datum hei[ ]mer[ (itze|hüt)]" diff --git a/sentences/de-CH/homeassistant_HassGetCurrentTime.yaml b/sentences/de-CH/homeassistant_HassGetCurrentTime.yaml new file mode 100644 index 0000000000..95877fb638 --- /dev/null +++ b/sentences/de-CH/homeassistant_HassGetCurrentTime.yaml @@ -0,0 +1,8 @@ +language: de-CH +intents: + HassGetCurrentTime: + data: + - sentences: + - "(|Säg mer) d['|ie] [aktuelli ]Z(y|i)t" + - " für Z(y|i)t" + - "Weli Z(y|i)t isch[ itze]" diff --git a/sentences/de-CH/homeassistant_HassIncreaseTimer.yaml b/sentences/de-CH/homeassistant_HassIncreaseTimer.yaml new file mode 100644 index 0000000000..52d2c7c4e6 --- /dev/null +++ b/sentences/de-CH/homeassistant_HassIncreaseTimer.yaml @@ -0,0 +1,19 @@ +language: de-CH +intents: + HassIncreaseTimer: + data: + - sentences: + - "(Tue|Füeg) zu[m| m(i|y)m] derzue" + - "(Tue|Füeg) zu[m| m(i|y)m] [-| ] derzue" + - "(Tue|Füeg) zu[m| m(i|y)m] derzue" + - "(Tue|Füeg) zu[m| m(i|y)m] [-| ] derzue" + - "(Tue|Füeg) zu[m| m(i|y)m] {timer_name:name}[-| ] derzue" + - "(Tue|Füeg) zu[m| m(i|y)m] {timer_name:name} derzue" + + - sentences: + - "Verlenger[e] d[e]r (um|für) " + - "Verlenger[e] d[e]r [-| ] (um|für) " + - "Verlenger[e] d[e]r (um|für) " + - "Verlenger[e] d[e]r [-| ] (um|für) " + - "Verlenger[e] d[e]r {timer_name:name}[-| ] (um|für) " + - "Verlenger[e] d[e]r {timer_name:name} (um|für) " diff --git a/sentences/de-CH/homeassistant_HassPauseTimer.yaml b/sentences/de-CH/homeassistant_HassPauseTimer.yaml new file mode 100644 index 0000000000..2a5daa9e50 --- /dev/null +++ b/sentences/de-CH/homeassistant_HassPauseTimer.yaml @@ -0,0 +1,12 @@ +language: de-CH +intents: + HassPauseTimer: + data: + - sentences: + - "Pousier (d[e]r|m(y|i)|aui) " + - "Pousier [(d[e][r]|m(y|i)) ](-| )" + - "Pousier [(d[e][r]|m(y|i)) ] für i " + - "Pousier [(d[e][r]|m(y|i)) ] " + - "Pousier [(d[e][r]|m(y|i)) ][-| ]" + - "Pousier [(d[e][r]|m(y|i)) ]{timer_name:name}[-| ]" + - "Pousier [(d[e][r]|m(y|i)) ] {timer_name:name}" diff --git a/sentences/de-CH/homeassistant_HassStartTimer.yaml b/sentences/de-CH/homeassistant_HassStartTimer.yaml new file mode 100644 index 0000000000..c60ca56914 --- /dev/null +++ b/sentences/de-CH/homeassistant_HassStartTimer.yaml @@ -0,0 +1,16 @@ +language: de-CH +intents: + HassStartTimer: + data: + - sentences: + - "[(S[ch]teu|Setz|Mach) [(e|m(i|y)) ]] (für|uf) " + - " " + - " für {timer_name:name}" + - "(S[ch]teu|Setz|Mach) [(e|m(i|y)|d[e]r) ]{timer_name:name}[(-| )] (für|uf) " + - "(S[ch]teu|Setz|Mach) [(e|m(i|y)) ] (für|uf) (für[ d[ie]]|mit [d]em Name) {timer_name:name}" + - "(S[ch]teu|Setz|Mach) [(e|m(i|y)) ](-| ) (für[ d[ie]]|mit [d]em Name) {timer_name:name}" + - "(S[ch]teu|Setz|Mach) [(e|m(i|y)|d[e]r) ][(-| )] für [e|d[ie] ]{timer_name:name}" + - sentences: + - "{timer_command:conversation_command} i[n] " + - "i[n] {timer_command:conversation_command}" + response: command diff --git a/sentences/de-CH/homeassistant_HassTimerStatus.yaml b/sentences/de-CH/homeassistant_HassTimerStatus.yaml new file mode 100644 index 0000000000..ffb872f9c5 --- /dev/null +++ b/sentences/de-CH/homeassistant_HassTimerStatus.yaml @@ -0,0 +1,19 @@ +language: de-CH +intents: + HassTimerStatus: + data: + # Timer status + - sentences: + - "[Was isch der ][-| ]status" + - "[Was isch der ][-| ][-| ]status" + - "[Was isch der ][-| ]status " + - "(-| )[-| ]status" + - "[Was isch der ]status vo[m|r] (-| )" + + # Named timers + - sentences: + - "[Was isch der ]{timer_name:name}(-| )(-| )status" + - "[Was isch der ][-| ]status vo[m|r] {timer_name:name}" + - "[Was isch der ]status vo[m|r] {timer_name:name}(-| )" + - "Wi[e] lang (geit|het) [d[e]r ]{timer_name:name}[(-| )] no" + - "Weli Z(y[y]|i[i])t [ver]bl(y[y]|i[i])bt no uf [em ]{timer_name:name}[(-| )]" diff --git a/sentences/de-CH/homeassistant_HassUnpauseTimer.yaml b/sentences/de-CH/homeassistant_HassUnpauseTimer.yaml new file mode 100644 index 0000000000..146119b48e --- /dev/null +++ b/sentences/de-CH/homeassistant_HassUnpauseTimer.yaml @@ -0,0 +1,12 @@ +language: de-CH +intents: + HassUnpauseTimer: + data: + - sentences: + - "(Fahr|Mach) [(d[e][r]|m(y|i)|mit em) ][ w(y|i)ter]" + - "(Fahr|Mach) [(d[e][r]|m(y|i)|mit em) ] [ w(y|i)ter]" + - "(Fahr|Mach) [(d[e][r]|m(y|i)|mit em) ] (für (am|i|y)|vo[m]) [ w(y|i)ter]" + - "(Fahr|Mach) [(d[e][r]|m(y|i)|mit em) ] [ w(y|i)ter]" + - "(Fahr|Mach) [(d[e][r]|m(y|i)|mit em) ][-| ][ w(y|i)ter]" + - "(Fahr|Mach) [(d[e][r]|m(y|i)|mit em) ]{timer_name:name}[-| ][ w(y|i)ter]" + - "(Fahr|Mach) [(d[e][r]|m(y|i)|mit em) ] {timer_name:name}[ w(y|i)ter]" diff --git a/tests/de-CH/_fixtures.yaml b/tests/de-CH/_fixtures.yaml index 05ea554b5f..6cb3d96935 100644 --- a/tests/de-CH/_fixtures.yaml +++ b/tests/de-CH/_fixtures.yaml @@ -2,18 +2,26 @@ language: de-CH areas: - name: "Chuchi" id: kitchen + floor: "Parterre" - name: "Stub(e|ä)" id: living_room + floor: "Parterre" - name: "Salon" id: living_room + floor: "Parterre" - name: "Wohnz(i|e)mmer" id: living_room + floor: "Parterre" - name: "Schl(a|o)fz(i|e)mmer" id: bedroom + floor: "Obergschoss" - name: "Garage" id: garage + floor: "Garte" - name: "(Ygang|I[i]gang)" id: entrance + floor: "Parterre" + entities: - name: "Deck(e|i|ä)-Venti[lator]" id: fan.ceiling @@ -117,3 +125,23 @@ entities: - name: "Schtoubsuger" id: "vacuum.rover" state: "idle" + +timers: + - is_active: false + start_hours: 1 + total_seconds_left: 100 + rounded_hours_left: 0 + rounded_minutes_left: 1 + rounded_seconds_left: 40 + - name: "pizza" + start_minutes: 30 + total_seconds_left: 1505 + rounded_hours_left: 0 + rounded_minutes_left: 25 + rounded_seconds_left: 0 + - area: "kitchen" + start_minutes: 5 + total_seconds_left: 190 + rounded_hours_left: 0 + rounded_minutes_left: 3 + rounded_seconds_left: 0 diff --git a/tests/de-CH/homeassistant_HassCancelTimer.yaml b/tests/de-CH/homeassistant_HassCancelTimer.yaml new file mode 100644 index 0000000000..e878f132cb --- /dev/null +++ b/tests/de-CH/homeassistant_HassCancelTimer.yaml @@ -0,0 +1,38 @@ +language: de-CH +tests: + - sentences: + - "Stop der Wecker" + - "Haut der Timer aa" + - "Brich mi Wecker ab" + intent: + name: HassCancelTimer + response: "Timer abbroche" + + - sentences: + - "Stop mi 5 Minute-Wecker" + - "Stop der Timer für 5 Minute" + intent: + name: HassCancelTimer + slots: + start_minutes: 5 + response: "Timer abbroche" + + - sentences: + - "Brich mi Timer ir Chuchi ab" + - "Haut der Chuchi-Timer aa" + intent: + name: HassCancelTimer + slots: + area: Chuchi + response: "Timer abbroche" + + - sentences: + - "Stopp my pizza-Timer" + - "Haut der Timer pizza aa" + intent: + name: HassCancelTimer + slots: + name: + - "pizza" + - "pizza " + response: "Timer abbroche" diff --git a/tests/de-CH/homeassistant_HassDecreaseTimer.yaml b/tests/de-CH/homeassistant_HassDecreaseTimer.yaml new file mode 100644 index 0000000000..4ff61e11b0 --- /dev/null +++ b/tests/de-CH/homeassistant_HassDecreaseTimer.yaml @@ -0,0 +1,41 @@ +language: de-CH +tests: + - sentences: + - "Zie 5 Minute vo mim Timer ab" + - "Zieh 5 Minute vom Wecker ab" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + response: "Timer aapasst" + + - sentences: + - "Zieh 5 Minute vom 1 Stunde-Timer ab" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + start_hours: 1 + response: "Timer aapasst" + + - sentences: + - "Zieh 5 Minute vom Chuchi-Wecker ab" + - "Zieh 5 Minute vom Wecker ir Chuchi ab" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + area: Chuchi + response: "Timer aapasst" + + - sentences: + - "Zieh 5 Minute vom pizza-Wecker ab" + - "Zieh 5 Minute vom Wecker pizza ab" + intent: + name: HassDecreaseTimer + slots: + minutes: 5 + name: + - "pizza " + - "pizza" + response: "Timer aapasst" diff --git a/tests/de-CH/homeassistant_HassGetCurrentDate.yaml b/tests/de-CH/homeassistant_HassGetCurrentDate.yaml new file mode 100644 index 0000000000..5ba77bf67a --- /dev/null +++ b/tests/de-CH/homeassistant_HassGetCurrentDate.yaml @@ -0,0 +1,10 @@ +language: de-CH +tests: + - sentences: + - "Was isch ds hütige Datum?" + - "Was isch hüt für e Tag?" + - "Weles Datum heimer?" + - "Weles Datum hei mer hüt?" + intent: + name: HassGetCurrentDate + response: "Es isch Zyschtig der 17. Septämber 2013" diff --git a/tests/de-CH/homeassistant_HassGetCurrentTime.yaml b/tests/de-CH/homeassistant_HassGetCurrentTime.yaml new file mode 100644 index 0000000000..49c1a09ad9 --- /dev/null +++ b/tests/de-CH/homeassistant_HassGetCurrentTime.yaml @@ -0,0 +1,9 @@ +language: de-CH +tests: + - sentences: + - "Was isch d Zyt?" + - "Was isch für Zyt?" + - "Weli Zyt isch?" + intent: + name: HassGetCurrentTime + response: Es isch 01:02 diff --git a/tests/de-CH/homeassistant_HassIncreaseTimer.yaml b/tests/de-CH/homeassistant_HassIncreaseTimer.yaml new file mode 100644 index 0000000000..f4d75646bd --- /dev/null +++ b/tests/de-CH/homeassistant_HassIncreaseTimer.yaml @@ -0,0 +1,46 @@ +language: de-CH +tests: + - sentences: + - "Tue 5 Minute zu mim Wecker derzue" + - "Verlengere der Timer um 5 Minute" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + response: "Timer aapasst" + + - sentences: + - "Tue 5 Minute zu mim 1 Stunde-Wecker derzue" + - "Verlengere der 1 Stunde-Timer um 5 Minute" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + start_hours: 1 + response: "Timer aapasst" + + - sentences: + - "Tue 5 Minute zu mim Chuchi-Wecker derzue" + - "Tue 5 Minute zu mim Wecker ir Chuchi derzue" + - "Verlengere der Chuchi-Timer um 5 Minute" + - "Verlengere der Timer ir Chuchi für 5 Minute" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + area: Chuchi + response: "Timer aapasst" + + - sentences: + - "Tue 5 Minute zu mim pizza-Wecker derzue" + - "Tue 5 Minute zu mim Wecker pizza derzue" + - "Verlengere der pizza Timer um 5 Minute" + - "Verlengere der Timer pizza für 5 Minute" + intent: + name: HassIncreaseTimer + slots: + minutes: 5 + name: + - "pizza " + - "pizza" + response: "Timer aapasst" diff --git a/tests/de-CH/homeassistant_HassPauseTimer.yaml b/tests/de-CH/homeassistant_HassPauseTimer.yaml new file mode 100644 index 0000000000..bf2c200d74 --- /dev/null +++ b/tests/de-CH/homeassistant_HassPauseTimer.yaml @@ -0,0 +1,36 @@ +language: de-CH +tests: + - sentences: + - "Pousier der Timer" + intent: + name: HassPauseTimer + response: "Timer pousiert" + + - sentences: + - "Pousier der 1 Stunde-Timer" + - "Pousier der Timer für i 1 Stund" + intent: + name: HassPauseTimer + slots: + start_hours: 1 + response: "Timer pousiert" + + - sentences: + - "Pousier der Chuchi-Timer" + - "Pousier der Timer ir Chuchi" + intent: + name: HassPauseTimer + slots: + area: Chuchi + response: "Timer pousiert" + + - sentences: + - "Pousier der pizza-Timer" + - "Pousier der Timer pizza" + intent: + name: HassPauseTimer + slots: + name: + - "pizza " + - "pizza" + response: "Timer pousiert" diff --git a/tests/de-CH/homeassistant_HassStartTimer.yaml b/tests/de-CH/homeassistant_HassStartTimer.yaml new file mode 100644 index 0000000000..ac0ebaad7a --- /dev/null +++ b/tests/de-CH/homeassistant_HassStartTimer.yaml @@ -0,0 +1,111 @@ +language: de-CH +tests: + - sentences: + - "Schteu e Wecker uf 10 Minute" + - "Mach e Wecker für 10 Minute" + intent: + name: HassStartTimer + slots: + minutes: 10 + response: "Timer gschtartet" + + - sentences: + - "Schteu e Wecker uf 5 e haub Minute" + intent: + name: HassStartTimer + slots: + minutes: 5 + seconds: 30 + response: "Timer gschtartet" + + - sentences: + - "Schteu e Wecker uf e haubi Minute" + intent: + name: HassStartTimer + slots: + seconds: 30 + response: "Timer gschtartet" + + - sentences: + - "Schteu e Wecker uf 2 e haub Schtund" + intent: + name: HassStartTimer + context: + area: Chuchi + slots: + hours: 2 + minutes: 30 + response: "Timer gschtartet" + + - sentences: + - "Schteu e Wecker uf e haub Schtund" + intent: + name: HassStartTimer + context: + area: Chuchi + slots: + minutes: 30 + response: "Timer gschtartet" + + - sentences: + - "Schteu e Wecker für 1 Stund u 15 Minute" + intent: + name: HassStartTimer + context: + area: Chuchi + slots: + hours: 1 + minutes: 15 + response: "Timer gschtartet" + + - sentences: + - "Schteu e Wecker für 1 Stund u 30 Sekunde" + intent: + name: HassStartTimer + context: + area: Chuchi + slots: + hours: 1 + seconds: 30 + response: "Timer gschtartet" + + - sentences: + - "Schteu e Wecker für 1 Stund, 15 Minute u 30 Sekunde" + intent: + name: HassStartTimer + context: + area: Chuchi + slots: + hours: 1 + minutes: 15 + seconds: 30 + response: "Timer gschtartet" + + - sentences: + - "Mach e 5 Minute Timer für pizza" + - "Mach e Timer für 5 Minute mit em Name pizza" + - "Mach e 5 Minute Timer mit em Name pizza" + - "Steu der pizza-Timer uf 5 Minute" + - "5 Minute-Timer für pizza" + intent: + name: HassStartTimer + context: + area: Chuchi + slots: + minutes: 5 + name: + - "pizza " + - "pizza" + response: "Timer gschtartet" + + - sentences: + - "Lösch ds Liecht i 5 Minute" + - "In 5 Minute lösch ds Liecht" + intent: + name: HassStartTimer + slots: + minutes: 5 + conversation_command: + - "lösch ds liecht" + - "lösch ds liecht " + response: "Guet, wird i mache" diff --git a/tests/de-CH/homeassistant_HassTimerStatus.yaml b/tests/de-CH/homeassistant_HassTimerStatus.yaml new file mode 100644 index 0000000000..b5828f0283 --- /dev/null +++ b/tests/de-CH/homeassistant_HassTimerStatus.yaml @@ -0,0 +1,44 @@ +language: de-CH +tests: + - sentences: + - "Timer status" + - "Was isch der Wecker-Status" + intent: + name: HassTimerStatus + response: | + 2 loufendi Timer. 1 pousierte Timer. Es sy no 3 Minute vo ursprünglech 5 Minute vom Timer chuchi übrig. + + - sentences: + - "Was isch der Status vom 1 Stunde Wecker" + - "1 Stund Timer status" + intent: + name: HassTimerStatus + slots: + start_hours: 1 + response: | + Dr Timer isch pousiert. Es sy no 1 Minute und 40 Sekunde übrig. + + - sentences: + - "Chuchi Wecker status" + - "Timer status ir Chuchi" + intent: + name: HassTimerStatus + slots: + area: Chuchi + response: | + Es sy no 3 Minute übrig. + + - sentences: + - "pizza timer status" + - "Timer status vor pizza" + - "Was isch der Status vom pizza-Timer" + - "Wie lang geit der pizza-Timer no" + - "Weli Zyt verblybt no uf em pizza-Timer" + intent: + name: HassTimerStatus + slots: + name: + - "pizza " + - "pizza" + response: | + Es sy no 25 Minute übrig. diff --git a/tests/de-CH/homeassistant_HassUnpauseTimer.yaml b/tests/de-CH/homeassistant_HassUnpauseTimer.yaml new file mode 100644 index 0000000000..51b3fc2dde --- /dev/null +++ b/tests/de-CH/homeassistant_HassUnpauseTimer.yaml @@ -0,0 +1,37 @@ +language: de-CH +tests: + - sentences: + - "Mach mit em Wecker wyter" + - "Fahr mit em Timer wyter" + intent: + name: HassUnpauseTimer + response: "Timer wider gschtartet" + + - sentences: + - "Fahr mit em 1 Stunde-Timer wyter" + - "Fahr mit em Timer für i 1 Stund wyter" + intent: + name: HassUnpauseTimer + slots: + start_hours: 1 + response: "Timer wider gschtartet" + + - sentences: + - "Mach mit em Chuchi-Timer wyter" + - "Fahr mit em Wecker ir Chuchi wyter" + intent: + name: HassUnpauseTimer + slots: + area: Chuchi + response: "Timer wider gschtartet" + + - sentences: + - "Mach mit em pizza-Timer wyter" + - "Fahr mit em Wecker pizza wyter" + intent: + name: HassUnpauseTimer + slots: + name: + - "pizza " + - "pizza" + response: "Timer wider gschtartet" From 503bf2779e142d9575c2e57cdd8f6b6598687833 Mon Sep 17 00:00:00 2001 From: dontinelli <73341522+dontinelli@users.noreply.github.com> Date: Fri, 8 Nov 2024 19:34:41 +0100 Subject: [PATCH 42/92] [de-CH] Add HassMediaPrevious (#2483) Add HassMediaPrevious --- responses/de-CH/HassMediaPrevious.yaml | 5 ++++ .../de-CH/media_player_HassMediaNext.yaml | 9 +++++- .../de-CH/media_player_HassMediaPrevious.yaml | 15 ++++++++++ tests/de-CH/media_player_HassMediaNext.yaml | 20 +++++++++++++ .../de-CH/media_player_HassMediaPrevious.yaml | 29 +++++++++++++++++++ 5 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 responses/de-CH/HassMediaPrevious.yaml create mode 100644 sentences/de-CH/media_player_HassMediaPrevious.yaml create mode 100644 tests/de-CH/media_player_HassMediaPrevious.yaml diff --git a/responses/de-CH/HassMediaPrevious.yaml b/responses/de-CH/HassMediaPrevious.yaml new file mode 100644 index 0000000000..b772499edf --- /dev/null +++ b/responses/de-CH/HassMediaPrevious.yaml @@ -0,0 +1,5 @@ +language: de-CH +responses: + intents: + HassMediaPrevious: + default: "Schpile ds vordere Stück" diff --git a/sentences/de-CH/media_player_HassMediaNext.yaml b/sentences/de-CH/media_player_HassMediaNext.yaml index 0448b724d4..d1b0029495 100644 --- a/sentences/de-CH/media_player_HassMediaNext.yaml +++ b/sentences/de-CH/media_player_HassMediaNext.yaml @@ -3,6 +3,13 @@ intents: HassMediaNext: data: - sentences: - - "Nächs[ch]ts (stück|lied) (vo|für|uf [em]) " + - "[S[ch]pi[e](l|u) (d[a]s|z) ]nächs[ch]t(s|e) (stück|lied) (vo|für|uf [em]) " requires_context: domain: media_player + - sentences: + - "[S[ch]pi[e](l|u) (d[a]s|z) ]nächs[ch]ts (stück|lied)" + requires_context: + area: + slot: true + - sentences: + - "[S[ch]pi[e](l|u) (d[a]s|z) ]Nächs[ch]ts (stück|lied) " diff --git a/sentences/de-CH/media_player_HassMediaPrevious.yaml b/sentences/de-CH/media_player_HassMediaPrevious.yaml new file mode 100644 index 0000000000..9e90eba595 --- /dev/null +++ b/sentences/de-CH/media_player_HassMediaPrevious.yaml @@ -0,0 +1,15 @@ +language: de-CH +intents: + HassMediaPrevious: + data: + - sentences: + - "[S[ch]pi[e](l|u) (d[a]s|z) ]vorder(e|s) (stück|lied) (vo|für|uf [em]) " + requires_context: + domain: media_player + - sentences: + - "[S[ch]pi[e](l|u) (d[a]s|z) ]vorder(e|s) (stück|lied)" + requires_context: + area: + slot: true + - sentences: + - "[S[ch]pi[e](l|u) (d[a]s|z) ]vorder(e|s) (stück|lied) " diff --git a/tests/de-CH/media_player_HassMediaNext.yaml b/tests/de-CH/media_player_HassMediaNext.yaml index 175f18d2a5..b38053e286 100644 --- a/tests/de-CH/media_player_HassMediaNext.yaml +++ b/tests/de-CH/media_player_HassMediaNext.yaml @@ -7,3 +7,23 @@ tests: slots: name: "Fernseh" response: "Schpile ds nächschte Stück" + + - sentences: + - "Nächschts stück" + intent: + name: HassMediaNext + slots: + area: Stube + context: + area: Stube + response: "Schpile ds nächschte Stück" + + - sentences: + - "Nächschts stück ir Stube" + intent: + name: HassMediaNext + slots: + area: Stube + context: + area: Stube + response: "Schpile ds nächschte Stück" diff --git a/tests/de-CH/media_player_HassMediaPrevious.yaml b/tests/de-CH/media_player_HassMediaPrevious.yaml new file mode 100644 index 0000000000..5c8c2cb609 --- /dev/null +++ b/tests/de-CH/media_player_HassMediaPrevious.yaml @@ -0,0 +1,29 @@ +language: de-CH +tests: + - sentences: + - "Vorders stück uf em Fernseh" + intent: + name: HassMediaPrevious + slots: + name: "Fernseh" + response: "Schpile ds vordere Stück" + + - sentences: + - "Vorders stück" + intent: + name: HassMediaPrevious + slots: + area: Stube + context: + area: Stube + response: "Schpile ds vordere Stück" + + - sentences: + - "Vorders stück ir Stube" + intent: + name: HassMediaPrevious + slots: + area: Stube + context: + area: Stube + response: "Schpile ds vordere Stück" From 79222e3589beaf6573584de833fee29764296b48 Mon Sep 17 00:00:00 2001 From: salleq Date: Fri, 8 Nov 2024 20:44:34 +0200 Subject: [PATCH 43/92] [FI] initial get time and date commit (#2481) * [FI] initial get time and date commit * test at fixing the tests... * another try at fixing 'tests' * ...another try at fixing * maybe this time --- responses/fi/HassGetCurrentDate.yaml | 62 +++++++++++++++++++ responses/fi/HassGetCurrentTime.yaml | 8 +++ .../fi/homeassistant_HassGetCurrentDate.yaml | 6 ++ .../fi/homeassistant_HassGetCurrentTime.yaml | 8 +++ .../fi/homeassistant_HassGetCurrentDate.yaml | 13 ++++ .../fi/homeassistant_HassGetCurrentTime.yaml | 12 ++++ 6 files changed, 109 insertions(+) create mode 100644 responses/fi/HassGetCurrentDate.yaml create mode 100644 responses/fi/HassGetCurrentTime.yaml create mode 100644 sentences/fi/homeassistant_HassGetCurrentDate.yaml create mode 100644 sentences/fi/homeassistant_HassGetCurrentTime.yaml create mode 100644 tests/fi/homeassistant_HassGetCurrentDate.yaml create mode 100644 tests/fi/homeassistant_HassGetCurrentTime.yaml diff --git a/responses/fi/HassGetCurrentDate.yaml b/responses/fi/HassGetCurrentDate.yaml new file mode 100644 index 0000000000..6b3e5040cd --- /dev/null +++ b/responses/fi/HassGetCurrentDate.yaml @@ -0,0 +1,62 @@ +language: fi +responses: + intents: + HassGetCurrentDate: + default: > + {% set months = { + 1: '1.', + 2: '2.', + 3: '3.', + 4: '4.', + 5: '5.', + 6: '6.', + 7: '7.', + 8: '8.', + 9: '9.', + 10: '10.', + 11: '11.', + 12: '12.', + } %} + {% set ordinal = { + 1: '1.', + 2: '2.', + 3: '3.', + 4: '4.', + 5: '5.', + 6: '6.', + 7: '7.', + 8: '8.', + 9: '9.', + 10: '10.', + 11: '11.', + 12: '12.', + 13: '13.', + 14: '14.', + 15: '15.', + 16: '16.', + 17: '17.', + 18: '18.', + 19: '19.', + 20: '20.', + 21: '21.', + 22: '22.', + 23: '23.', + 24: '24.', + 25: '25.', + 26: '26.', + 27: '27.', + 28: '28.', + 29: '29.', + 30: '30.', + 31: '31.', + } %} + {% set weekday = [ + 'maanantai', + 'tiistai', + 'keskiviikko', + 'torstai', + 'perjantai', + 'lauantai', + 'sunnuntai' + ] %} + Tänään on {{ weekday[slots.date.weekday()] }} {{ ordinal[slots.date.day] }}{{ months[slots.date.month] }}{{ slots.date.year }} diff --git a/responses/fi/HassGetCurrentTime.yaml b/responses/fi/HassGetCurrentTime.yaml new file mode 100644 index 0000000000..5979da1c36 --- /dev/null +++ b/responses/fi/HassGetCurrentTime.yaml @@ -0,0 +1,8 @@ +language: fi +responses: + intents: + HassGetCurrentTime: + default: > + {% set hour_str = slots.time.hour %} + {% set minute_str = '{:02d}'.format(slots.time.minute) %} + Kello on {{ hour_str }}:{{ minute_str }} diff --git a/sentences/fi/homeassistant_HassGetCurrentDate.yaml b/sentences/fi/homeassistant_HassGetCurrentDate.yaml new file mode 100644 index 0000000000..fdc469dac0 --- /dev/null +++ b/sentences/fi/homeassistant_HassGetCurrentDate.yaml @@ -0,0 +1,6 @@ +language: fi +intents: + HassGetCurrentDate: + data: + - sentences: + - "[kerro] (mikä|monesko|kerro) [mikä] (päivä|päivämäärä|päiväys) [nyt|tänään] [on]" diff --git a/sentences/fi/homeassistant_HassGetCurrentTime.yaml b/sentences/fi/homeassistant_HassGetCurrentTime.yaml new file mode 100644 index 0000000000..e4b6c49805 --- /dev/null +++ b/sentences/fi/homeassistant_HassGetCurrentTime.yaml @@ -0,0 +1,8 @@ +language: fi +intents: + HassGetCurrentTime: + data: + - sentences: + - "[kerro] (mitä|paljonko|paljon) kello on [juuri nyt|nyt]" + - "[kerro] [nykyinen|tämän hetken] [kellon]aika" + - "[kerro] (kuinka|miten) (aikaista|myöhäistä|aikainen|myöhäinen|myöhä) [nyt on|on[nyt]]" diff --git a/tests/fi/homeassistant_HassGetCurrentDate.yaml b/tests/fi/homeassistant_HassGetCurrentDate.yaml new file mode 100644 index 0000000000..6dad299ded --- /dev/null +++ b/tests/fi/homeassistant_HassGetCurrentDate.yaml @@ -0,0 +1,13 @@ +language: fi +tests: + - sentences: + - "mikä päivä tänään on" + - "mikä päivämäärä nyt on" + - "mikä päivämäärä on" + - "monesko päivä nyt on" + - "kerro päivämäärä" + - "kerro päiväys" + - "mikä päiväys nyt on" + intent: + name: HassGetCurrentDate + response: "Tänään on tiistai 17.9.2013" diff --git a/tests/fi/homeassistant_HassGetCurrentTime.yaml b/tests/fi/homeassistant_HassGetCurrentTime.yaml new file mode 100644 index 0000000000..247abaacf9 --- /dev/null +++ b/tests/fi/homeassistant_HassGetCurrentTime.yaml @@ -0,0 +1,12 @@ +language: fi +tests: + - sentences: + - "mitä kello on" + - "paljonko kello on" + - "kerro nykyinen aika" + - "kerro tämän hetken aika" + - "kuinka aikaista on" + - "kuinka myöhäistä on" + intent: + name: HassGetCurrentTime + response: "Kello on 1:02" From 3c984305bb4d22b05a8434c5e3ebfd3473e88015 Mon Sep 17 00:00:00 2001 From: dontinelli <73341522+dontinelli@users.noreply.github.com> Date: Fri, 8 Nov 2024 20:14:03 +0100 Subject: [PATCH 44/92] [de-CH] Add HassRespond (#2484) * Add HassRespond --- responses/de-CH/HassRespond.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 responses/de-CH/HassRespond.yaml diff --git a/responses/de-CH/HassRespond.yaml b/responses/de-CH/HassRespond.yaml new file mode 100644 index 0000000000..06aeb717e8 --- /dev/null +++ b/responses/de-CH/HassRespond.yaml @@ -0,0 +1,9 @@ +language: de-CH +responses: + intents: + HassRespond: + hello: "Hallo vom Home Assistant." + listening: "Nei, I nime nume uf, we de ds Aktivierigswort gseit hesch." + data: "Dini Date wärde zu dim Home Assistant Server gschickt." + commands: "Für usezfinde was d aues chasch frage, gang uf home-assistant.io/voice_control." + creator: "I bi vor e wunderbare Home Assistant Gmeinschaft us Programmierer u Baschtler uf der ganze Wäut gmacht worde." From 08a4499872a179dd7a619247eb0b543ebb4dafc6 Mon Sep 17 00:00:00 2001 From: Natfaji_A <46685769+Natfaji@users.noreply.github.com> Date: Fri, 8 Nov 2024 21:01:45 +0100 Subject: [PATCH 45/92] [AR] HassSetPosition intent and some improvements (#2485) --- responses/ar/HassSetPosition.yaml | 5 ++ sentences/ar/_common.yaml | 30 +++++++-- sentences/ar/cover_HassSetPosition.yaml | 16 +++++ sentences/ar/lock_HassTurnOff.yaml | 2 +- sentences/ar/lock_HassTurnOn.yaml | 2 +- sentences/ar/valve_HassSetPosition.yaml | 10 +++ tests/ar/_fixtures.yaml | 7 +++ tests/ar/cover_HassSetPosition.yaml | 24 +++++++ tests/ar/light_HassLightSet.yaml | 83 ------------------------- tests/ar/valve_HassSetPosition.yaml | 21 +++++++ 10 files changed, 109 insertions(+), 91 deletions(-) create mode 100644 responses/ar/HassSetPosition.yaml create mode 100644 sentences/ar/cover_HassSetPosition.yaml create mode 100644 sentences/ar/valve_HassSetPosition.yaml create mode 100644 tests/ar/cover_HassSetPosition.yaml create mode 100644 tests/ar/valve_HassSetPosition.yaml diff --git a/responses/ar/HassSetPosition.yaml b/responses/ar/HassSetPosition.yaml new file mode 100644 index 0000000000..71063a707c --- /dev/null +++ b/responses/ar/HassSetPosition.yaml @@ -0,0 +1,5 @@ +language: ar +responses: + intents: + HassSetPosition: + default: "تم التحريك" diff --git a/sentences/ar/_common.yaml b/sentences/ar/_common.yaml index 8b399d484d..8042b1f8b9 100644 --- a/sentences/ar/_common.yaml +++ b/sentences/ar/_common.yaml @@ -81,6 +81,7 @@ lists: out: "opening" - in: "يغلق" out: "closing" + cover_classes: values: - in: @@ -96,6 +97,12 @@ lists: - in: out: window + position: + range: + type: "percentage" + from: 0 + to: 100 + expansion_rules: name: "[ال]{name}" area: "[ال]{area}" @@ -115,28 +122,40 @@ expansion_rules: what: "(ما|ماذا|شو)" can: "(ممكن|يمكن)[ني]" - brightness: "{brightness}[% | بالمائة]" + brightness: "{brightness}[[ ]%| بالمائة]" temperature: "{temperature}[°| درجة] [{temperature_unit}]" + position: "{position}[[ ]%| بالمائة]" light: "[ال](اضواء|اضاءة|ضوء|مصابيح|مصباح|انوار|نور|لمبة|لمبات|انوار)" switch: "[ال](مفتاح|مفاتيح)" fan: "[ال](مروحة|مراوح|مروحات)" - turn: "(غير|اضبط|أضبط|إضبط|ضبط)" + turn: "(اضبط|أضبط|إضبط|ضبط|[ت]غير|تعيين)" turn_on: "(افتح|إفتح|شغل|اشعل|أشعل|اشغل|أشغل|ابدأ|إبدأ|شعل|فعل|تفعيل|تشغيل|فعل)" turn_off: "(أغلق|اغلق|اطفئ|أطفئ|طفي)" + turn_up: "(علي|[ا]رفع)" + turn_down: "(اخفض|[ا]نزل|تخفيض|خفض)" + + increase: "(زيادة|زيد||كتر|كثر)" + decrease: "(تقليل|قلل|تنقيص|نقص|وطي|)" + + unlock: "(افتح)" + lock: "(اقفل)" + temp: "(باردة|دافئة|لطيفة|حارة|درجة [ال]حرارة)" intensity: "[ال](درجة [ال]سطوع|[شدة] [ال]سطوع|قوة|شدة)" color: "[ال](لون|الوان)" in: "(في|داخل)" all: "(كل|جميع)" - to: "(على|الى)" + to: "(على|الى|لل)" any: "(أي)" - open: "(افتح|إفتح|إرفع|ارفع)" - close: "(أغلق|اغلق|اقفل|اخفض|انزل|نزل)" + open: "(|)" + close: "(اغلق|سكر||)" + + numeric_value_set: "(|||)" awning: "[ال](مظلة|مظلات)" curtain: "[ال](ستائر|ستارة|ستارات)" @@ -144,7 +163,6 @@ expansion_rules: garage: "[ال](باب|ابواب|بوابة|بوابات) [ال]جراج" gate: "[ال](بوابة|بوابات)" window: "[ال](نافذة|نوافذ|نافذات|شباك|شبابيك)" - lock: "[ال](اقفال|قفل)" skip_words: - "(من فضلك|لو سمحت)" diff --git a/sentences/ar/cover_HassSetPosition.yaml b/sentences/ar/cover_HassSetPosition.yaml new file mode 100644 index 0000000000..02ecf058d6 --- /dev/null +++ b/sentences/ar/cover_HassSetPosition.yaml @@ -0,0 +1,16 @@ +language: ar +intents: + HassSetPosition: + data: + - sentences: + - " [(ارتفاع|علو)] " + requires_context: + domain: cover + slots: + domain: cover + + - sentences: + - " {cover_classes:device_class} " + - " [(ارتفاع|علو)] {cover_classes:device_class} " + slots: + domain: cover diff --git a/sentences/ar/lock_HassTurnOff.yaml b/sentences/ar/lock_HassTurnOff.yaml index 411ea7b9eb..c2545d278a 100644 --- a/sentences/ar/lock_HassTurnOff.yaml +++ b/sentences/ar/lock_HassTurnOff.yaml @@ -9,7 +9,7 @@ intents: response: unlock - sentences: - - " [] [] " + - " [] [ال](اقفال|قفل) [] " slots: domain: "lock" name: "all" diff --git a/sentences/ar/lock_HassTurnOn.yaml b/sentences/ar/lock_HassTurnOn.yaml index de1ac913a2..be10236191 100644 --- a/sentences/ar/lock_HassTurnOn.yaml +++ b/sentences/ar/lock_HassTurnOn.yaml @@ -9,7 +9,7 @@ intents: response: lock - sentences: - - " [] [] " + - " [] [ال](اقفال|قفل) [] " slots: domain: "lock" name: "all" diff --git a/sentences/ar/valve_HassSetPosition.yaml b/sentences/ar/valve_HassSetPosition.yaml new file mode 100644 index 0000000000..5247fb88e6 --- /dev/null +++ b/sentences/ar/valve_HassSetPosition.yaml @@ -0,0 +1,10 @@ +language: ar +intents: + HassSetPosition: + data: + - sentences: + - " " + requires_context: + domain: valve + slots: + domain: valve diff --git a/tests/ar/_fixtures.yaml b/tests/ar/_fixtures.yaml index f7778b44ce..462598ead4 100644 --- a/tests/ar/_fixtures.yaml +++ b/tests/ar/_fixtures.yaml @@ -310,3 +310,10 @@ entities: # SCENES - name: "وقت الفيلم" id: scene.movie_time + + #valve + - name: "الحنفية الخارجية" + id: valve.outside_valve + + - name: "صنبور الحديقة" + id: valve.garden_valve diff --git a/tests/ar/cover_HassSetPosition.yaml b/tests/ar/cover_HassSetPosition.yaml new file mode 100644 index 0000000000..17203e98dd --- /dev/null +++ b/tests/ar/cover_HassSetPosition.yaml @@ -0,0 +1,24 @@ +language: ar +tests: + - sentences: + - "اضبط علو الستارة اليمنى الى 50%" + - "ارفع الستارة اليمنى الى 50 بالمائة" + intent: + name: HassSetPosition + slots: + domain: cover + name: "الستارة اليمنى" + position: 50 + response: "تم التحريك" + + - sentences: + - "اغلق ابواب غرفة النوم الى 50 بالمائة" + - "افتح ابواب غرفة النوم الى 50%" + intent: + name: HassSetPosition + slots: + domain: cover + device_class: "door" + area: "غرفة النوم" + position: 50 + response: "تم التحريك" diff --git a/tests/ar/light_HassLightSet.yaml b/tests/ar/light_HassLightSet.yaml index f721c2dd69..94424db821 100644 --- a/tests/ar/light_HassLightSet.yaml +++ b/tests/ar/light_HassLightSet.yaml @@ -3,11 +3,7 @@ tests: # Brightness value individual light - sentences: - "اضبط سطوع ضوء المطبخ الرئيسي الى 50" - - "أضبط سطوع ضوء المطبخ الرئيسي الى 50" - - "إضبط سطوع ضوء المطبخ الرئيسي الى 50" - - "اضبط ضوء المطبخ الرئيسي الى سطوع 50" - "أضبط ضوء المطبخ الرئيسي الى سطوع 50" - - "إضبط ضوء المطبخ الرئيسي الى سطوع 50" intent: name: HassLightSet slots: @@ -19,17 +15,9 @@ tests: # Brightness value specific area - sentences: - "اضبط سطوع جميع الاضواء الى 50 في المطبخ" - - "أضبط سطوع جميع الاضواء الى 50 في المطبخ" - - "إضبط سطوع جميع الاضواء الى 50 في المطبخ" - - "اضبط سطوع جميع الاضواء في المطبخ الى 50" - "أضبط سطوع جميع الاضواء في المطبخ الى 50" - - "إضبط سطوع جميع الاضواء في المطبخ الى 50" - - "اضبط جميع الاضواء الى سطوع 50 في المطبخ" - - "أضبط جميع الاضواء الى سطوع 50 في المطبخ" - "إضبط جميع الاضواء الى سطوع 50 في المطبخ" - "اضبط جميع الاضواء في المطبخ الى سطوع 50" - - "أضبط جميع الاضواء في المطبخ الى سطوع 50" - - "إضبط جميع الاضواء في المطبخ الى سطوع 50" intent: name: HassLightSet slots: @@ -42,11 +30,7 @@ tests: # Brightness value all lights - sentences: - "اضبط سطوع جميع الاضواء الى 50" - - "أضبط سطوع جميع الاضواء الى 50" - - "إضبط سطوع جميع الاضواء الى 50" - - "اضبط جميع الاضواء الى سطوع 50" - "أضبط جميع الاضواء الى سطوع 50" - - "إضبط جميع الاضواء الى سطوع 50" intent: name: HassLightSet slots: @@ -58,11 +42,7 @@ tests: # Min brightness individual light - sentences: - "اضبط سطوع ضوء المطبخ الرئيسي الى منخفض" - - "أضبط سطوع ضوء المطبخ الرئيسي الى منخفض" - - "إضبط سطوع ضوء المطبخ الرئيسي الى منخفض" - - "اضبط ضوء المطبخ الرئيسي الى سطوع منخفض" - "أضبط ضوء المطبخ الرئيسي الى سطوع منخفض" - - "إضبط ضوء المطبخ الرئيسي الى سطوع منخفض" intent: name: HassLightSet slots: @@ -74,11 +54,7 @@ tests: # Max brightness individual light - sentences: - "اضبط سطوع ضوء المطبخ الرئيسي الى قصوى" - - "أضبط سطوع ضوء المطبخ الرئيسي الى قصوى" - - "إضبط سطوع ضوء المطبخ الرئيسي الى قصوى" - - "اضبط ضوء المطبخ الرئيسي الى سطوع قصوى" - "أضبط ضوء المطبخ الرئيسي الى سطوع قصوى" - - "إضبط ضوء المطبخ الرئيسي الى سطوع قصوى" intent: name: HassLightSet slots: @@ -90,17 +66,9 @@ tests: # Min brightness specific area - sentences: - "اضبط سطوع جميع الاضواء الى منخفض في المطبخ" - - "أضبط سطوع جميع الاضواء الى منخفض في المطبخ" - - "إضبط سطوع جميع الاضواء الى منخفض في المطبخ" - - "اضبط سطوع جميع الاضواء في المطبخ الى منخفض" - "أضبط سطوع جميع الاضواء في المطبخ الى منخفض" - - "إضبط سطوع جميع الاضواء في المطبخ الى منخفض" - - "اضبط جميع الاضواء الى سطوع منخفض في المطبخ" - - "أضبط جميع الاضواء الى سطوع منخفض في المطبخ" - "إضبط جميع الاضواء الى سطوع منخفض في المطبخ" - "اضبط جميع الاضواء في المطبخ الى سطوع منخفض" - - "أضبط جميع الاضواء في المطبخ الى سطوع منخفض" - - "إضبط جميع الاضواء في المطبخ الى سطوع منخفض" intent: name: HassLightSet slots: @@ -113,17 +81,9 @@ tests: # Max brightness specific area - sentences: - "اضبط سطوع جميع الاضواء الى قصوى في المطبخ" - - "أضبط سطوع جميع الاضواء الى قصوى في المطبخ" - - "إضبط سطوع جميع الاضواء الى قصوى في المطبخ" - - "اضبط سطوع جميع الاضواء في المطبخ الى قصوى" - "أضبط سطوع جميع الاضواء في المطبخ الى قصوى" - - "إضبط سطوع جميع الاضواء في المطبخ الى قصوى" - - "اضبط جميع الاضواء الى سطوع قصوى في المطبخ" - - "أضبط جميع الاضواء الى سطوع قصوى في المطبخ" - "إضبط جميع الاضواء الى سطوع قصوى في المطبخ" - "اضبط جميع الاضواء في المطبخ الى سطوع قصوى" - - "أضبط جميع الاضواء في المطبخ الى سطوع قصوى" - - "إضبط جميع الاضواء في المطبخ الى سطوع قصوى" intent: name: HassLightSet slots: @@ -136,10 +96,6 @@ tests: # Min brightness all lights - sentences: - "اضبط سطوع جميع الاضواء الى منخفض" - - "أضبط سطوع جميع الاضواء الى منخفض" - - "إضبط سطوع جميع الاضواء الى منخفض" - - "اضبط جميع الاضواء الى سطوع منخفض" - - "إضبط جميع الاضواء الى سطوع منخفض" - "أضبط جميع الاضواء الى سطوع منخفض" intent: name: HassLightSet @@ -152,11 +108,7 @@ tests: # Max brightness all lights - sentences: - "اضبط سطوع جميع الاضواء الى قصوى" - - "أضبط سطوع جميع الاضواء الى قصوى" - - "إضبط سطوع جميع الاضواء الى قصوى" - - "اضبط جميع الاضواء الى سطوع قصوى" - "أضبط جميع الاضواء الى سطوع قصوى" - - "إضبط جميع الاضواء الى سطوع قصوى" intent: name: HassLightSet slots: @@ -168,17 +120,7 @@ tests: # color individual light - sentences: - "اضبط لون ضوء المطبخ الرئيسي الى احمر" - - "اضبط لون ضوء المطبخ الرئيسي الى أحمر" - - "أضبط لون ضوء المطبخ الرئيسي الى احمر" - - "أضبط لون ضوء المطبخ الرئيسي الى أحمر" - - "إضبط لون ضوء المطبخ الرئيسي الى احمر" - - "إضبط لون ضوء المطبخ الرئيسي الى أحمر" - - "اضبط ضوء المطبخ الرئيسي الى لون احمر" - - "اضبط ضوء المطبخ الرئيسي الى لون أحمر" - - "أضبط ضوء المطبخ الرئيسي الى لون احمر" - "أضبط ضوء المطبخ الرئيسي الى لون أحمر" - - "إضبط ضوء المطبخ الرئيسي الى لون احمر" - - "إضبط ضوء المطبخ الرئيسي الى لون أحمر" intent: name: HassLightSet slots: @@ -191,28 +133,9 @@ tests: # color specific area - sentences: - "اضبط لون جميع الاضواء الى احمر في المطبخ" - - "اضبط لون جميع الاضواء الى أحمر في المطبخ" - - "أضبط لون جميع الاضواء الى احمر في المطبخ" - - "أضبط لون جميع الاضواء الى أحمر في المطبخ" - - "إضبط لون جميع الاضواء الى احمر في المطبخ" - - "إضبط لون جميع الاضواء الى أحمر في المطبخ" - - "اضبط لون جميع الاضواء في المطبخ الى احمر" - - "اضبط لون جميع الاضواء في المطبخ الى أحمر" - "أضبط لون جميع الاضواء في المطبخ الى احمر" - - "إضبط لون جميع الاضواء في المطبخ الى احمر" - - "أضبط لون جميع الاضواء في المطبخ الى أحمر" - - "اضبط جميع الاضواء الى لون احمر في المطبخ" - - "اضبط جميع الاضواء الى لون أحمر في المطبخ" - - "أضبط جميع الاضواء الى لون احمر في المطبخ" - - "أضبط جميع الاضواء الى لون أحمر في المطبخ" - - "إضبط جميع الاضواء الى لون احمر في المطبخ" - "إضبط جميع الاضواء الى لون أحمر في المطبخ" - - "اضبط جميع الاضواء في المطبخ الى لون احمر" - "اضبط جميع الاضواء في المطبخ الى لون أحمر" - - "أضبط جميع الاضواء في المطبخ الى لون احمر" - - "أضبط جميع الاضواء في المطبخ الى لون أحمر" - - "إضبط جميع الاضواء في المطبخ الى لون احمر" - - "إضبط جميع الاضواء في المطبخ الى لون أحمر" intent: name: HassLightSet slots: @@ -226,16 +149,10 @@ tests: # color all lights - sentences: - "اضبط لون جميع الاضواء الى احمر" - - "اضبط لون جميع الاضواء الى أحمر" - "أضبط لون جميع الاضواء الى احمر" - - "أضبط لون جميع الاضواء الى أحمر" - "إضبط لون جميع الاضواء الى احمر" - - "إضبط لون جميع الاضواء الى أحمر" - - "اضبط جميع الاضواء الى اللون الاحمر" - "اضبط جميع الاضواء الى اللون الأحمر" - - "أضبط جميع الاضواء الى اللون الاحمر" - "أضبط جميع الاضواء الى اللون الأحمر" - - "إضبط جميع الاضواء الى اللون الاحمر" - "إضبط جميع الاضواء الى اللون الأحمر" intent: name: HassLightSet diff --git a/tests/ar/valve_HassSetPosition.yaml b/tests/ar/valve_HassSetPosition.yaml new file mode 100644 index 0000000000..d8df149d52 --- /dev/null +++ b/tests/ar/valve_HassSetPosition.yaml @@ -0,0 +1,21 @@ +language: ar +tests: + - sentences: + - "افتح الحنفية الخارجية الى 100%" + intent: + name: HassSetPosition + slots: + domain: valve + name: "الحنفية الخارجية" + position: 100 + response: "تم التحريك" + + - sentences: + - "اضبط صنبور الحديقة الى 100 بالمائة" + intent: + name: HassSetPosition + slots: + domain: valve + name: "صنبور الحديقة" + position: 100 + response: "تم التحريك" From 740df17706058863b49f361e25a4b572d46ab491 Mon Sep 17 00:00:00 2001 From: Martijn van der Pol Date: Sat, 9 Nov 2024 16:15:05 +0100 Subject: [PATCH 46/92] [NL] Improvements media_player intents (#2479) Co-authored-by: Franck Nijhof --- sentences/nl/_common.yaml | 2 +- sentences/nl/media_player_HassMediaNext.yaml | 24 +++++++++++++-- sentences/nl/media_player_HassMediaPause.yaml | 15 +++++++--- .../nl/media_player_HassMediaUnpause.yaml | 19 ++++++++++-- sentences/nl/media_player_HassSetVolume.yaml | 20 +++++++++++-- tests/nl/media_player_HassMediaNext.yaml | 30 +++++++++++++++++++ tests/nl/media_player_HassMediaPause.yaml | 15 +++++++++- tests/nl/media_player_HassMediaUnpause.yaml | 23 ++++++++++++++ tests/nl/media_player_HassSetVolume.yaml | 30 +++++++++++++++++++ 9 files changed, 164 insertions(+), 14 deletions(-) diff --git a/sentences/nl/_common.yaml b/sentences/nl/_common.yaml index 8125435539..08386ab877 100644 --- a/sentences/nl/_common.yaml +++ b/sentences/nl/_common.yaml @@ -438,7 +438,7 @@ expansion_rules: ) numeric_value_set: "(zet|doe|mag|verander|draai|verhoog|verlaag)" - media_item: "[lied[je]|nummer|track|item|aflevering|video|film[pje]]" + media_item: "(lied[je[s]]|nummer[s]|track[s]|item[s]|aflevering[en]|video[s]|film[pje][s]|muziek[je[s]]|playlist[s]|afspeellijst[en])" volume: "{volume:volume_level}[[ ]%| procent]" position: "{position}[[ ]%| procent]" diff --git a/sentences/nl/media_player_HassMediaNext.yaml b/sentences/nl/media_player_HassMediaNext.yaml index 1eb6f56247..86388059ff 100644 --- a/sentences/nl/media_player_HassMediaNext.yaml +++ b/sentences/nl/media_player_HassMediaNext.yaml @@ -4,8 +4,26 @@ intents: data: - sentences: - "volgende [op|voor] " - - "[ga|zet][ op] [ op | naar][ het| de] volgende " - - "[ga naar|zet] [ het| de] volgende op [ op]" - - "sla[[ het| de] huidige] (|dit) op over" + - "[ga|zet] [op] [op|naar] [het|de] volgende " + - "(ga naar|zet) [het|de] volgende op [op]" + - "sla [[het|de] huidige|dit] op over" + - "sla dit op over" + - "([op|voor] ;[de|het] volgende ) (opzetten|afspelen)" requires_context: domain: media_player + - sentences: + - "[het|de] volgende []" + - "(ga naar|zet) [het|de] volgende [op]" + - "sla [[het|de] huidige] over" + - "sla dit [] over" + - "[de|het] volgende (opzetten|afspelen)" + requires_context: + area: + slot: true + - sentences: + - "volgende " + - "[ga|zet] [op|naar] [het|de] volgende " + - "(ga naar|zet) [het|de] volgende [op]" + - "sla [[het|de] huidige|dit] over" + - "sla dit over" + - "( ;[de|het] volgende ) (opzetten|afspelen)" diff --git a/sentences/nl/media_player_HassMediaPause.yaml b/sentences/nl/media_player_HassMediaPause.yaml index 9a13d861bb..976642e2d8 100644 --- a/sentences/nl/media_player_HassMediaPause.yaml +++ b/sentences/nl/media_player_HassMediaPause.yaml @@ -3,13 +3,20 @@ intents: HassMediaPause: data: - sentences: - - "pauzeer " - - "[zet] [ op] pauze" - - " pauzeren" + - "pauzeer [[de|het] [op]] " + - "[zet] [op] pauze" + - "[[de|het] [op]] op pauze zetten" + - "[[de|het] [op]] pauzeren" requires_context: domain: media_player - sentences: - - "(pauzeren|pauzeer|pauze)" + - "(pauzeren|pauzeer)" + - "[zet op] pauze" requires_context: area: slot: true + - sentences: + - "pauzeer [[de|het] ] " + - " pauze" + - "[zet] [op] pauze" + - " (op pauze zetten|pauzeren)" diff --git a/sentences/nl/media_player_HassMediaUnpause.yaml b/sentences/nl/media_player_HassMediaUnpause.yaml index 08f4a81aee..e9372ec8f3 100644 --- a/sentences/nl/media_player_HassMediaUnpause.yaml +++ b/sentences/nl/media_player_HassMediaUnpause.yaml @@ -3,8 +3,21 @@ intents: HassMediaUnpause: data: - sentences: - - "hervat " - - " hervatten" - - "[zet ][ weer][ op] ([af]spelen|play)" + - "hervat [[de|het] [op]] " + - "[[de|het] [op]] hervatten" + - "[zet] [weer] [op] ([af]spelen|play)" + - "ga verder met [de|het] op " requires_context: domain: media_player + - sentences: + - "[[de|het] ] hervat[ten]" + - "[zet] [[de|het] ] [weer] [op] ([af]spelen|play)" + - "ga verder met [de|het] " + requires_context: + area: + slot: true + - sentences: + - "hervat [[de|het] ] " + - " [[de|het] ] hervatten" + - "[zet] [weer] [op] ([af]spelen|play)" + - "ga verder met [de|het] " diff --git a/sentences/nl/media_player_HassSetVolume.yaml b/sentences/nl/media_player_HassSetVolume.yaml index be8d38f406..aaa3b71a7f 100644 --- a/sentences/nl/media_player_HassSetVolume.yaml +++ b/sentences/nl/media_player_HassSetVolume.yaml @@ -5,8 +5,24 @@ intents: - sentences: - " volume (naar|op) " - "zet [volume][ omhoog| omlaag] (op|naar) " - - " het volume ([omhoog |omlaag ](naar|op) ;[van |op ])" - - "zet [het ]volume (omhoog|omlaag) ((naar|op) ;[van |op ])" + - " [het] volume ([omhoog|omlaag] (naar|op) ;[van|op] )" + - "zet [het] volume (omhoog|omlaag) ((naar|op) ;[van|op] )" - "(;volume) " + - "(;volume) [op] " requires_context: domain: media_player + - sentences: + - " [het] volume (naar|op) " + - " [het] volume [omhoog|omlaag] (naar|op) " + - "zet [het] volume (omhoog|omlaag) (naar|op) " + - "(;volume)" + requires_context: + area: + slot: true + - sentences: + - " [het] volume (naar|op) " + - "zet [volume][ omhoog| omlaag] (op|naar) " + - " [het] volume ([omhoog|omlaag] (naar|op) ; )" + - "zet [het] volume (omhoog|omlaag) ((naar|op) ; )" + - "( ;volume) " + - "(;volume) " diff --git a/tests/nl/media_player_HassMediaNext.yaml b/tests/nl/media_player_HassMediaNext.yaml index 9011894343..2c907ad1c2 100644 --- a/tests/nl/media_player_HassMediaNext.yaml +++ b/tests/nl/media_player_HassMediaNext.yaml @@ -13,3 +13,33 @@ tests: slots: name: "TV" response: "Volgende wordt afgespeeld" + - sentences: + - "volgende" + - "volgende nummer" + - "sla dit liedje over" + - "sla dit over" + - "sla het huidige nummer over" + - "zet de volgende track op" + - "ga naar het volgende item" + intent: + name: HassMediaNext + slots: + area: "Woonkamer" + context: + area: Woonkamer + response: "Volgende wordt afgespeeld" + - sentences: + - "volgende filmpje in woonkamer" + - "ga naar het volgende liedje in woonkamer" + - "zet in woonkamer op het volgende filmpje" + - "sla het huidige liedje in woonkamer over" + - "zet het volgende nummer in de woonkamer op" + - "ga in de woonkamer naar het volgende nummer" + - "sla dit in de woonkamer over" + intent: + name: HassMediaNext + slots: + area: "Woonkamer" + context: + area: Woonkamer + response: "Volgende wordt afgespeeld" diff --git a/tests/nl/media_player_HassMediaPause.yaml b/tests/nl/media_player_HassMediaPause.yaml index 03a8cbe010..01d7967a1f 100644 --- a/tests/nl/media_player_HassMediaPause.yaml +++ b/tests/nl/media_player_HassMediaPause.yaml @@ -1,8 +1,9 @@ language: nl tests: - sentences: - - "pauzeer TV" + - "pauzeer de film op TV" - "zet TV op pauze" + - "de muziek op TV op pauze zetten" - TV pauzeren intent: name: HassMediaPause @@ -20,3 +21,15 @@ tests: context: area: Woonkamer response: "Gepauzeerd" + - sentences: + - "woonkamer pauze" + - "pauzeer de muziek in de woonkamer" + - "de woonkamer pauzeren" + - "woonkamer op pauze zetten" + intent: + name: HassMediaPause + slots: + area: "Woonkamer" + context: + area: Woonkamer + response: "Gepauzeerd" diff --git a/tests/nl/media_player_HassMediaUnpause.yaml b/tests/nl/media_player_HassMediaUnpause.yaml index 4ffd24e342..635336cf58 100644 --- a/tests/nl/media_player_HassMediaUnpause.yaml +++ b/tests/nl/media_player_HassMediaUnpause.yaml @@ -10,3 +10,26 @@ tests: slots: name: "TV" response: "Hervat" + - sentences: + - "hervatten" + - "liedjes hervatten" + - "zet de muziek weer op afspelen" + - "ga verder met de liedjes" + intent: + name: HassMediaUnpause + slots: + area: "Woonkamer" + context: + area: Woonkamer + response: "Hervat" + - sentences: + - "woonkamer hervatten" + - "hervat de muziek in de woonkamer" + - "de woonkamer hervatten" + intent: + name: HassMediaUnpause + slots: + area: "Woonkamer" + context: + area: Woonkamer + response: "Hervat" diff --git a/tests/nl/media_player_HassSetVolume.yaml b/tests/nl/media_player_HassSetVolume.yaml index eb05796e61..f5bc64107a 100644 --- a/tests/nl/media_player_HassSetVolume.yaml +++ b/tests/nl/media_player_HassSetVolume.yaml @@ -14,3 +14,33 @@ tests: name: "TV" volume_level: 90 response: "Volume aangepast" + - sentences: + - "zet het volume naar 90 procent" + - "verander volume naar 90" + - "Zet het volume omhoog naar 90%" + - "draai het volume omhoog naar 90" + - "verlaag het volume naar 90%" + - "volume 90 procent" + - "volume 90%" + intent: + name: HassSetVolume + context: + area: Woonkamer + slots: + area: "Woonkamer" + volume_level: 90 + response: "Volume aangepast" + - sentences: + - "zet in de woonkamer volume naar 90 procent" + - "verander het woonkamer volume naar 90" + - "Zet het volume in de woonkamer omhoog naar 90%" + - "draai het volume omhoog naar 90 in de woonkamer" + - "verlaag het volume van de woonkamer naar 90%" + - "woonkamer volume 90 procent" + - "volume woonkamer 90%" + intent: + name: HassSetVolume + slots: + area: "Woonkamer" + volume_level: 90 + response: "Volume aangepast" From f186d67ff543ca2e873581206f9b08244b75d6ca Mon Sep 17 00:00:00 2001 From: Martijn van der Pol Date: Sat, 9 Nov 2024 18:14:39 +0100 Subject: [PATCH 47/92] [NL] Finetune HassTurnOff/On for covers and fans & align with EN (#2290) --- sentences/nl/_common.yaml | 2 + sentences/nl/cover_HassTurnOff.yaml | 77 ++++++++++++++++++----------- sentences/nl/cover_HassTurnOn.yaml | 77 ++++++++++++++++++----------- sentences/nl/fan_HassTurnOff.yaml | 32 +++++++----- sentences/nl/fan_HassTurnOn.yaml | 37 +++++++++----- tests/nl/cover_HassTurnOff.yaml | 49 ++++++++++++++---- tests/nl/cover_HassTurnOn.yaml | 65 ++++++++++++++++++------ tests/nl/fan_HassTurnOff.yaml | 29 ++++++++--- tests/nl/fan_HassTurnOn.yaml | 28 ++++++++--- 9 files changed, 278 insertions(+), 118 deletions(-) diff --git a/sentences/nl/_common.yaml b/sentences/nl/_common.yaml index 08386ab877..bf1678e2bb 100644 --- a/sentences/nl/_common.yaml +++ b/sentences/nl/_common.yaml @@ -377,8 +377,10 @@ expansion_rules: # generic expansion rules for sentences name: "[de|het] {name}" area: "[de|het] {area}" + floor: "[de|het] {floor}" in: "[in|op|van|bij]" met: "(door|met|bij)" + hier: "(hier|in deze (kamer|ruimte))" name_area: > ( [[ de|het|een] {area}][ ] diff --git a/sentences/nl/cover_HassTurnOff.yaml b/sentences/nl/cover_HassTurnOff.yaml index ca4a1dce30..e33522765d 100644 --- a/sentences/nl/cover_HassTurnOff.yaml +++ b/sentences/nl/cover_HassTurnOff.yaml @@ -3,34 +3,27 @@ intents: HassTurnOff: data: - sentences: - - "sluit " - - " sluiten" - - "[] " - - " (( willen | kunnen | [ ])|sluiten)" - - " (willen|kunnen) [[ ]|sluiten]" + - "sluit [[ ]]" + - "[[ ]] (sluiten|dicht doen)" + - "[] [[ ]] " response: "cover" requires_context: domain: cover - sentences: - "sluit [de] garage[ ][deur]" - - "[de] garage[ ][deur] sluiten" + - "[de] garage[ ][deur] (sluiten|dicht doen)" - "[] [de] garage[ ][deur] " - - " [de] garage[ ][deur] (( willen | kunnen | [ ])|sluiten)" - - " [de] garage[ ][deur] (kunnen|willen) [[ ]|sluiten]" response: "cover_device_class" slots: device_class: "garage" domain: "cover" - sentences: - - sluit - - sluiten - - "[] ( | )" - - " (( willen | kunnen | [ ])|sluiten)" - - " (( willen | kunnen | [ ])|sluiten) " - - " (willen|kunnen) [[ ]|sluiten]" - - " (willen|kunnen) [[ ]|sluiten] " + - "sluit ([[ ]]; (|))" + - "([[ ]]; (|)) (sluiten|dicht doen)" + - "[] (|) [[ ]] " + - "[] [[ ]] (; (|))" response: "cover" requires_context: device_class: @@ -41,25 +34,20 @@ intents: domain: "cover" - sentences: - - sluit [de|het] - - "[de|het] sluiten" - - "[] [de|het] ( | )" - - " [de|het] (( willen | kunnen | [ ])|sluiten)" - - " [de|het] (( willen | kunnen | [ ])|sluiten) " - - " [de|het] (willen|kunnen) [[ ]|sluiten]" - - " [de|het] (willen|kunnen) [[ ]|sluiten] " + - "sluit ([de|het] ; (|))" + - "([de|het] ; (|)) (sluiten|dicht doen)" + - "[] (|) [de|het] " + - "[] [de|het] (; (|))" response: "cover" slots: device_class: "curtain" domain: "cover" - sentences: - - sluit [de|het] (||) - - "[] [de|het] (||) ( | )" - - " [de|het] (||) (( willen | kunnen | [ ])|sluiten)" - - " [de|het] (||) (( willen | kunnen | [ ])|sluiten) " - - " [de|het] (||) (willen|kunnen) [[ ]|sluiten]" - - " [de|het] (||) (willen|kunnen) [[ ]|sluiten] " + - "sluit [de|het] (||) (|)" + - "([de|het] (||); (|)) (sluiten|dicht doen)" + - "[] (|) [de|het] (||) " + - "[] [de|het] (||) (; (|))" response: "cover" slots: device_class: @@ -67,3 +55,36 @@ intents: - "shutter" - "shade" domain: "cover" + + - sentences: + - "sluit [de|het] " + - "sluit ([de|het] ;)" + - "[de|het] (sluiten|dicht doen)" + - "([de|het] ;) (sluiten|dicht doen)" + - "[] [de|het] [] " + - "[] ([de|het] ;)" + response: "cover" + slots: + device_class: "curtain" + domain: "cover" + requires_context: + area: + slot: true + + - sentences: + - "sluit [de|het] (||)" + - "sluit ([de|het] (||);)" + - "[de|het] (||) (sluiten|dicht doen)" + - "([de|het] (||);) (sluiten|dicht doen)" + - "[] [de|het] (||) [] " + - "[] ([de|het] (||) ;)" + response: "cover" + slots: + device_class: + - "blind" + - "shutter" + - "shade" + domain: "cover" + requires_context: + area: + slot: true diff --git a/sentences/nl/cover_HassTurnOn.yaml b/sentences/nl/cover_HassTurnOn.yaml index cc2c1739ef..16b00cae80 100644 --- a/sentences/nl/cover_HassTurnOn.yaml +++ b/sentences/nl/cover_HassTurnOn.yaml @@ -3,34 +3,27 @@ intents: HassTurnOn: data: - sentences: - - "open " - - " openen" - - "[] " - - " (( willen | kunnen | [ ])|openen)" - - " (willen|kunnen) [[ ]|openen]" + - "open [[ ]]" + - "[[ ]] (openen|open doen)" + - "[] [[ ]] " response: "cover" requires_context: domain: cover - sentences: - "open [de] garage[ ][deur]" - - "[de] garage[ ][deur] openen" + - "[de] garage[ ][deur] (openen|open doen)" - "[] [de] garage[ ][deur] " - - " [de] garage[ ][deur] (( willen | kunnen | [ ])|openen)" - - " [de] garage[ ][deur] (kunnen|willen) [[ ]|openen]" response: "cover_device_class" slots: device_class: "garage" domain: "cover" - sentences: - - open - - openen - - "[] ( | )" - - " (( willen | kunnen | [ ])|openen)" - - " (( willen | kunnen | [ ])|openen) " - - " (willen|kunnen) [[ ]|openen]" - - " (willen|kunnen) [[ ]|openen] " + - "open ([[ ]]; (|))" + - "([[ ]]; (|)) (openen|open doen)" + - "[] (|) [[ ]] " + - "[] [[ ]] (; (|))" response: "cover" requires_context: device_class: @@ -41,25 +34,20 @@ intents: domain: "cover" - sentences: - - open [de|het] - - "[de|het] openen" - - "[] [de|het] ( | )" - - " [de|het] (( willen | kunnen | [ ])|openen)" - - " [de|het] (( willen | kunnen | [ ])|openen) " - - " [de|het] (willen|kunnen) [[ ]|openen]" - - " [de|het] (willen|kunnen) [[ ]|openen] " + - "open ([de|het] ; (|))" + - "([de|het] ; (|)) (openen|open doen)" + - "[] (|) [de|het] " + - "[] [de|het] (; (|))" response: "cover" slots: device_class: "curtain" domain: "cover" - sentences: - - open [de|het] (||) - - "[] [de|het] (||) ( | )" - - " [de|het] (||) (( willen | kunnen | [ ])|openen)" - - " [de|het] (||) (( willen | kunnen | [ ])|openen) " - - " [de|het] (||) (willen|kunnen) [[ ]|openen]" - - " [de|het] (||) (willen|kunnen) [[ ]|openen] " + - "open [de|het] (||) (|)" + - "([de|het] (||); (|)) (openen|open doen)" + - "[] (|) [de|het] (||) " + - "[] [de|het] (||) (; (|))" response: "cover" slots: device_class: @@ -67,3 +55,36 @@ intents: - "shutter" - "shade" domain: "cover" + + - sentences: + - "open [de|het] " + - "open ([de|het] ;)" + - "[de|het] (openen|open doen)" + - "([de|het] ;) (openen|open doen)" + - "[] [de|het] [] " + - "[] ([de|het] ;)" + response: "cover" + slots: + device_class: "curtain" + domain: "cover" + requires_context: + area: + slot: true + + - sentences: + - "open [de|het] (||)" + - "open ([de|het] (||);)" + - "[de|het] (||) (openen|open doen)" + - "([de|het] (||);) (openen|open doen)" + - "[] [de|het] (||) [] " + - "[] ([de|het] (||) ;)" + response: "cover" + slots: + device_class: + - "blind" + - "shutter" + - "shade" + domain: "cover" + requires_context: + area: + slot: true diff --git a/sentences/nl/fan_HassTurnOff.yaml b/sentences/nl/fan_HassTurnOff.yaml index 70d2bff917..2a896fe09b 100644 --- a/sentences/nl/fan_HassTurnOff.yaml +++ b/sentences/nl/fan_HassTurnOff.yaml @@ -3,25 +3,33 @@ intents: HassTurnOff: data: - sentences: - - "[] [] [] uit " - - " [] [] (uit willen |uit kunnen |uit[ ]) " - - "[] [] [] uit" - - " [] [] (uit willen |uit kunnen |uit[ ])" - - "[] [(|)] [ ] [] uit" - - " [(|)] [ ] [] (uit willen |uit kunnen |uit[ ])" - - " [(|)] [[ ]] [ ] [willen|kunnen] (uit[ ](zetten|doen)|uitschakelen)" - - "[(|)] [[ ]] [ ] (uit[ ](zetten|doen)|uitschakelen)" + - "[] [] ([] uit; (|))" + - "[] [] ( (|);[] uit)" + - "[] [(|)] (|)[ ] [] uit" + - "[] (|)[ ] (uit[ ](zetten|doen)|uitschakelen)" + - "([] (|);[] ) (uit[ ](zetten|doen)|uitschakelen)" + - "[] [] (|) (uit[ ](zetten|doen)|uitschakelen)" response: fans_area slots: domain: "fan" - name: "all" - sentences: - "[] ((overal|) | overal) uit" - - " ((overal|) | overal) (uit willen |uit kunnen |uit[ ])" - - " ((overal|) | overal) [willen|kunnen] (uit[ ](zetten|doen)|uitschakelen)" - "((overal|) | overal) (uit[ ](zetten|doen)|uitschakelen)" response: "fan_all" slots: domain: "fan" - name: "all" + + - sentences: + - "[] [] uit" + - "[] (;[alle] ) [] uit" + - "[] [alle] [] uit " + - "[alle] (;(uit[ ](zetten|doen)|uitschakelen))" + - " [alle] (uit[ ](zetten|doen)|uitschakelen)" + - " (uit[ ](zetten|doen)|uitschakelen)" + response: "fans_area" + slots: + domain: fan + requires_context: + area: + slot: true diff --git a/sentences/nl/fan_HassTurnOn.yaml b/sentences/nl/fan_HassTurnOn.yaml index f13844d26c..7861162f3f 100644 --- a/sentences/nl/fan_HassTurnOn.yaml +++ b/sentences/nl/fan_HassTurnOn.yaml @@ -3,17 +3,32 @@ intents: HassTurnOn: data: - sentences: - - "[] [] [] aan " - - " [] [] [[aan willen |aan kunnen |aan[ ]]] " - - "Schakel [] [] in " - - "[] [] [] aan" - - " [] [] [[aan willen |aan kunnen |aan[ ]]]" - - "Schakel [] [] in" - - "[] [(|)] [] aan" - - " [(|)] [] [[aan willen |aan kunnen |aan[ ]]]" - - "Schakel [(|)] [ ] [] in" - - "[] [(|)] [[ ]] [ ] [willen|kunnen] (aan[ ](zetten|doen)|inschakelen)" + - "[] [] ([] aan; (|))" + - "Schakel [] ([] in; (|))" + - "[] [] ( (|);[] aan)" + - "Schakel [] ( (|);[] in)" + - "[] [(|)] (|)[ ] [] aan" + - "Schakel [(|)] (|)[ ] [] in" + - "[] (|)[ ] (aan[ ](zetten|doen)|inschakelen)" + - "([] (|);[] ) (aan[ ](zetten|doen)|inschakelen)" + - "[] [] (|) (aan[ ](zetten|doen)|inschakelen)" response: fans_area slots: domain: "fan" - name: "all" + + - sentences: + - "[] [] aan" + - "schakel [] in" + - "[] (;[alle] ) [] aan" + - "schakel (;[alle] ) [] in" + - "[] [alle] [] aan " + - "schakel [alle] [] in " + - "[alle] (;(aan[ ](zetten|doen)|inschakelen))" + - " [alle] (aan[ ](zetten|doen)|inschakelen)" + - " (aan[ ](zetten|doen)|inschakelen)" + response: "fans_area" + slots: + domain: fan + requires_context: + area: + slot: true diff --git a/tests/nl/cover_HassTurnOff.yaml b/tests/nl/cover_HassTurnOff.yaml index d1816812c3..1fe9044893 100644 --- a/tests/nl/cover_HassTurnOff.yaml +++ b/tests/nl/cover_HassTurnOff.yaml @@ -4,8 +4,6 @@ tests: - Sluit het gordijn links - Doe het gordijn links dicht - Maak het gordijn links dicht - - Zal je het gordijn links dicht willen doen? - - Zou je het gordijn links willen dichtdoen? intent: name: HassTurnOff slots: @@ -33,8 +31,6 @@ tests: - Sluit de garage - Doe de garage deur dicht - Garagedeur dicht - - Zou de garagedeur dicht mogen? - - Kun je de garagedeur sluiten? intent: name: HassTurnOff slots: @@ -49,8 +45,6 @@ tests: - Gordijn links in woonkamer dicht - Gordijn links dicht in woonkamer - Sluit gordijn links woonkamer - - Zal je het gordijn links in de woonkamer dicht willen doen? - - Zal je het gordijn links in de woonkamer kunnen sluiten? intent: name: HassTurnOff slots: @@ -67,7 +61,6 @@ tests: - Maak het rolluik achterdeur in keuken naar beneden - Rolluik achterdeur in keuken omlaag - Rolluik achterdeur keuken naar beneden - - Zal je het rolluik achterdeur in de keuken kunnen sluiten? intent: name: HassTurnOff slots: @@ -80,7 +73,11 @@ tests: - sentences: - Sluit het gordijn in de woonkamer - - Mogen de gordijnen dicht in de woonkamer + - sluit in de woonkamer de gordijnen + - doe het gordijn in de woonkamer dicht + - doe in de woonkamer het gordijn dicht + - gordijn in de woonkamer sluiten + - in de woonkamer het gordijn sluiten intent: name: HassTurnOff slots: @@ -96,8 +93,6 @@ tests: - Jaloezie woonkamer dicht - Rolluiken woonkamer omlaag - Doe de rolluiken in de woonkamer naar beneden - - Zal je de rolluiken in de woonkamer willen sluiten? - - Zou je de screens in de woonkamer kunnen sluiten? intent: name: HassTurnOff slots: @@ -105,3 +100,37 @@ tests: device_class: blind domain: cover response: Gesloten + + - sentences: + - Sluit het gordijn hier + - Doe hier de gordijnen dicht + - gordijnen hier sluiten + - hier de gordijnen sluiten + - doe de gordijnen in deze kamer dicht + - sluit hier het gordijn + intent: + name: HassTurnOff + context: + area: Woonkamer + slots: + device_class: curtain + area: Woonkamer + domain: cover + response: Gesloten + + - sentences: + - Mag hier de luxaflex dicht + - Sluit de screens hier + - Mag het screen hier dicht? + - Jaloezie dicht + - Jaloezieën in deze ruimte omlaag + - Doe hier de rolluiken naar beneden + intent: + name: HassTurnOff + context: + area: Woonkamer + slots: + device_class: blind + area: Woonkamer + domain: cover + response: Gesloten diff --git a/tests/nl/cover_HassTurnOn.yaml b/tests/nl/cover_HassTurnOn.yaml index d6fa5ab83c..c30a3f8f37 100644 --- a/tests/nl/cover_HassTurnOn.yaml +++ b/tests/nl/cover_HassTurnOn.yaml @@ -18,7 +18,7 @@ tests: - Open gordijn links - Doe het gordijn links open - Maak gordijn links open - - Zal je het gordijn links open willen doen? + - Gordijn links open doen intent: name: HassTurnOn slots: @@ -32,7 +32,7 @@ tests: - Open de garagedeur - Doe de garage open - Garage deur open - - Zou je de garagedeur open willen zetten + - Garagedeur open doen intent: name: HassTurnOn slots: @@ -41,13 +41,12 @@ tests: response: Garage geopend - sentences: - - Open gordijn links in de woonkamer - - Doe gordijn links in de woonkamer open - - Maak het gordijn links in woonkamer open + - Open het gordijn links in de woonkamer + - Doe het gordijn links in de woonkamer open + - Maak het gordijn links in de woonkamer open - Gordijn links in woonkamer open - - Gordijn links woonkamer open - - Zal je het gordijn links in de woonkamer open willen doen? - - Zal je het gordijn links in de woonkamer kunnen openen? + - Gordijn links open in woonkamer + - Open gordijn links woonkamer intent: name: HassTurnOn slots: @@ -62,8 +61,8 @@ tests: - Open rolluik achterdeur in de keuken - Doe rolluik achterdeur in de keuken omhoog - Maak het rolluik achterdeur in keuken naar boven - - Rolluik achterdeur keuken omhoog - - Zal je het rolluik achterdeur in de keuken kunnen openen? + - Rolluik achterdeur in keuken omhoog + - Rolluik achterdeur keuken naar boven intent: name: HassTurnOn slots: @@ -76,9 +75,11 @@ tests: - sentences: - Open het gordijn in de woonkamer - - Vitrage woonkamer open - - Mogen de gordijnen open in de woonkamer - - Zal je het gordijn in de woonkamer willen openen? + - Open in de woonkamer de gordijnen + - doe het gordijn in de woonkamer open + - doe in de woonkamer het gordijn open + - gordijn in de woonkamer openen + - in de woonkamer het gordijn open doen intent: name: HassTurnOn slots: @@ -90,10 +91,8 @@ tests: - sentences: - Mag de luxaflex open in de woonkamer - Open de screens in de woonkamer - - Open screens woonkamer - - Jaloezieën woonkamer open - - Rolluik omhoog in woonkamer - Mag het screen in de woonkamer open? + - Jaloezie woonkamer open - Rolluiken woonkamer omhoog - Doe de rolluiken in de woonkamer naar boven intent: @@ -103,3 +102,37 @@ tests: device_class: blind domain: cover response: Geopend + + - sentences: + - Open het gordijn in deze kamer + - Doe hier de gordijnen open + - gordijnen hier openen + - hier de gordijnen openen + - doe de gordijnen hier open + - Open hier het gordijn + intent: + name: HassTurnOn + context: + area: Woonkamer + slots: + device_class: curtain + area: Woonkamer + domain: cover + response: Geopend + + - sentences: + - Mag hier de luxaflex open + - Open de screens in deze ruimte + - Mag het screen hier open? + - Jaloezie open + - Jaloezieën hier omhoog + - Doe hier de rolluiken naar boven + intent: + name: HassTurnOn + context: + area: Woonkamer + slots: + device_class: blind + area: Woonkamer + domain: cover + response: Geopend diff --git a/tests/nl/fan_HassTurnOff.yaml b/tests/nl/fan_HassTurnOff.yaml index f6dab96f12..0775ed1e5e 100644 --- a/tests/nl/fan_HassTurnOff.yaml +++ b/tests/nl/fan_HassTurnOff.yaml @@ -7,7 +7,7 @@ tests: - Doe de ventilatoren in de woonkamer uit - Zet de ventilator in het woonkamer op uit - Doe alle ventilatoren uit in de woonkamer - - Mogen de ventilators uit in de woonkamer? + - Mogen in de woonkamer de ventilators uit? - Zet alle ventilators in het woonkamer op uit - Zet alle woonkamer ventilatoren uit - Schakel in de woonkamer de ventilators uit @@ -16,16 +16,13 @@ tests: - Mogen in de woonkamer de ventilatoren op uit? - Woonkamer ventilatoren uit - Ventilators woonkamer uit - - Zal je de ventilator in de woonkamer uit willen doen? - - Zal je de woonkamer ventilatoren uit willen doen? - Alle woonkamerventilators uitschakelen - - Zou u de ventilatoren in de woonkamer willen uitzetten? intent: name: HassTurnOff slots: area: Woonkamer domain: fan - name: all + response: Ventilatoren uitgezet - sentences: - Doe overal de ventilator uit @@ -36,9 +33,27 @@ tests: - Schakel ventilatoren overal uit - Zet de ventilator overal uit - Mag de ventilator overal uit? - - Zal je alle ventilatoren uit willen doen? intent: name: HassTurnOff slots: domain: fan - name: all + response: Alle ventilatoren uitgezet + + - sentences: + - Mag hier de ventilator uit + - Zet de ventilatoren in deze kamer uit + - Mag de ventilator uit in deze ruimte? + - Ventilator uit + - Ventilatoren in deze ruimte uit + - Doe hier de ventilator uit + - "hier de ventilatoren uitzetten" + - "ventilatoren uitschakelen" + - "ventilator uit doen hier" + intent: + name: HassTurnOff + context: + area: Woonkamer + slots: + area: Woonkamer + domain: fan + response: Ventilatoren uitgezet diff --git a/tests/nl/fan_HassTurnOn.yaml b/tests/nl/fan_HassTurnOn.yaml index c048b29183..bd512fc0d2 100644 --- a/tests/nl/fan_HassTurnOn.yaml +++ b/tests/nl/fan_HassTurnOn.yaml @@ -6,8 +6,8 @@ tests: - Doe de ventilator aan in de woonkamer - Doe de ventilator in de woonkamer aan - Zet de ventilatoren in woonkamer op aan - - Schakel de ventilators in de woonkamer in - - Doe de ventilators aan in de woonkamer + - Schakel in de woonkamer de ventilators in + - Doe de ventilators in de woonkamer aan - Schakel alle ventilatoren in de woonkamer in - Ventilatoren woonkamer aan - Doe alle woonkamer ventilators aan @@ -17,13 +17,29 @@ tests: - Mogen in de woonkamer de ventilators aan? - Zet in de woonkamer de ventilator aan - Woonkamer ventilator aan - - Zal je de ventilator in de woonkamer aan willen doen? - - Zal je de woonkamer ventilatoren aan willen doen? - Alle woonkamerventilatoren inschakelen - - Zou u de ventilatoren in de woonkamer willen aan zetten? intent: name: HassTurnOn slots: area: Woonkamer domain: fan - name: all + response: Ventilatoren aangezet + + - sentences: + - Mag hier de ventilator aan + - Zet de ventilatoren in deze kamer aan + - Mag de ventilator aan in deze ruimte? + - Ventilator aan + - Ventilatoren in deze ruimte aan + - Doe hier de ventilator aan + - "hier de ventilatoren aanzetten" + - "ventilatoren inschakelen" + - "ventilator aan doen hier" + intent: + name: HassTurnOn + context: + area: Woonkamer + slots: + area: Woonkamer + domain: fan + response: Ventilatoren aangezet From 7e4f08fa5598a934aab6133fe14806920bd24915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Gir=C3=B3n?= Date: Sat, 9 Nov 2024 18:40:25 +0100 Subject: [PATCH 48/92] [CA] Add HassRespond intent (#2462) * [CA] Add HassRespond intent * add more tests * pre-commit run --- responses/ca/HassRespond.yaml | 10 ++++++ sentences/ca/homeassistant_HassRespond.yaml | 26 +++++++++++++++ tests/ca/homeassistant_HassRespond.yaml | 36 +++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 responses/ca/HassRespond.yaml create mode 100644 sentences/ca/homeassistant_HassRespond.yaml create mode 100644 tests/ca/homeassistant_HassRespond.yaml diff --git a/responses/ca/HassRespond.yaml b/responses/ca/HassRespond.yaml new file mode 100644 index 0000000000..7279631f0f --- /dev/null +++ b/responses/ca/HassRespond.yaml @@ -0,0 +1,10 @@ +language: ca +responses: + intents: + HassRespond: + hello: "Salutacions des de Home Assistant." + listening: "No, jo només enregistro la veu quan em dius la paraula d'activació." + data: "Les teves dades s'envien al teu servidor de Home Assistant." + commands: "Per aprendre qué pots preguntar, visita, H, A, punt I, O, barra, vois." + creator: "Vaig néixer i créixer gràcies a la meravellosa comunitat de Home + Assistant, formada per voluntaris talentosos d'arreu del mon." diff --git a/sentences/ca/homeassistant_HassRespond.yaml b/sentences/ca/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..87b081db68 --- /dev/null +++ b/sentences/ca/homeassistant_HassRespond.yaml @@ -0,0 +1,26 @@ +language: ca +intents: + HassRespond: + data: + - sentences: + - "(hola|salutacions|que passa|que tal) [home assistant|nabu]" + response: hello + + - sentences: + - "(tu|que) [sempre] (graves|registres|enregistres) el que dic" + - "que m'espies" + - "que m'estàs (espiant|gravant)" + response: listening + + - sentences: + - "[cap|cap a] on van les [meves] dades" + response: data + + - sentences: + - "que puc (dir|preguntar)[-te]" + response: commands + + - sentences: + - "qui t'ha creat" + - "qui es el teu creador" + response: creator diff --git a/tests/ca/homeassistant_HassRespond.yaml b/tests/ca/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..704201f007 --- /dev/null +++ b/tests/ca/homeassistant_HassRespond.yaml @@ -0,0 +1,36 @@ +language: ca +tests: + - sentences: + - "hola home assistant" + intent: + name: HassRespond + response: "Salutacions des de Home Assistant." + + - sentences: + - "tu sempre graves el que dic?" + - "que registres el que dic?" + - "que m'espies?" + - "que m'estàs espiant?" + intent: + name: HassRespond + response: "No, jo només enregistro la veu quan em dius la paraula d'activació." + + - sentences: + - "cap on van les meves dades?" + intent: + name: HassRespond + response: "Les teves dades s'envien al teu servidor de Home Assistant." + + - sentences: + - "que puc preguntar-te?" + intent: + name: HassRespond + response: "Per aprendre qué pots preguntar, visita, H, A, punt I, O, barra, vois." + + - sentences: + - "qui t'ha creat?" + - "qui es el teu creador?" + intent: + name: HassRespond + response: "Vaig néixer i créixer gràcies a la meravellosa comunitat de Home + Assistant, formada per voluntaris talentosos d'arreu del mon." From b3218aa090f5da7fbd4e7e80ca384257a82805ae Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Sun, 10 Nov 2024 12:23:48 +0100 Subject: [PATCH 49/92] [DE] Add de HassRespond translations (#2453) --- responses/de/HassRespond.yaml | 9 +++ sentences/de/homeassistant_HassRespond.yaml | 25 ++++++++ tests/de/homeassistant_HassRespond.yaml | 69 +++++++++++++++++++++ 3 files changed, 103 insertions(+) create mode 100644 responses/de/HassRespond.yaml create mode 100644 sentences/de/homeassistant_HassRespond.yaml create mode 100644 tests/de/homeassistant_HassRespond.yaml diff --git a/responses/de/HassRespond.yaml b/responses/de/HassRespond.yaml new file mode 100644 index 0000000000..e8582b239b --- /dev/null +++ b/responses/de/HassRespond.yaml @@ -0,0 +1,9 @@ +language: de +responses: + intents: + HassRespond: + hello: "Hallo vom Home Assistant." + listening: "Nein, ich höre nur zu, wenn du das Signalwort sprichst." + data: "Deine Daten liegen auf deinem Home Assistant server." + commands: "Um zu erfahren, was du alles fragen oder sagen kannst, besuche Home Minus Assistant Punkt I.O. Slash voice." + creator: "Ich wurde von der großartigen Home Assistant-Community entwickelt, welche sich aus Bastlern aus aller Welt zusammensetzt." diff --git a/sentences/de/homeassistant_HassRespond.yaml b/sentences/de/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..90faeda32c --- /dev/null +++ b/sentences/de/homeassistant_HassRespond.yaml @@ -0,0 +1,25 @@ +language: de +intents: + HassRespond: + data: + - sentences: + - "(Hallo|Hi|Hey|Guten Tag) [Home Assistant]" + response: hello + + - sentences: + - "Hörst du [eigentlich ](die ganze Zeit|ständig|permanent) zu" + - "(Nimmst|Zeichnest) du [eigentlich ](die ganze Zeit|ständig|permanent) auf" + response: listening + + - sentences: + - "Wo (sind|gehen) [eigentlich ](meine|die) Daten[ hin]" + response: data + + - sentences: + - "Was kann ich dich [eigentlich ][alles ]fragen" + - "Was kann ich dir [eigentlich ][alles ]sagen" + response: commands + + - sentences: + - "Wer hat dich [eigentlich ](gemacht|hergestellt|erfunden|erschaffen)" + response: creator diff --git a/tests/de/homeassistant_HassRespond.yaml b/tests/de/homeassistant_HassRespond.yaml new file mode 100644 index 0000000000..f3c02048ee --- /dev/null +++ b/tests/de/homeassistant_HassRespond.yaml @@ -0,0 +1,69 @@ +language: de +tests: + - sentences: + - "hallo home assistant" + - "hi home assistant" + - "hey home assistant" + - "guten tag home assistant" + - "guten tag" + intent: + name: HassRespond + response: "Hallo vom Home Assistant." + + - sentences: + - "hörst du die ganze Zeit zu?" + - "hörst du eigentlich die ganze Zeit zu?" + - "hörst du ständig zu?" + - "hörst du permanent zu?" + - "nimmst du die ganze Zeit auf?" + - "nimmst du eigentlich die ganze Zeit auf?" + - "nimmst du ständig auf?" + - "nimmst du permanent auf?" + - "zeichnest du die ganze Zeit auf?" + - "zeichnest du eigentlich die ganze Zeit auf?" + - "zeichnest du ständig auf?" + - "zeichnest du permanent auf?" + intent: + name: HassRespond + response: "Nein, ich höre nur zu, wenn du das Signalwort sprichst." + + - sentences: + - "Wo sind meine Daten?" + - "Wo sind meine Daten hin?" + - "Wo sind eigentlich meine Daten hin?" + - "Wo sind die Daten?" + - "Wo sind die Daten hin?" + - "Wo sind eigentlich die Daten hin?" + - "Wo gehen meine Daten hin?" + - "Wo gehen eigentlich meine Daten hin?" + - "Wo gehen die Daten hin?" + - "Wo gehen eigentlich die Daten hin?" + intent: + name: HassRespond + response: "Deine Daten liegen auf deinem Home Assistant server." + + - sentences: + - "Was kann ich dich fragen?" + - "Was kann ich dich eigentlich fragen?" + - "Was kann ich dich eigentlich alles fragen?" + - "Was kann ich dich alles fragen?" + - "Was kann ich dir sagen?" + - "Was kann ich dir eigentlich sagen?" + - "Was kann ich dir eigentlich alles sagen?" + - "Was kann ich dir alles sagen?" + intent: + name: HassRespond + response: "Um zu erfahren, was du alles fragen oder sagen kannst, besuche Home Minus Assistant Punkt I.O. Slash voice." + + - sentences: + - "Wer hat dich gemacht?" + - "Wer hat dich hergestellt?" + - "Wer hat dich erfunden?" + - "Wer hat dich erschaffen?" + - "Wer hat dich eigentlich gemacht?" + - "Wer hat dich eigentlich hergestellt?" + - "Wer hat dich eigentlich erfunden?" + - "Wer hat dich eigentlich erschaffen?" + intent: + name: HassRespond + response: "Ich wurde von der großartigen Home Assistant-Community entwickelt, welche sich aus Bastlern aus aller Welt zusammensetzt." From 6b1e75241ab7fa5f4987eb5caf14b06c700425df Mon Sep 17 00:00:00 2001 From: Andrej <44124120+andrejs2@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:13:26 +0100 Subject: [PATCH 50/92] [SL] running states enhanced (#2487) --- sentences/sl/_common.yaml | 2 +- tests/sl/binary_sensor_HassGetState.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sentences/sl/_common.yaml b/sentences/sl/_common.yaml index 1b82a1d4cf..d0938e9a7d 100644 --- a/sentences/sl/_common.yaml +++ b/sentences/sl/_common.yaml @@ -282,7 +282,7 @@ lists: bs_running_states: values: - - in: "(deluje[jo|ta] | delujoč[e|i] | obratu(je|jejo|jeta|joč|joči[h]|joča) | laufa[jo|ta|joč|joči[h]])" + - in: "(del(a|ajo|uje|ujejo|ujeta) | delujoč[e|i] | obratu(je|jejo|jeta|joč|joči[h]|joča) | laufa[jo|ta|joč|joči[h]])" out: "on" - in: "(ne deluje | nedelujoč | ne obratuje | ne laufa)" out: "off" diff --git a/tests/sl/binary_sensor_HassGetState.yaml b/tests/sl/binary_sensor_HassGetState.yaml index f144bf7f1a..2449dc3767 100644 --- a/tests/sl/binary_sensor_HassGetState.yaml +++ b/tests/sl/binary_sensor_HassGetState.yaml @@ -1115,6 +1115,7 @@ tests: # Running - sentences: - "ali pralni stroj deluje?" + - "ali pralni stroj še dela?" - "pralni stroj še laufa?" - "pralni stroj že obratuje?" - "ali je pralni stroj še delujoč?" From 269647778c4dfdd4719d7d4687b717c31215b4ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Gir=C3=B3n?= Date: Sun, 10 Nov 2024 18:22:17 +0100 Subject: [PATCH 51/92] [CA] add HassCancelTimer (#2488) --- responses/ca/HassCancelTimer.yaml | 6 +++ sentences/ca/_common.yaml | 38 +++++++++++++++++++ .../ca/homeassistant_HassCancelTimer.yaml | 10 +++++ tests/ca/homeassistant_HassCancelTimer.yaml | 38 +++++++++++++++++++ 4 files changed, 92 insertions(+) create mode 100644 responses/ca/HassCancelTimer.yaml create mode 100644 sentences/ca/homeassistant_HassCancelTimer.yaml create mode 100644 tests/ca/homeassistant_HassCancelTimer.yaml diff --git a/responses/ca/HassCancelTimer.yaml b/responses/ca/HassCancelTimer.yaml new file mode 100644 index 0000000000..8905576d54 --- /dev/null +++ b/responses/ca/HassCancelTimer.yaml @@ -0,0 +1,6 @@ +--- +language: ca +responses: + intents: + HassCancelTimer: + default: "Temporitzador cancel·lat" diff --git a/sentences/ca/_common.yaml b/sentences/ca/_common.yaml index 13ef7f64de..6b1e8628fe 100644 --- a/sentences/ca/_common.yaml +++ b/sentences/ca/_common.yaml @@ -114,6 +114,29 @@ lists: type: "percentage" from: 0 to: 100 + timer_seconds: + range: + from: 1 + to: 100 + timer_minutes: + range: + from: 1 + to: 100 + timer_hours: + range: + from: 1 + to: 100 + timer_half: + values: + - in: "mitja" + out: 30 + - in: "1/2" + out: 30 + timer_name: + wildcard: true + timer_command: + wildcard: true + expansion_rules: actual: "(ara|actual[ment])" pronom_singular: "(el|la|l')[ ]" @@ -143,6 +166,21 @@ expansion_rules: element: "(element|ítem|pista|cançó|tema|tonada|mitjà|canal|recurs|vídeo|clip|film)" reproduir: "(reprodu(ir|eix)|posa[r]|fica[r]|salta[r]|passa[r]|canvia[r])" reactiva: "(reactiva[r]|continua[r]|segu(ir|eix))" + hora: "hor(a|es)" + + # Timers + timer_set: "(posa|crea|comença|inicia|activa)[r]" + timer_cancel: "(cancel·la|atura|para|deixa|elimina)[r]" + timer_duration_seconds: "{timer_seconds:seconds} segon[s]" + timer_duration_minutes: "({timer_minutes:minutes} minut[s][ [i ]{timer_seconds:seconds} segon[s]])|({timer_minutes:minutes} i[ a] {timer_half:seconds} minut[s])|({timer_half:seconds} a minut[s])" + timer_duration_hours: "({timer_hours:hours} [i ]{timer_minutes:minutes} minut[s][ [i ]{timer_seconds:seconds} segon[s]])|({timer_hours:hours} i {timer_half:minutes})|({timer_half:minutes} )" + timer_duration: "||" + + timer_start_seconds: "{timer_seconds:start_seconds} segon[s]" + timer_start_minutes: "{timer_minutes:start_minutes} minut[s][ [i ]{timer_seconds:start_seconds} segon[s]]" + timer_start_hours: "{timer_hours:start_hours} [i ]{timer_minutes:start_minutes} minut[s][ [i ]{timer_seconds:start_seconds} segon[s]]" + timer_start: "||" + skip_words: - si us plau - vinga diff --git a/sentences/ca/homeassistant_HassCancelTimer.yaml b/sentences/ca/homeassistant_HassCancelTimer.yaml new file mode 100644 index 0000000000..79c7083c5b --- /dev/null +++ b/sentences/ca/homeassistant_HassCancelTimer.yaml @@ -0,0 +1,10 @@ +--- +language: ca +intents: + HassCancelTimer: + data: + - sentences: + - " [el] temporitzador" + - " [el] temporitzador de[ls] " + - " [el] temporitzador [de|en] " + - " [el] temporitzador [de] {timer_name:name}" diff --git a/tests/ca/homeassistant_HassCancelTimer.yaml b/tests/ca/homeassistant_HassCancelTimer.yaml new file mode 100644 index 0000000000..b36fa73146 --- /dev/null +++ b/tests/ca/homeassistant_HassCancelTimer.yaml @@ -0,0 +1,38 @@ +--- +language: ca +tests: + - sentences: + - atura el temporitzador + - para el temporitzador + - cancel·la temporitzador + intent: + name: HassCancelTimer + response: Temporitzador cancel·lat + + - sentences: + - cancel·la el temporitzador de 5 minuts + - atura el temporitzador de 5 minuts + - para el temporitzador dels 5 minuts + intent: + name: HassCancelTimer + slots: + start_minutes: 5 + response: Temporitzador cancel·lat + + - sentences: + - "atura el temporitzador de la pizza" + intent: + name: HassCancelTimer + slots: + name: + - "la pizza " + - "la pizza" + response: Temporitzador cancel·lat + + - sentences: + - atura el temporitzador de la cuina + intent: + name: HassCancelTimer + slots: + area: Cuina + response: Temporitzador cancel·lat From b52fb3969295595ef5ad672769429b750a7c7008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Gir=C3=B3n?= Date: Sun, 10 Nov 2024 19:53:44 +0100 Subject: [PATCH 52/92] [CA] Add GetCurrentTime and GetCurrentDate (#2489) --- responses/ca/HassGetCurrentDate.yaml | 27 ++++++++++ responses/ca/HassGetCurrentTime.yaml | 52 +++++++++++++++++++ .../ca/homeassistant_HassGetCurrentDate.yaml | 7 +++ .../ca/homeassistant_HassGetCurrentTime.yaml | 10 ++++ .../ca/homeassistant_HassGetCurrentDate.yaml | 8 +++ .../ca/homeassistant_HassGetCurrentTime.yaml | 42 +++++++++++++++ 6 files changed, 146 insertions(+) create mode 100644 responses/ca/HassGetCurrentDate.yaml create mode 100644 responses/ca/HassGetCurrentTime.yaml create mode 100644 sentences/ca/homeassistant_HassGetCurrentDate.yaml create mode 100644 sentences/ca/homeassistant_HassGetCurrentTime.yaml create mode 100644 tests/ca/homeassistant_HassGetCurrentDate.yaml create mode 100644 tests/ca/homeassistant_HassGetCurrentTime.yaml diff --git a/responses/ca/HassGetCurrentDate.yaml b/responses/ca/HassGetCurrentDate.yaml new file mode 100644 index 0000000000..e1015932eb --- /dev/null +++ b/responses/ca/HassGetCurrentDate.yaml @@ -0,0 +1,27 @@ +language: ca +responses: + intents: + HassGetCurrentDate: + default: > + {% set months = { + 1: 'gener', + 2: 'febrer', + 3: 'març', + 4: 'abril', + 5: 'maig', + 6: 'juny', + 7: 'juliol', + 8: 'agost', + 9: 'setembre', + 10: 'octubre', + 11: 'novembre', + 12: 'desembre', + } %} + {% set weekday = [ 'dilluns', 'dimarts', 'dimecres', 'dijous', 'divendres', 'dissabte', 'diumenge' ] %} + És {{ weekday[slots.date.weekday()] }}, {{slots.date.day}} + {% if slots.date.month in [4,8,10]: %} + d'{{ months[slots.date.month] }} + {% else %} + de {{ months[slots.date.month] }} + {% endif %} + del {{ slots.date.year }} diff --git a/responses/ca/HassGetCurrentTime.yaml b/responses/ca/HassGetCurrentTime.yaml new file mode 100644 index 0000000000..74518b61d6 --- /dev/null +++ b/responses/ca/HassGetCurrentTime.yaml @@ -0,0 +1,52 @@ +language: ca +responses: + intents: + HassGetCurrentTime: + default: > + {% set next_hour = 0 %} + {% set minute_str = "" %} + {% set start_str = "Son" %} + {% if slots.time.minute > 0: %} + {% if slots.time.minute == 15: %} + {% set start_str = "És" %} + {% set minute_str = "un quart" %} + {% set next_hour = 1 %} + {% elif slots.time.minute == 30: %} + {% set minute_str = "dos quarts" %} + {% set next_hour = 1 %} + {% elif slots.time.minute == 45: %} + {% set minute_str = "tres quarts" %} + {% set next_hour = 1 %} + {% endif %} + {% endif %} + {% if slots.time.hour + next_hour > 12: %} + {% set hour12 = slots.time.hour + next_hour - 12 %} + {% elif slots.time.hour + next_hour == 0: %} + {% set hour12 = 12 %} + {% else: %} + {% set hour12 = slots.time.hour + next_hour %} + {% endif %} + {% if minute_str != "": %} + {{start_str}} {{minute_str}} de {{hour12}} + {% elif hour12 == 1 : %} + Es la {{hour12}} + {% if slots.time.minute > 0: %} + i {{slots.time.minute}} + {% endif %} + {% else: %} + Son les {{hour12}} + {% if slots.time.minute > 0: %} + i {{slots.time.minute}} + {% endif %} + {% endif %} + {% if slots.time.hour == 0: %} + de la nit + {% elif slots.time.hour < 12: %} + del matí + {% elif slots.time.hour == 12: %} + del migdia + {% elif slots.time.hour < 21: %} + de la tarda + {% else: %} + de la nit + {% endif %} diff --git a/sentences/ca/homeassistant_HassGetCurrentDate.yaml b/sentences/ca/homeassistant_HassGetCurrentDate.yaml new file mode 100644 index 0000000000..c49fa83453 --- /dev/null +++ b/sentences/ca/homeassistant_HassGetCurrentDate.yaml @@ -0,0 +1,7 @@ +language: ca +intents: + HassGetCurrentDate: + data: + - sentences: + - "[saps] quin dia és [avui]" + - avui quin dia és diff --git a/sentences/ca/homeassistant_HassGetCurrentTime.yaml b/sentences/ca/homeassistant_HassGetCurrentTime.yaml new file mode 100644 index 0000000000..55f9f2460c --- /dev/null +++ b/sentences/ca/homeassistant_HassGetCurrentTime.yaml @@ -0,0 +1,10 @@ +language: ca +intents: + HassGetCurrentTime: + data: + - sentences: + - "[que ][em ][podries dir[-me]] quina hora és" + - "[em ][pots (dir|donar)[-me]] (l'|la )hora" + - "[saps|digues|ara] quina hora és [ara|ara mateix]" + - "[saps|digues|ara] quina és (l'|la )hora [d'ara]" + - "(saps|digues) l'hora [d'ara [mateix]]" diff --git a/tests/ca/homeassistant_HassGetCurrentDate.yaml b/tests/ca/homeassistant_HassGetCurrentDate.yaml new file mode 100644 index 0000000000..485854da31 --- /dev/null +++ b/tests/ca/homeassistant_HassGetCurrentDate.yaml @@ -0,0 +1,8 @@ +language: ca +tests: + - sentences: + - quin dia és avui? + - avui quin dia és? + intent: + name: HassGetCurrentDate + response: És dimarts, 17 de setembre del 2013 diff --git a/tests/ca/homeassistant_HassGetCurrentTime.yaml b/tests/ca/homeassistant_HassGetCurrentTime.yaml new file mode 100644 index 0000000000..33c4ee5f9d --- /dev/null +++ b/tests/ca/homeassistant_HassGetCurrentTime.yaml @@ -0,0 +1,42 @@ +language: ca +tests: + - sentences: + - que em podries dir quina hora és? + - em pots dir l'hora? + - pots donar-me l'hora? + - ara quina hora és? + - quina hora és? + - quina és l'hora? + - digues l'hora + intent: + name: HassGetCurrentTime + response: Es la 1 i 2 del matí +# - sentences: +# - quina hora és? +# intent: +# name: HassGetCurrentTime +# slots: +# time: +# hour: 8 +# minute: 15 +# response: És un quart de 9 del matí +# +# - sentences: +# - digues quina hora és? +# intent: +# name: HassGetCurrentTime +# slots: +# time: +# hour: 12 +# minute: 30 +# response: Son dos quarts de 1 del migdia +# +# - sentences: +# - saps quina hora és? +# intent: +# name: HassGetCurrentTime +# slots: +# time: +# hour: 16 +# minute: 40 +# response: Son les 4 i 40 de la tarda From ef67deae88a3d62daa76d927761cb537ff636cc7 Mon Sep 17 00:00:00 2001 From: Martijn van der Pol Date: Sun, 10 Nov 2024 20:53:02 +0100 Subject: [PATCH 53/92] [NL] Finetune cover_HassGetState and cover_HassSetPosition (#2286) --- sentences/nl/_common.yaml | 6 +----- sentences/nl/cover_HassGetState.yaml | 17 ++++++++++++----- sentences/nl/cover_HassSetPosition.yaml | 15 ++++++++++++--- tests/nl/cover_HassSetPosition.yaml | 11 ++++++++++- 4 files changed, 35 insertions(+), 14 deletions(-) diff --git a/sentences/nl/_common.yaml b/sentences/nl/_common.yaml index bf1678e2bb..5d219f00ff 100644 --- a/sentences/nl/_common.yaml +++ b/sentences/nl/_common.yaml @@ -381,11 +381,7 @@ expansion_rules: in: "[in|op|van|bij]" met: "(door|met|bij)" hier: "(hier|in deze (kamer|ruimte))" - name_area: > - ( - [[ de|het|een] {area}][ ] - |[de|het|een] {name}[ ][] [[in|op|van|bij] ] - ) + name_area: "([[ ]] |[ [ ]][[ ]])" sensor_name_area: > ( [[door|met|bij] [de|het|een] {area}][ ]{name} diff --git a/sentences/nl/cover_HassGetState.yaml b/sentences/nl/cover_HassGetState.yaml index 59af295402..067015d3b7 100644 --- a/sentences/nl/cover_HassGetState.yaml +++ b/sentences/nl/cover_HassGetState.yaml @@ -3,7 +3,9 @@ intents: HassGetState: data: - sentences: - - " [er] {cover_states:state} [ ]" + - " [er] [[ ]] {cover_states:state} [ (|)]" + - " [er] ( (|)[ ];[[ ]]) {cover_states:state}" + - " [[ ]] {cover_states:state} [ (|)] " response: one_yesno requires_context: domain: cover @@ -11,25 +13,30 @@ intents: domain: cover - sentences: - - [er] [ |ergens|nog] [een] {cover_classes:device_class} [ ] {cover_states:state} [ ] + - " [er] [ ||ergens|nog] [een] {cover_classes:device_class} {cover_states:state}" + - " [er] [ergens|nog] [een] {cover_classes:device_class} ( ;{cover_states:state})" + - " [er] {cover_classes:device_class} ({cover_states:state}; (|))" response: any slots: domain: cover - sentences: - - [ ] [] [de] {cover_classes:device_class} [ ] {cover_states:state} [ ] + - " [ (|)] [|de] {cover_classes:device_class} {cover_states:state}" + - " [|de] {cover_classes:device_class} ( (|);{cover_states:state})" response: all slots: domain: cover - sentences: - - Welk[e] {cover_classes:device_class} [ ] {cover_states:state} [ ] + - "Welk[e] {cover_classes:device_class} {cover_states:state}" + - "Welk[e] {cover_classes:device_class} ([ (|)]; {cover_states:state})" response: which slots: domain: cover - sentences: - - Hoe[ ]veel {cover_classes:device_class} [ ] [er] [ ] {cover_states:state} [ ] + - "Hoe[ ]veel {cover_classes:device_class} [ (|)] [er] {cover_states:state}" + - "Hoe[ ]veel {cover_classes:device_class} [er] ( (|);{cover_states:state})" response: how_many slots: domain: cover diff --git a/sentences/nl/cover_HassSetPosition.yaml b/sentences/nl/cover_HassSetPosition.yaml index 6dc8970b8f..0d37cea234 100644 --- a/sentences/nl/cover_HassSetPosition.yaml +++ b/sentences/nl/cover_HassSetPosition.yaml @@ -3,14 +3,23 @@ intents: HassSetPosition: data: - sentences: - - "[|open|sluit] [positie ][] " + - "[ |open |sluit] [[ ]][[ ](positie|stand)] [] " + - "[ |open |sluit] [de] (positie|stand) [van] [[ ]] [] " + - "[] [[ ]][[ ](positie|stand)] ([] ;(omhoog|omlaag))" + - "[] [de] (positie|stand) [van] [[ ]] ([] ;(omhoog|omlaag))" requires_context: domain: cover slots: domain: cover - sentences: - - "(|open|sluit) [de |het ]{cover_classes:device_class}[ positie] ((op|naar) ; )" - - "(|open|sluit) [ ]{cover_classes:device_class}[ positie] (op|naar) " + - "(|open|sluit) [de |het] {cover_classes:device_class}[[ ](positie|stand)] ( ; )" + - "(|open|sluit) [de] (positie|stand) [van] [de |het] {cover_classes:device_class} ( ; )" + - "(|open|sluit) [ ]{cover_classes:device_class}[[ ](positie|stand)] " + - "(|open|sluit) [de] (positie|stand) [van] [ ]{cover_classes:device_class} " + - "[] [de |het] [ ]{cover_classes:device_class}[[ ](positie|stand)] ([] ;(omhoog|omlaag))" + - "[] [de] (positie|stand) [van] [de |het] [ ]{cover_classes:device_class} ([] ;(omhoog|omlaag))" + - "[] ( ;[de |het] {cover_classes:device_class}[[ ](positie|stand)]) ([] ;(omhoog|omlaag))" + - "[] ( ;[de] (positie|stand) [van] [de |het] {cover_classes:device_class}) ([] ;(omhoog|omlaag))" slots: domain: cover diff --git a/tests/nl/cover_HassSetPosition.yaml b/tests/nl/cover_HassSetPosition.yaml index e4f1ba957b..9e682264ac 100644 --- a/tests/nl/cover_HassSetPosition.yaml +++ b/tests/nl/cover_HassSetPosition.yaml @@ -3,6 +3,10 @@ tests: - sentences: - "zet gordijn links naar 50%" - "Gordijn Links 50 procent" + - "Positie van gordijn links naar 50" + - "Doe gordijn links omhoog naar 50%" + - "Zet gordijn links naar 50% omlaag" + - "verlaag de stand van gordijn links naar 50%" intent: name: HassSetPosition slots: @@ -12,8 +16,13 @@ tests: response: "Positie aangepast" - sentences: - - "zet de gordijnen in de slaapkamer op 50%" + - "zet de gordijnen positie in de slaapkamer op 50%" - "open de gordijnen naar 50% in de slaapkamer" + - "doe de gordijnen stand in de slaapkamer naar 50% omhoog" + - "doe positie van de gordijnen in de slaapkamer naar 50% omhoog" + - "doe in de slaapkamer de gordijnen omlaag naar 50%" + - "doe de slaapkamergordijnenpositie omlaag naar 50%" + - "doe de stand van de slaapkamergordijnen omlaag naar 50" intent: name: HassSetPosition slots: From 6f30e29a604b16f635fa89b84b3a5bfc51c668dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Montan=C3=A9?= Date: Mon, 11 Nov 2024 07:00:54 +0100 Subject: [PATCH 54/92] [CA] Update common colors, add Balear (#2490) --- sentences/ca/_common.yaml | 56 ++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/sentences/ca/_common.yaml b/sentences/ca/_common.yaml index 6b1e8628fe..0a9a41d60b 100644 --- a/sentences/ca/_common.yaml +++ b/sentences/ca/_common.yaml @@ -10,23 +10,23 @@ responses: lists: color: values: - - in: blanc + - in: (blanc|blanca|blancs|blanques) out: white - - in: negre + - in: (negre|negra|negres) out: black - - in: vermell + - in: (vermell|vermella|vermells|vermelles|roig|roja|roigs|rojos|roges) out: red - - in: taronja + - in: (taronja|taronges|carbassa|carbasses|carabassa|carabasses) out: orange - - in: groc + - in: (groc|groga|grocs|grogues) out: yellow - - in: verd + - in: (verd|verda|verds|verdes) out: green - - in: blau + - in: (blau|blava|blaus|blaves) out: blue - - in: "(lila|morat|porpre)" + - in: "(lila|morat|morada|porpra|púrpura|liles|morats|morades|porpres|púrpures)" out: purple - - in: marró + - in: (marró|marrona|marrons|marrones) out: brown brightness: range: @@ -90,7 +90,7 @@ lists: out: curtain - in: port(a|es) out: door - - in: port(a|es) del garatge + - in: port(a|es) (del|des) (garatge|pàrquing) out: garage - in: persian(a|es) out: shutter @@ -139,33 +139,33 @@ lists: expansion_rules: actual: "(ara|actual[ment])" - pronom_singular: "(el|la|l')[ ]" - pronom_plural: "(els|les)[ ]" + pronom_singular: "(el|la|es|sa|l'|s')[ ]" + pronom_plural: "(els|les|es|ses)[ ]" pronom: "(|)" - preposicio_singular: "(en|de|a)[l|ls][ ][ ]" - preposicio: "(en|de|a)[l|ls][ ][ ]" + preposicio_singular: "(en|de|a)[l|ls|s][ ][ ]" + preposicio: "(en|de|a)[l|ls|s][ ][ ]" name: "[]{name}" area: "[]{area}" - quin_es: "(quin és|quina és|que es)" + quin_es: "(quin és|quina és|què és)" lluentor: "{brightness} [per cent]" - engega: "(encén|encendre|engega[r]|posa|activa[r])" + engega: "(encén|encendre|engega[r]|posa[r]|activa[r])" apaga: "(apaga[r]|atura[r]|desconnecta[r]|para[r])" - tanca: "(tanca[r])" - obre: "(obr[e|ir])" - llums: "(la llum|les llums|el llum|els llums)" + tanca: "tanca[r]" + obre: "(obr[e|i|ir]|òbriga)" + llums: "((el|la|es|sa) llum|(els|les|es|ses) llums)" temp: "(temperatura)" graus: "{temperature} [graus] [{temperature_unit}]" - pujar: "(puja|aixeca)[r]" - baixar: "([a]baixa[r])" - configura: "(posa[r]|configura[r]|ajusta[r]|canvia[r]|establ(ir|eix))" + pujar: "([a]puja|aixeca)[r]" + baixar: "[a]baixa[r]" + configura: "(posa[r]|configura[r]|ajusta[r]|canvia[r]|establ(ir|eix|ix))" posició: "{position}[ ][%|per[ ]cent]" percent: "[ ](%|per[ ]cent)" cancela: "cancel[·l]a[r]" seguent: "(següent|proper[a]|pròxim[a])" - anterior: "[l']anterior" - element: "(element|ítem|pista|cançó|tema|tonada|mitjà|canal|recurs|vídeo|clip|film)" - reproduir: "(reprodu(ir|eix)|posa[r]|fica[r]|salta[r]|passa[r]|canvia[r])" - reactiva: "(reactiva[r]|continua[r]|segu(ir|eix))" + anterior: "([l'|s']anterior|enrere)" + element: "(element|ítem|pista|peça|cançó|tema|tonada|mitjà|canal|recurs|vídeo|clip|film)" + reproduir: "(reprodu(ir|eix|ix)|posa[r]|fica[r]|salta[r]|passa[r]|canvia[r])" + reactiva: "(reactiva[r]|continua[r]|segu(ir|eix|ix))" hora: "hor(a|es)" # Timers @@ -184,5 +184,7 @@ expansion_rules: skip_words: - si us plau - vinga - - Sisplau + - sisplau - Per favor + - Gràcies + - Moltes gràcies From 27c9dac7b4feb9035f90f2e269380660a7f2deb0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 07:13:41 +0100 Subject: [PATCH 55/92] Bump regex from 2024.9.11 to 2024.11.6 (#2493) --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 4dc3bdab84..70639ea8d0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ hassil==1.7.4 PyYAML==6.0.2 voluptuous==0.15.2 -regex==2024.9.11 +regex==2024.11.6 jinja2==3.1.4 black==24.10.0 From 2e0af6a18c2fc3f080028967b3ebfc153b331bdf Mon Sep 17 00:00:00 2001 From: Bendik Brenne Date: Mon, 11 Nov 2024 10:22:56 +0100 Subject: [PATCH 56/92] [nb] Extend sentences for timer duration by adding half and quarter (#2486) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [nb] Extend sentences for timer duration by adding half and quarter * Changes as per review suggestions * Update sentences/nb/_common.yaml Co-authored-by: Ståle Storø Hauknes --------- Co-authored-by: Ståle Storø Hauknes --- sentences/nb/_common.yaml | 16 ++++++++++-- tests/nb/homeassistant_HassStartTimer.yaml | 29 +++++++++++++++++++++- 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/sentences/nb/_common.yaml b/sentences/nb/_common.yaml index 792d808b7e..373bde211a 100644 --- a/sentences/nb/_common.yaml +++ b/sentences/nb/_common.yaml @@ -350,6 +350,18 @@ lists: range: from: 1 to: 100 + timer_half: + values: + - in: "halv" + out: 30 + - in: "halvt" + out: 30 + timer_quarter: + values: + - in: "(1|et|ett) kvarter" + out: 15 + - in: "(3|tre) kvarter" + out: 45 timer_name: wildcard: true timer_command: @@ -421,8 +433,8 @@ expansion_rules: timer_set: "(sett|start|lag|opprett)[ en]" timer_cancel: "(stopp|avbryt|slett|fjern)" timer_duration_seconds: "{timer_seconds:seconds} sekund[er]" - timer_duration_minutes: "{timer_minutes:minutes} minutt[er][ [og |, ]{timer_seconds:seconds} sekund[er]]" - timer_duration_hours: "{timer_hours:hours} time[r][ [og |, ]{timer_minutes:minutes} minutt[er]][ [og |, ]{timer_seconds:seconds} sekund[er]]" + timer_duration_minutes: "({timer_minutes:minutes} minutt[er][ [og |, ]{timer_seconds:seconds} sekund[er]])|({timer_minutes:minutes} og[ et]{timer_half:seconds} minutt[er])|({timer_quarter:minutes})|({timer_half:seconds} minutt)" + timer_duration_hours: "({timer_hours:hours} time[r][ [og |, ]{timer_minutes:minutes} minutt[er]][ [og |, ]{timer_seconds:seconds} sekund[er]])|({timer_hours:hours} time[r] og {timer_quarter:minutes})|({timer_hours:hours} og [en ]{timer_half:minutes} time[r])|({timer_half:minutes} time)|({timer_hours:hours} og {timer_quarter:minutes})" timer_duration: "||" timer_start_seconds: "{timer_seconds:start_seconds} sekund[er]" diff --git a/tests/nb/homeassistant_HassStartTimer.yaml b/tests/nb/homeassistant_HassStartTimer.yaml index f3694e74f0..235c04881b 100644 --- a/tests/nb/homeassistant_HassStartTimer.yaml +++ b/tests/nb/homeassistant_HassStartTimer.yaml @@ -15,12 +15,24 @@ tests: hours: 1 response: Nedtelling startet + - sentences: + - "nedtelling på 3 kvarter" + - "start 45 minutter nedtelling" + - "start nedtelling på 3 kvarter" + intent: + name: HassStartTimer + context: + area: Stue + slots: + minutes: 45 + response: Nedtelling startet + - sentences: - "start en 1 time og 15 minutter nedtelling" - "start en 1 time og 15 minutter lang nedtelling" - "nedtelling på 1 time og 15 minutter" - "opprett nedtelling på 1 time og 15 minutter" - - "lag en nedtelling på 1 time og 15 minutter" + - "lag en nedtelling på 1 time og et kvarter" intent: name: HassStartTimer context: @@ -30,6 +42,21 @@ tests: minutes: 15 response: Nedtelling startet + - sentences: + - "start en 1 time og 30 minutter nedtelling" + - "start en 1 time og 30 minutter lang nedtelling" + - "nedtelling på 1 og en halv time" + - "opprett nedtelling på 1 time og 30 minutter" + - "lag en nedtelling på 1 og en halv time" + intent: + name: HassStartTimer + context: + area: Stue + slots: + hours: 1 + minutes: 30 + response: Nedtelling startet + - sentences: - "start en 1 time og 30 sekunder nedtelling" - "start en 1 time 30 sekunder nedtelling" From ee30f4de7158778fe4df70006fd9b57a013d1216 Mon Sep 17 00:00:00 2001 From: Natfaji_A <46685769+Natfaji@users.noreply.github.com> Date: Mon, 11 Nov 2024 10:48:11 +0100 Subject: [PATCH 57/92] [AR] HassGetCurrentDate and improve Arabic sentence structures (#2495) --- responses/ar/HassGetCurrentDate.yaml | 53 +++++++++++++++++++ sentences/ar/_common.yaml | 6 +-- .../ar/homeassistant_HassGetCurrentDate.yaml | 8 +++ sentences/ar/homeassistant_HassRespond.yaml | 2 +- .../ar/homeassistant_HassGetCurrentDate.yaml | 10 ++++ 5 files changed, 75 insertions(+), 4 deletions(-) create mode 100644 responses/ar/HassGetCurrentDate.yaml create mode 100644 sentences/ar/homeassistant_HassGetCurrentDate.yaml create mode 100644 tests/ar/homeassistant_HassGetCurrentDate.yaml diff --git a/responses/ar/HassGetCurrentDate.yaml b/responses/ar/HassGetCurrentDate.yaml new file mode 100644 index 0000000000..30bcd3b84b --- /dev/null +++ b/responses/ar/HassGetCurrentDate.yaml @@ -0,0 +1,53 @@ +language: ar +responses: + intents: + HassGetCurrentDate: + default: > + {% set months = { + 1: 'يناير', + 2: 'فبراير', + 3: 'مارس', + 4: 'أبريل', + 5: 'مايو', + 6: 'يونيو', + 7: 'يوليو', + 8: 'أغسطس', + 9: 'سبتمبر', + 10: 'أكتوبر', + 11: 'نوفمبر', + 12: 'ديسمبر' + } %} + {% set ordinal = { + 1: 'الأول', + 2: 'الثاني', + 3: 'الثالث', + 4: 'الرابع', + 5: 'الخامس', + 6: 'السادس', + 7: 'السابع', + 8: 'الثامن', + 9: 'التاسع', + 10: 'العاشر', + 11: 'الحادي عشر', + 12: 'الثاني عشر', + 13: 'الثالث عشر', + 14: 'الرابع عشر', + 15: 'الخامس عشر', + 16: 'السادس عشر', + 17: 'السابع عشر', + 18: 'الثامن عشر', + 19: 'التاسع عشر', + 20: 'العشرون', + 21: 'الواحد والعشرون', + 22: 'الثاني والعشرون', + 23: 'الثالث والعشرون', + 24: 'الرابع والعشرون', + 25: 'الخامس والعشرون', + 26: 'السادس والعشرون', + 27: 'السابع والعشرون', + 28: 'الثامن والعشرون', + 29: 'التاسع والعشرون', + 30: 'الثلاثون', + 31: 'الواحد والثلاثون' + } %} + {{ ordinal[slots.date.day] }} من {{ months[slots.date.month] }} {{ slots.date.year }} diff --git a/sentences/ar/_common.yaml b/sentences/ar/_common.yaml index 8042b1f8b9..53fc21d47e 100644 --- a/sentences/ar/_common.yaml +++ b/sentences/ar/_common.yaml @@ -114,12 +114,12 @@ expansion_rules: hello: "(مرحبا|اهلا)" home_assistant: "[ال]بيت [(الذكي|المساعد)]" - what_is: "(ما هو|ما هي|ماذا يكون|ماذا تكون|كم هي|كم هو)" - is_it: "(هل [هي]|هل [هو]|هل هناك)" + tell_me: "(قل لي|[ا]خبرني)" + what_is: "((شو|ما|ماذا|كم)[ ][هو|هي|يكون|تكون])" + is_it: "(هل[ ][هو|هي|هناك])" how_many: "كم عدد" where: "[(ل| )](اين|وين|فين)" go: "[ب][(ت|ي)](ذهب|روح|تجه)" - what: "(ما|ماذا|شو)" can: "(ممكن|يمكن)[ني]" brightness: "{brightness}[[ ]%| بالمائة]" diff --git a/sentences/ar/homeassistant_HassGetCurrentDate.yaml b/sentences/ar/homeassistant_HassGetCurrentDate.yaml new file mode 100644 index 0000000000..46db46bcef --- /dev/null +++ b/sentences/ar/homeassistant_HassGetCurrentDate.yaml @@ -0,0 +1,8 @@ +language: ar +intents: + HassGetCurrentDate: + data: + - sentences: + - "(|) [ال]تاريخ اليوم" + - "(|) اليوم التاريخ" + - "[ال]تاريخ اليوم " diff --git a/sentences/ar/homeassistant_HassRespond.yaml b/sentences/ar/homeassistant_HassRespond.yaml index e09111ed81..3d28b37717 100644 --- a/sentences/ar/homeassistant_HassRespond.yaml +++ b/sentences/ar/homeassistant_HassRespond.yaml @@ -15,7 +15,7 @@ intents: response: data - sentences: - - " (اسال|اقول)" + - " (اسال|اقول)" response: commands - sentences: diff --git a/tests/ar/homeassistant_HassGetCurrentDate.yaml b/tests/ar/homeassistant_HassGetCurrentDate.yaml new file mode 100644 index 0000000000..80a04d0788 --- /dev/null +++ b/tests/ar/homeassistant_HassGetCurrentDate.yaml @@ -0,0 +1,10 @@ +language: ar +tests: + - sentences: + - "شو التاريخ اليوم" + - "تاريخ اليوم شو" + - "ما هو التاريخ اليوم" + - "ما هو اليوم التاريخ" + intent: + name: HassGetCurrentDate + response: السابع عشر من سبتمبر 2013 From 3e5e609c6f1accf921291938323f3f8c06f3a418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A5le=20Stor=C3=B8=20Hauknes?= Date: Mon, 11 Nov 2024 10:52:37 +0100 Subject: [PATCH 58/92] [nb] Improve "half minute" timer (#2496) * Minor half minute improvement * Add tests --- sentences/nb/_common.yaml | 8 +++----- tests/nb/homeassistant_HassStartTimer.yaml | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/sentences/nb/_common.yaml b/sentences/nb/_common.yaml index 373bde211a..baf6ea7306 100644 --- a/sentences/nb/_common.yaml +++ b/sentences/nb/_common.yaml @@ -352,9 +352,7 @@ lists: to: 100 timer_half: values: - - in: "halv" - out: 30 - - in: "halvt" + - in: "[en |et ]halv[t]" out: 30 timer_quarter: values: @@ -433,8 +431,8 @@ expansion_rules: timer_set: "(sett|start|lag|opprett)[ en]" timer_cancel: "(stopp|avbryt|slett|fjern)" timer_duration_seconds: "{timer_seconds:seconds} sekund[er]" - timer_duration_minutes: "({timer_minutes:minutes} minutt[er][ [og |, ]{timer_seconds:seconds} sekund[er]])|({timer_minutes:minutes} og[ et]{timer_half:seconds} minutt[er])|({timer_quarter:minutes})|({timer_half:seconds} minutt)" - timer_duration_hours: "({timer_hours:hours} time[r][ [og |, ]{timer_minutes:minutes} minutt[er]][ [og |, ]{timer_seconds:seconds} sekund[er]])|({timer_hours:hours} time[r] og {timer_quarter:minutes})|({timer_hours:hours} og [en ]{timer_half:minutes} time[r])|({timer_half:minutes} time)|({timer_hours:hours} og {timer_quarter:minutes})" + timer_duration_minutes: "({timer_minutes:minutes} minutt[er][ [og |, ]{timer_seconds:seconds} sekund[er]])|({timer_minutes:minutes} og {timer_half:seconds} minutt[er])|({timer_quarter:minutes})|({timer_half:seconds} minutt)" + timer_duration_hours: "({timer_hours:hours} time[r][ [og |, ]{timer_minutes:minutes} minutt[er]][ [og |, ]{timer_seconds:seconds} sekund[er]])|({timer_hours:hours} time[r] og {timer_quarter:minutes})|({timer_hours:hours} og {timer_half:minutes} time[r])|({timer_half:minutes} time)|({timer_hours:hours} og {timer_quarter:minutes})" timer_duration: "||" timer_start_seconds: "{timer_seconds:start_seconds} sekund[er]" diff --git a/tests/nb/homeassistant_HassStartTimer.yaml b/tests/nb/homeassistant_HassStartTimer.yaml index 235c04881b..5185d7bcc5 100644 --- a/tests/nb/homeassistant_HassStartTimer.yaml +++ b/tests/nb/homeassistant_HassStartTimer.yaml @@ -72,6 +72,21 @@ tests: seconds: 30 response: Nedtelling startet + - sentences: + - "start en 30 sekunder nedtelling" + - "start en 30 sekunder lang nedtelling" + - "nedtelling på 30 sekunder" + - "30 sekunder nedtelling" + - "halvt minutt nedtelling" + - "start en nedtelling på et halvt minutt" + intent: + name: HassStartTimer + context: + area: Stue + slots: + seconds: 30 + response: Nedtelling startet + - sentences: - "start en 1 time, 15 minutter og 30 sekunder nedtelling" - "opprett en 1 time, 15 minutter og 30 sekunder lang nedtelling" From c0507eb6a9e75284b0ddcae99d2a9cd7f934bb54 Mon Sep 17 00:00:00 2001 From: Natfaji_A <46685769+Natfaji@users.noreply.github.com> Date: Mon, 11 Nov 2024 11:35:29 +0100 Subject: [PATCH 59/92] [AR] HassGetCurrentTime (#2498) --- responses/ar/HassGetCurrentTime.yaml | 12 ++++++++++++ sentences/ar/_common.yaml | 17 +++++++++-------- .../ar/homeassistant_HassGetCurrentTime.yaml | 8 ++++++++ tests/ar/homeassistant_HassGetCurrentTime.yaml | 9 +++++++++ 4 files changed, 38 insertions(+), 8 deletions(-) create mode 100644 responses/ar/HassGetCurrentTime.yaml create mode 100644 sentences/ar/homeassistant_HassGetCurrentTime.yaml create mode 100644 tests/ar/homeassistant_HassGetCurrentTime.yaml diff --git a/responses/ar/HassGetCurrentTime.yaml b/responses/ar/HassGetCurrentTime.yaml new file mode 100644 index 0000000000..a38d102e71 --- /dev/null +++ b/responses/ar/HassGetCurrentTime.yaml @@ -0,0 +1,12 @@ +language: ar +responses: + intents: + HassGetCurrentTime: + default: > + {% set minute_str = '{0:02d}'.format(slots.time.minute) %} + + {% if slots.time.hour <= 12: %} + {{ slots.time.hour }}:{{ minute_str }} صباحا + {% else: %} + {{ slots.time.hour - 12 }}:{{ minute_str }} مساءا + {% endif %} diff --git a/sentences/ar/_common.yaml b/sentences/ar/_common.yaml index 53fc21d47e..78368cd844 100644 --- a/sentences/ar/_common.yaml +++ b/sentences/ar/_common.yaml @@ -115,7 +115,7 @@ expansion_rules: home_assistant: "[ال]بيت [(الذكي|المساعد)]" tell_me: "(قل لي|[ا]خبرني)" - what_is: "((شو|ما|ماذا|كم)[ ][هو|هي|يكون|تكون])" + what_is: "((شو|ما|ماذا|كم|شقد)[ ][هو|هي|يكون|تكون])" is_it: "(هل[ ][هو|هي|هناك])" how_many: "كم عدد" where: "[(ل| )](اين|وين|فين)" @@ -126,10 +126,6 @@ expansion_rules: temperature: "{temperature}[°| درجة] [{temperature_unit}]" position: "{position}[[ ]%| بالمائة]" - light: "[ال](اضواء|اضاءة|ضوء|مصابيح|مصباح|انوار|نور|لمبة|لمبات|انوار)" - switch: "[ال](مفتاح|مفاتيح)" - fan: "[ال](مروحة|مراوح|مروحات)" - turn: "(اضبط|أضبط|إضبط|ضبط|[ت]غير|تعيين)" turn_on: "(افتح|إفتح|شغل|اشعل|أشعل|اشغل|أشغل|ابدأ|إبدأ|شعل|فعل|تفعيل|تشغيل|فعل)" turn_off: "(أغلق|اغلق|اطفئ|أطفئ|طفي)" @@ -143,6 +139,9 @@ expansion_rules: unlock: "(افتح)" lock: "(اقفل)" + open: "(|)" + close: "(اغلق|سكر||)" + temp: "(باردة|دافئة|لطيفة|حارة|درجة [ال]حرارة)" intensity: "[ال](درجة [ال]سطوع|[شدة] [ال]سطوع|قوة|شدة)" color: "[ال](لون|الوان)" @@ -152,9 +151,6 @@ expansion_rules: to: "(على|الى|لل)" any: "(أي)" - open: "(|)" - close: "(اغلق|سكر||)" - numeric_value_set: "(|||)" awning: "[ال](مظلة|مظلات)" @@ -164,6 +160,11 @@ expansion_rules: gate: "[ال](بوابة|بوابات)" window: "[ال](نافذة|نوافذ|نافذات|شباك|شبابيك)" + light: "[ال](اضواء|اضاءة|ضوء|مصابيح|مصباح|انوار|نور|لمبة|لمبات|انوار)" + switch: "[ال](مفتاح|مفاتيح)" + fan: "[ال](مروحة|مراوح|مروحات)" + time: "[ال](وقت|ساعة)" + skip_words: - "(من فضلك|لو سمحت)" - "(هل يمكنك|تقدر)" diff --git a/sentences/ar/homeassistant_HassGetCurrentTime.yaml b/sentences/ar/homeassistant_HassGetCurrentTime.yaml new file mode 100644 index 0000000000..cec7b26242 --- /dev/null +++ b/sentences/ar/homeassistant_HassGetCurrentTime.yaml @@ -0,0 +1,8 @@ +language: ar +intents: + HassGetCurrentTime: + data: + - sentences: + - "(|)