Skip to content

Commit

Permalink
Add more variants setences to pt-pt (#1506)
Browse files Browse the repository at this point in the history
  • Loading branch information
abmantis authored Nov 1, 2023
1 parent b2e9bf7 commit 79cfa36
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 16 deletions.
30 changes: 16 additions & 14 deletions sentences/pt/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ lists:
out: "off"
on_off_domains:
values:
- in: (luz|luzes)
- in: (luz|luzes|lampada|lampadas)
out: light
- in: (ventoinha|ventoinhas)
out: fan
- in: (interruptor|interruptores)
- in: (interruptor|interruptores|tomada|tomadas)
out: switch
cover_states:
values:
Expand All @@ -89,43 +89,45 @@ lists:
out: "closing"
cover_classes:
values:
- in: awning[s]
- in: (toldo[s]|tolde[s])
out: awning
- in: blind[s]
- in: persiana[s]
out: blind
- in: (cortina|cortinas)
- in: cortina[s]
out: curtain
- in: door[s]
- in: porta[s]
out: door
- in: garage door[s]
- in: (porta[s] da garagem|portão|portões)
out: garage
- in: gate[s]
- in: (portão|portões)
out: gate
- in: shade[s]
- in: (toldo[s]|tolde[s])
out: shade
- in: shutter[s]
- in: persiana[s]
out: shutter
- in: window[s]
- in: janela[s]
out: window
lock_states:
values:
- in: "locked"
- in: "(trancad[a[s]|o[s]])"
out: "locked"
- in: "unlocked"
- in: "(destrancad[a[s]|o[s]])"
out: "unlocked"

expansion_rules:
muda: "(põe|ponha|muda|altera|coloca|deixa|pôr|mudar|alterar|colocar|deixar)"
liga: "(liga|ligue|acende|acenda|ligar|acender)"
liga: "(liga|ligue|acende|acenda|ligar|acender|ativa|ativar|ative)"
desliga: "(desliga|desligue|apaga|apague|desligar|apagar)"
abre: "(abra|abre|abrir)"
fecha: "(fecha|feche|fechar)"
nome: "[(o|os|a|as)] {name}"
zona: "[(o|os|a|as)] {area}"
na_zona: "(no|na|da|do) {area}"
esta: "(está|estão|existe|existem)"
qual: "(que|qual|qual é|quais)"
brilho: "{brightness}[%| porcento]"
temperatura: "{temperature}[°| graus] [{temperature_unit}]"
algum: "(algum|alguma|alguns|algumas)"

skip_words:
- "por favor"
Expand Down
4 changes: 2 additions & 2 deletions sentences/pt/homeassistant_HassGetState.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ intents:
- cover

- sentences:
- (está|estão) (algum|alguns) {on_off_domains:domain} {on_off_states:state} [<na_zona>]
- <esta> <algum> {on_off_domains:domain} {on_off_states:state} [<na_zona>]
response: any

- sentences:
- (todos|todas) [os|as] {on_off_domains:domain} estão {on_off_states:state} [<na_zona>]
response: all

- sentences:
- (quais|qual|que) {on_off_domains:domain} (está|estão) {on_off_states:state} [<na_zona>]
- <qual> {on_off_domains:domain} (está|estão) {on_off_states:state} [<na_zona>]
response: which

- sentences:
Expand Down
12 changes: 12 additions & 0 deletions tests/pt/homeassistant_HassGetState.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,15 @@ tests:
domain: "light"
state: "on"
response: "2"

- sentences:
- "Está alguma luz ligada?"
- "Está alguma lampada ligada?"
- "Existe alguma luz ligada?"
- "Existe alguma lampada ligada?"
intent:
name: HassGetState
slots:
domain: "light"
state: "on"
response: "Sim, Luz Cozinha e Luz da Garagem"

0 comments on commit 79cfa36

Please sign in to comment.