diff --git a/responses/pt-br/HassClimateGetTemperature.yaml b/responses/pt-br/HassClimateGetTemperature.yaml index 3d6d7bc9bc..12558f3c4b 100644 --- a/responses/pt-br/HassClimateGetTemperature.yaml +++ b/responses/pt-br/HassClimateGetTemperature.yaml @@ -2,4 +2,10 @@ language: pt-br responses: intents: HassClimateGetTemperature: - default: "{{ state.state }} degrees" + default: > + {% set temperature = state_attr(state.entity_id, 'current_temperature') %} + {% if temperature == 1: %} + {{ temperature }} grau + {% else: %} + {{ temperature }} graus + {% endif %} diff --git a/responses/pt-br/HassClimateSetTemperature.yaml b/responses/pt-br/HassClimateSetTemperature.yaml index 08a51b9f12..23f7d3abc8 100644 --- a/responses/pt-br/HassClimateSetTemperature.yaml +++ b/responses/pt-br/HassClimateSetTemperature.yaml @@ -2,4 +2,4 @@ language: pt-br responses: intents: HassClimateSetTemperature: - default: Temperature set to {{ slots.temperature }} degrees + default: Temperatura definida diff --git a/responses/pt-br/HassGetState.yaml b/responses/pt-br/HassGetState.yaml index c2e39e6fef..c34c42e07f 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 %}esta{% 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 }} esta + {% if state.attributes.get("untranslated_state") == "not_home" %} + {{ state.state }} + {% else %} + em {{ state.state }} + {% endif %} diff --git a/responses/pt-br/HassGetWeather.yaml b/responses/pt-br/HassGetWeather.yaml new file mode 100644 index 0000000000..57f089795f --- /dev/null +++ b/responses/pt-br/HassGetWeather.yaml @@ -0,0 +1,24 @@ +language: pt-br +responses: + intents: + HassGetWeather: + default: > + {% set weather_condition = { + 'clear': 'Céu limpo', + 'clear-night': 'Céu limpo', + 'cloudy': 'Céu nublado', + 'exceptional': 'Condições excepcionalmente adversas', + 'fog': 'Nevoeiro', + 'hail': 'Granizo', + 'lightning': 'Trovoada', + 'lightning-rainy': 'Chuva e trovoada', + 'partlycloudy': 'Céu parcialmente nublado', + 'pouring': 'Chuva forte', + 'rainy': 'Chuva', + 'snowy': 'Neve', + 'snowy-rainy': 'Chuva e neve', + 'sunny': 'Sol', + 'windy': 'Vento', + 'windy-variant': 'Vento e céu nublado' + } %} + {{ weather_condition.get((state.attributes.get('untranslated_state') | string).lower(), "") }}, com temperatura de {{ state.attributes.get('temperature') }} {{ state.attributes.get('temperature_unit') }} diff --git a/responses/pt-br/HassLightSet.yaml b/responses/pt-br/HassLightSet.yaml index 36880d9336..adb95fd525 100644 --- a/responses/pt-br/HassLightSet.yaml +++ b/responses/pt-br/HassLightSet.yaml @@ -2,7 +2,7 @@ language: pt-br responses: intents: HassLightSet: - brightness: "{{ slots.name }} brightness set to {{ slots.brightness }}" - brightness_area: Brightness in {{ slots.area }} set to {{ slots.brightness }} - color: "{{ slots.name }} color set to {{ slots.color }}" - color_area: Color in {{ slots.area }} set to {{ slots.color }} + brightness_area: O brilho de {{ slots.area }} foi definido em {{ slots.brightness }} + color_area: A cor de {{ slots.area }} foi definido em {{ slots.color }} + brightness: "Brilho definido" + color: "Cor definida" diff --git a/responses/pt-br/HassListAddItem.yaml b/responses/pt-br/HassListAddItem.yaml new file mode 100644 index 0000000000..35344b49d4 --- /dev/null +++ b/responses/pt-br/HassListAddItem.yaml @@ -0,0 +1,5 @@ +language: pt-br +responses: + intents: + HassListAddItem: + item_added: "Adicionei {{ slots.item }}" diff --git a/responses/pt-br/HassShoppingListAddItem.yaml b/responses/pt-br/HassShoppingListAddItem.yaml new file mode 100644 index 0000000000..353dcec693 --- /dev/null +++ b/responses/pt-br/HassShoppingListAddItem.yaml @@ -0,0 +1,5 @@ +language: pt-br +responses: + intents: + HassShoppingListAddItem: + item_added: "Adicionei {{ slots.item }}" diff --git a/sentences/pt-br/_common.yaml b/sentences/pt-br/_common.yaml index 1a7bf3ef7a..f19ec64695 100644 --- a/sentences/pt-br/_common.yaml +++ b/sentences/pt-br/_common.yaml @@ -42,6 +42,10 @@ lists: out: "brown" - in: "marrom" out: "brown" + - in: "casa" + out: "home" + - in: "fora_de_casa" + out: "not_home" brightness: range: type: "percentage" @@ -115,17 +119,24 @@ lists: out: "locked" - in: "destrancada" out: "unlocked" + shopping_list_item: + wildcard: true expansion_rules: nome: "[(o[s]|a[s])] {name}" zona: "[(o[s]|a[s])] {area}" + adicionar: adicione|adiciona[r] + algum: "(algum|alguma|alguns|algumas)" + colocar: coloque|coloca[r]|pôr|põe na_zona: "(n[o|a]|d[a|o]) {area}" ligar: "(liga[r]|ligue|acende[r]|acenda|ativa[r]|ative)" desligar: "(desliga[r]|desligue|apaga[r]|apague|desativa[r]|desative)" abrir: "(abr[a|e]|abrir)" fechar: "(fecha[r]|feche)" - mudar: "(pôr|põe|ponha|muda[r]|altera[r]|coloca[r]|deixa[r])" + mudar: "(pôr|põe|ponha|muda[r]|altera[r]|coloca[r]|deixa[r]|defina|definir|setar)" brilho: "{brightness}[%| porcento]" temperatura: "{temperature}[°| graus] [{temperature_unit}]" + esta: "(esta|está|estão|existe|existem)" + qual: "(que|qual|qual é|quais)" skip_words: - "porfavor" - "por favor" diff --git a/sentences/pt-br/climate_HassClimateGetTemperature.yaml b/sentences/pt-br/climate_HassClimateGetTemperature.yaml index 560b5c048a..6cdd6c5eaf 100644 --- a/sentences/pt-br/climate_HassClimateGetTemperature.yaml +++ b/sentences/pt-br/climate_HassClimateGetTemperature.yaml @@ -2,4 +2,7 @@ language: pt-br intents: HassClimateGetTemperature: data: - - sentences: [] + - sentences: + - " [a] temperatura [(do|da) {name}]" + - " a temperatura " + - "a que temperatura está " diff --git a/sentences/pt-br/climate_HassClimateSetTemperature.yaml b/sentences/pt-br/climate_HassClimateSetTemperature.yaml index 02fa35cc40..2556dcc097 100644 --- a/sentences/pt-br/climate_HassClimateSetTemperature.yaml +++ b/sentences/pt-br/climate_HassClimateSetTemperature.yaml @@ -2,4 +2,7 @@ language: pt-br intents: HassClimateSetTemperature: data: - - sentences: [] + - sentences: + - " [a] " + - " [a] temperatura [a] " + - " [a] temperatura [a] " diff --git a/sentences/pt-br/cover_HassGetState.yaml b/sentences/pt-br/cover_HassGetState.yaml index a88d1eb768..77c953b7b0 100644 --- a/sentences/pt-br/cover_HassGetState.yaml +++ b/sentences/pt-br/cover_HassGetState.yaml @@ -1,4 +1,35 @@ language: pt-br intents: HassGetState: - data: [] + data: + - sentences: + - " esta {cover_states:state} []" + response: one_yesno + requires_context: + domain: cover + slots: + domain: cover + + - sentences: + - " {cover_classes:device_class} [] {cover_states:state} []" + response: any + slots: + domain: cover + + - sentences: + - "todas [as] {cover_classes:device_class} [] estão {cover_states:state}" + response: all + slots: + domain: cover + + - sentences: + - "(quais|qual|que) {cover_classes:device_class} (está|estão) {cover_states:state} []" + response: which + slots: + domain: cover + + - sentences: + - "quantas {cover_classes:device_class} estão {cover_states:state} []" + response: how_many + slots: + domain: cover diff --git a/sentences/pt-br/cover_HassTurnOff.yaml b/sentences/pt-br/cover_HassTurnOff.yaml index 83f51e7690..6420001f97 100644 --- a/sentences/pt-br/cover_HassTurnOff.yaml +++ b/sentences/pt-br/cover_HassTurnOff.yaml @@ -1,4 +1,19 @@ language: pt-br intents: HassTurnOff: - data: [] + data: + - sentences: + - [(o | a)] [(porta | portão) da] garagem + response: cover + slots: + device_class: garage + domain: cover + - sentences: + - [as | os] [(cortinas | cortinados | estores | persianas)] + response: cover + slots: + device_class: + - blind + - curtain + - shutter + domain: cover diff --git a/sentences/pt-br/cover_HassTurnOn.yaml b/sentences/pt-br/cover_HassTurnOn.yaml index 3c8b4eea11..80d505dcbe 100644 --- a/sentences/pt-br/cover_HassTurnOn.yaml +++ b/sentences/pt-br/cover_HassTurnOn.yaml @@ -1,4 +1,20 @@ language: pt-br intents: HassTurnOn: - data: [] + data: + - sentences: + - [(o|a)] [(porta|portão) da] garagem + response: cover + slots: + device_class: garage + domain: cover + + - sentences: + - [as|os] [(cortinas | cortinados | estores | persianas)] + response: cover + slots: + device_class: + - blind + - curtain + - shutter + domain: cover diff --git a/sentences/pt-br/fan_HassTurnOff.yaml b/sentences/pt-br/fan_HassTurnOff.yaml index 21784f79a1..afee1175b9 100644 --- a/sentences/pt-br/fan_HassTurnOff.yaml +++ b/sentences/pt-br/fan_HassTurnOff.yaml @@ -2,7 +2,9 @@ language: pt-br intents: HassTurnOff: data: - - sentences: [] + - sentences: + - " [todos] [(o[s])] (ventilador[es]) " slots: domain: fan name: all + response: fans_area diff --git a/sentences/pt-br/fan_HassTurnOn.yaml b/sentences/pt-br/fan_HassTurnOn.yaml index 1ddb80457f..e48af1c93b 100644 --- a/sentences/pt-br/fan_HassTurnOn.yaml +++ b/sentences/pt-br/fan_HassTurnOn.yaml @@ -2,7 +2,9 @@ language: pt-br intents: HassTurnOn: data: - - sentences: [] + - sentences: + - " todos os ventiladores " slots: domain: fan name: all + response: fans_area diff --git a/sentences/pt-br/homeassistant_HassGetState.yaml b/sentences/pt-br/homeassistant_HassGetState.yaml index a88d1eb768..fb6dab0b39 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|valor) [atual] [do|da|de] [] + response: one + excludes_context: + domain: + - scene + - script + + - sentences: + - está {on_off_states:state} [] + response: one_yesno + excludes_context: + domain: + - cover + + - sentences: + - {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_HassNevermind.yaml b/sentences/pt-br/homeassistant_HassNevermind.yaml new file mode 100644 index 0000000000..2a6d5c8531 --- /dev/null +++ b/sentences/pt-br/homeassistant_HassNevermind.yaml @@ -0,0 +1,9 @@ +language: pt-br +intents: + HassNevermind: + data: + - sentences: + - "esquece" + - "deixa [(pra|para)] lá" + - "cancela[r]" + - "nada [não]" diff --git a/sentences/pt-br/homeassistant_HassTurnOff.yaml b/sentences/pt-br/homeassistant_HassTurnOff.yaml index 1ef807b733..78ccd0c506 100644 --- a/sentences/pt-br/homeassistant_HassTurnOff.yaml +++ b/sentences/pt-br/homeassistant_HassTurnOff.yaml @@ -3,7 +3,7 @@ intents: HassTurnOff: data: - sentences: - - " [a[s]|o[s]] [luz[es]|interruptor[es]] [do|da] " + - " [a[s]|o[s]] [luz[es]|interruptor[es]|ventilador[res]] [do|da] " excludes_context: domain: - binary_sensor diff --git a/sentences/pt-br/light_HassLightSet.yaml b/sentences/pt-br/light_HassLightSet.yaml index 98cc28f315..a4db3e8ce1 100644 --- a/sentences/pt-br/light_HassLightSet.yaml +++ b/sentences/pt-br/light_HassLightSet.yaml @@ -2,4 +2,41 @@ language: pt-br intents: HassLightSet: data: - - sentences: [] + - sentences: + - o brilho (do|da) (a | para) + - (a | para) + - o brilho (do | da) (a|para) + - (a | para) + response: brightness + + - sentences: + - o brilho (a | para) + - (a | para) + - [todas] as luzes (a | para) + - [todas] as luzes (a | para) + - [o brilho (de todas as | das) | as] luzes + (a | para) + - [o brilho (de todas as | das) | as] luzes + (a | para) + slots: + name: all + response: brightness + + - sentences: + - [a cor [(do | da)]] (a | para | em) {color} + - {color} + - [a cor [(do | da)]] (a + | para | em) {color} + - (põe | ponha | muda | altera) {color} + response: color + + - sentences: + - a cor (a | para | em) {color} + - [a | para | em] {color} + - [a cor (de todas as | das) | as] luzes (a + | para | em) {color} + - [a cor (de todas as | das) | as] luzes + (a | para | em) {color} + slots: + name: all + response: color diff --git a/sentences/pt-br/shopping_list_HassShoppingListAddItem.yaml b/sentences/pt-br/shopping_list_HassShoppingListAddItem.yaml new file mode 100644 index 0000000000..cd29260bd8 --- /dev/null +++ b/sentences/pt-br/shopping_list_HassShoppingListAddItem.yaml @@ -0,0 +1,11 @@ +language: pt-br +intents: + HassShoppingListAddItem: + data: + - sentences: + - à + - na + response: item_added + expansion_rules: + lista: "[minha ]lista[ de compras]" + item: "{shopping_list_item:item}" diff --git a/sentences/pt-br/todo_HassListAddItem.yaml b/sentences/pt-br/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..9efe82f41a --- /dev/null +++ b/sentences/pt-br/todo_HassListAddItem.yaml @@ -0,0 +1,13 @@ +language: pt-br +intents: + HassListAddItem: + data: + - sentences: + - à + - na + response: item_added + requires_context: + domain: todo + expansion_rules: + lista: "[minha ]lista [de ]{name}" + item: "{shopping_list_item:item}" diff --git a/sentences/pt-br/weather_HassGetWeather.yaml b/sentences/pt-br/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..ad2550b999 --- /dev/null +++ b/sentences/pt-br/weather_HassGetWeather.yaml @@ -0,0 +1,10 @@ +language: pt-br +intents: + HassGetWeather: + data: + - sentences: + - "como está o tempo [lá fora]" + - sentences: + - "como está o tempo (em|no) " + requires_context: + domain: weather diff --git a/tests/pt-br/_fixtures.yaml b/tests/pt-br/_fixtures.yaml index 417c61bb2d..e0b3b02ee9 100644 --- a/tests/pt-br/_fixtures.yaml +++ b/tests/pt-br/_fixtures.yaml @@ -39,12 +39,8 @@ entities: id: "light.luz_da_sala" area: "sala_de_estar" - - name: "Ventilador da sala" - id: "fan.ventilador_sala" - area: "sala_de_estar" - - - name: "Ventilador de Teto" - id: "fan.ventilador_de_teto" + - name: "Ventilador" + id: "fan.ventilador" area: "sala_de_estar" - name: "Aquecedor Quarto" @@ -64,6 +60,13 @@ entities: attributes: device_class: curtain + - name: "Cortina Esquerda" + id: "cover.cortina_esquerda" + area: "sala_de_estar" + state: "open" + attributes: + device_class: curtain + - name: "Cortina Direita" id: "cover.cortina_direita" area: "sala_de_estar" @@ -93,9 +96,10 @@ entities: - name: "Termostato" id: "climate.thermostat" area: "sala_de_estar" - state: "68" + state: "cool" attributes: - unit_of_measurement: "°F" + unit_of_measurement: "°C" + current_temperature: 35 - name: "Ar condicionado" id: "climate.ac_quarto" @@ -118,3 +122,23 @@ entities: - name: "Modo silencioso" id: "script.silencioso" + + - name: "Ribeirão Preto" + id: "weather.ribeirao_preto" + state: "rainy" + attributes: + temperature: "18" + temperature_unit: "°C" + untranslated_state: "rainy" + + - name: "São Paulo" + id: "weather.sao_paulo" + state: "clear" + attributes: + temperature: "19" + temperature_unit: "°C" + untranslated_state: "rainy" + + - name: "Tarefas" + id: "todo.tarefas" + state: "" diff --git a/tests/pt-br/climate_HassClimateGetTemperature.yaml b/tests/pt-br/climate_HassClimateGetTemperature.yaml index 544b094511..01a4949432 100644 --- a/tests/pt-br/climate_HassClimateGetTemperature.yaml +++ b/tests/pt-br/climate_HassClimateGetTemperature.yaml @@ -1,6 +1,25 @@ language: pt-br tests: - - sentences: [] + - sentences: + - qual a temperatura + - qual a temperatura? intent: name: HassClimateGetTemperature - slots: {} + response: "35 graus" + + - sentences: + - qual a temperatura da sala de estar? + - qual é a temperatura da sala de estar? + intent: + name: HassClimateGetTemperature + slots: + area: Sala de Estar + response: "35 graus" + + - sentences: + - qual a temperatura do termostato? + intent: + name: HassClimateGetTemperature + slots: + name: Termostato + response: "35 graus" diff --git a/tests/pt-br/climate_HassClimateSetTemperature.yaml b/tests/pt-br/climate_HassClimateSetTemperature.yaml index c52ded7bcd..0d9a8c3936 100644 --- a/tests/pt-br/climate_HassClimateSetTemperature.yaml +++ b/tests/pt-br/climate_HassClimateSetTemperature.yaml @@ -1,6 +1,28 @@ language: pt-br tests: - - sentences: [] + - sentences: + - põe a temperatura a 30° intent: name: HassClimateSetTemperature - slots: {} + slots: + temperature: 30 + response: Temperatura definida + + - sentences: + - põe a temperatura a 30° C + intent: + name: HassClimateSetTemperature + slots: + temperature: 30 + temperature_unit: celsius + response: Temperatura definida + + - sentences: + - põe a temperatura do quarto a 50 graus Fahrenheit + intent: + name: HassClimateSetTemperature + slots: + area: Quarto + temperature: 50 + temperature_unit: fahrenheit + response: Temperatura definida diff --git a/tests/pt-br/cover_HassGetState.yaml b/tests/pt-br/cover_HassGetState.yaml index d863976d78..3c649d3c1b 100644 --- a/tests/pt-br/cover_HassGetState.yaml +++ b/tests/pt-br/cover_HassGetState.yaml @@ -1,2 +1,63 @@ language: pt-br -tests: [] +tests: + - sentences: + - "A Cortina Quarto esta fechada?" + intent: + name: HassGetState + slots: + domain: cover + name: "Cortina Quarto" + state: "closed" + response: "Sim" + + - sentences: + - "Alguma cortina esta 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 da Sala de Estar estão abertas?" + 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: + - "Quais cortinas estão fechadas?" + 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" diff --git a/tests/pt-br/cover_HassTurnOff.yaml b/tests/pt-br/cover_HassTurnOff.yaml index d863976d78..8c81483f52 100644 --- a/tests/pt-br/cover_HassTurnOff.yaml +++ b/tests/pt-br/cover_HassTurnOff.yaml @@ -1,2 +1,22 @@ language: pt-br -tests: [] +tests: + - sentences: + - fechar a porta da garagem + intent: + name: HassTurnOff + slots: + device_class: garage + domain: cover + response: Fechado + - sentences: + - fechar as cortinas no cozinha + intent: + name: HassTurnOff + slots: + area: Cozinha + device_class: + - blind + - curtain + - shutter + domain: cover + response: Fechado diff --git a/tests/pt-br/cover_HassTurnOn.yaml b/tests/pt-br/cover_HassTurnOn.yaml index d863976d78..ba0f684dde 100644 --- a/tests/pt-br/cover_HassTurnOn.yaml +++ b/tests/pt-br/cover_HassTurnOn.yaml @@ -1,2 +1,25 @@ language: pt-br -tests: [] +tests: + - sentences: + - abra a porta da garagem + - abrir a porta da garagem + intent: + name: HassTurnOn + slots: + device_class: garage + domain: cover + response: Aberto + + - sentences: + - abra as cortinas no cozinha + - abrir as cortinas no cozinha + intent: + name: HassTurnOn + slots: + area: Cozinha + device_class: + - blind + - curtain + - shutter + domain: cover + response: Aberto diff --git a/tests/pt-br/fan_HassTurnOff.yaml b/tests/pt-br/fan_HassTurnOff.yaml index ed2b065d16..5be2823705 100644 --- a/tests/pt-br/fan_HassTurnOff.yaml +++ b/tests/pt-br/fan_HassTurnOff.yaml @@ -1,8 +1,11 @@ language: pt-br tests: - - sentences: [] + - sentences: + - "desligar todos os ventiladores da sala de estar" intent: name: HassTurnOff slots: + area: Sala de Estar domain: fan name: all + response: Ventiladores desligados diff --git a/tests/pt-br/fan_HassTurnOn.yaml b/tests/pt-br/fan_HassTurnOn.yaml index cab9ee2e90..87ce75ddb4 100644 --- a/tests/pt-br/fan_HassTurnOn.yaml +++ b/tests/pt-br/fan_HassTurnOn.yaml @@ -1,8 +1,11 @@ language: pt-br tests: - - sentences: [] + - sentences: + - "Ligar todos os ventiladores da sala de estar" intent: name: HassTurnOn slots: + area: Sala de Estar domain: fan name: all + response: Ligando ventiladores diff --git a/tests/pt-br/homeassistant_HassGetState.yaml b/tests/pt-br/homeassistant_HassGetState.yaml index d863976d78..d053d00d46 100644 --- a/tests/pt-br/homeassistant_HassGetState.yaml +++ b/tests/pt-br/homeassistant_HassGetState.yaml @@ -1,2 +1,66 @@ language: pt-br -tests: [] +tests: + - sentences: + - "a Luz do Quarto está ligada?" + intent: + name: HassGetState + slots: + name: "Luz do Quarto" + state: "on" + response: "Não, off" + + - sentences: + - "Algum interruptor está 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: + - "Alguma luz está ligada?" + intent: + name: HassGetState + slots: + domain: "light" + state: "on" + response: "Sim, Luz Cozinha e Luz da Garagem" diff --git a/tests/pt-br/homeassistant_HassNevermind.yaml b/tests/pt-br/homeassistant_HassNevermind.yaml new file mode 100644 index 0000000000..54907228fc --- /dev/null +++ b/tests/pt-br/homeassistant_HassNevermind.yaml @@ -0,0 +1,13 @@ +language: pt-br +tests: + - sentences: + - "esquece" + - "deixa lá" + - "deixa pra lá" + - "deixa para lá" + - "cancela" + - "cancelar" + - "nada" + intent: + name: HassNevermind + response: "" diff --git a/tests/pt-br/homeassistant_HassTurnOff.yaml b/tests/pt-br/homeassistant_HassTurnOff.yaml index a3afcd992e..22c3d6dc91 100644 --- a/tests/pt-br/homeassistant_HassTurnOff.yaml +++ b/tests/pt-br/homeassistant_HassTurnOff.yaml @@ -1,11 +1,9 @@ language: pt-br tests: - sentences: - - "desliga o Ventilador de Teto" - - "desligue a Ventilador de Teto" - - "desative o Ventilador de Teto" + - "desligar o Ventilador" intent: name: HassTurnOff slots: - name: Ventilador de Teto - response: "ventilador de teto desligado" + name: Ventilador + response: "ventilador desligado" diff --git a/tests/pt-br/homeassistant_HassTurnOn.yaml b/tests/pt-br/homeassistant_HassTurnOn.yaml index 169c988d64..7e40850855 100644 --- a/tests/pt-br/homeassistant_HassTurnOn.yaml +++ b/tests/pt-br/homeassistant_HassTurnOn.yaml @@ -1,11 +1,9 @@ language: pt-br tests: - sentences: - - "liga o Ventilador de Teto" - - "ligue a Ventilador de Teto" - - "ative o Ventilador de Teto" + - "ligar o Ventilador" intent: name: HassTurnOn slots: - name: Ventilador de Teto - response: "ventilador de teto ligado" + name: Ventilador + response: "ventilador ligado" diff --git a/tests/pt-br/light_HassLightSet.yaml b/tests/pt-br/light_HassLightSet.yaml index 2665b88fad..08b3cf7432 100644 --- a/tests/pt-br/light_HassLightSet.yaml +++ b/tests/pt-br/light_HassLightSet.yaml @@ -1,6 +1,65 @@ language: pt-br tests: - - sentences: [] + # brightness + - sentences: + - põe o brilho da luz do quarto a 50% + - ponha o brilho da luz do quarto a 50% + - põe a luz do quarto a 50% + - põe a luz do quarto a 50 porcento + - definir a luz do quarto a 50 porcento intent: name: HassLightSet - slots: {} + slots: + brightness: 50 + name: Luz do Quarto + response: Brilho definido + + - sentences: + - põe o brilho do quarto a 50% + - põe o brilho das luzes do quarto a 50% + - põe o brilho das luzes no quarto a 50% + - põe o brilho de todas as luzes do quarto a 50% + - põe todas as luzes do quarto a 50% + intent: + name: HassLightSet + slots: + brightness: 50 + area: Quarto + name: all + response: Brilho definido + + # color + - sentences: + - põe a luz do quarto a vermelho + - põe a luz do quarto vermelha + - põe a cor da luz do quarto a vermelho + intent: + name: HassLightSet + slots: + color: red + name: Luz do Quarto + response: Cor definida + + - sentences: + - põe a luz do quarto no quarto vermelha + intent: + name: HassLightSet + slots: + color: red + name: Luz do Quarto + area: Quarto + response: Cor definida + + - sentences: + - põe a cor do quarto a vermelho + - põe as luzes do quarto a vermelho + - põe a cor das luzes do quarto a vermelho + - põe o quarto a vermelho + - põe o quarto vermelho + intent: + name: HassLightSet + slots: + color: red + area: Quarto + name: all + response: Cor definida diff --git a/tests/pt-br/light_HassTurnOff.yaml b/tests/pt-br/light_HassTurnOff.yaml index 6fd734071b..1e9b23ed94 100644 --- a/tests/pt-br/light_HassTurnOff.yaml +++ b/tests/pt-br/light_HassTurnOff.yaml @@ -10,3 +10,4 @@ tests: slots: area: Sala de Estar domain: light + response: Luzes apagadas diff --git a/tests/pt-br/light_HassTurnOn.yaml b/tests/pt-br/light_HassTurnOn.yaml index f26844d113..1d96b15f5b 100644 --- a/tests/pt-br/light_HassTurnOn.yaml +++ b/tests/pt-br/light_HassTurnOn.yaml @@ -10,3 +10,4 @@ tests: slots: area: Sala de Estar domain: light + response: Acendendo luzes diff --git a/tests/pt-br/shopping_list_HassShoppingListAddItem.yaml b/tests/pt-br/shopping_list_HassShoppingListAddItem.yaml new file mode 100644 index 0000000000..7680283112 --- /dev/null +++ b/tests/pt-br/shopping_list_HassShoppingListAddItem.yaml @@ -0,0 +1,14 @@ +language: pt-br +tests: + - sentences: + - adiciona batatas à minha lista de compras + - adiciona batatas à lista de compras + - adicionar batatas à lista + - coloca batatas na lista + - colocar batatas na lista + - põe batatas na lista + intent: + name: HassShoppingListAddItem + slots: + item: "batatas " + response: Adicionei batatas diff --git a/tests/pt-br/todo_HassListAddItem.yaml b/tests/pt-br/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..b2dfc98730 --- /dev/null +++ b/tests/pt-br/todo_HassListAddItem.yaml @@ -0,0 +1,16 @@ +language: pt-br +tests: + - sentences: + - adiciona aspirar à minha lista de tarefas + - adiciona aspirar à lista de tarefas + - adiciona aspirar à lista tarefas + - coloca aspirar na lista de tarefas + - colocar aspirar na lista de tarefas + - põe aspirar na lista de tarefas + - pôr aspirar na lista de tarefas + intent: + name: HassListAddItem + slots: + item: "aspirar " + name: "Tarefas" + response: Adicionei aspirar diff --git a/tests/pt-br/weather_HassGetWeather.yaml b/tests/pt-br/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..448bd366d6 --- /dev/null +++ b/tests/pt-br/weather_HassGetWeather.yaml @@ -0,0 +1,23 @@ +language: pt-br +tests: + - sentences: + - "como está o tempo?" + intent: + name: HassGetWeather + response: Chuva, com temperatura de 18 °C + + - sentences: + - "como está o tempo em Ribeirão Preto" + intent: + name: HassGetWeather + slots: + name: Ribeirão Preto + response: Chuva, com temperatura de 18 °C + + - sentences: + - "como está o tempo no São Paulo" + intent: + name: HassGetWeather + slots: + name: São Paulo + response: Chuva, com temperatura de 19 °C