Skip to content

Commit

Permalink
[ES] Adding new intents from #1967 (#1968)
Browse files Browse the repository at this point in the history
  • Loading branch information
davefx authored Feb 20, 2024
1 parent 7edd6ed commit d6c8a13
Show file tree
Hide file tree
Showing 31 changed files with 254 additions and 0 deletions.
5 changes: 5 additions & 0 deletions responses/es/HassMediaNext.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: es
responses:
intents:
HassMediaNext:
default: "Reproduciendo siguiente"
5 changes: 5 additions & 0 deletions responses/es/HassMediaPause.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: es
responses:
intents:
HassMediaPause:
default: "Reproducción en pausa"
5 changes: 5 additions & 0 deletions responses/es/HassMediaUnpause.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: es
responses:
intents:
HassMediaUnpause:
default: "Continuando reproducción"
5 changes: 5 additions & 0 deletions responses/es/HassSetPosition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: es
responses:
intents:
HassSetPosition:
default: "Posición establecida"
5 changes: 5 additions & 0 deletions responses/es/HassSetVolume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: es
responses:
intents:
HassSetVolume:
default: "Volumen establecido"
1 change: 1 addition & 0 deletions responses/es/HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ responses:
cover_device_class: "Cierre completado"
lock: "{{ slots.name }} se ha abierto"
lock_area: "Apertura completada"
valve: "{{ slots.name }} se ha cerrado"
1 change: 1 addition & 0 deletions responses/es/HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ responses:
script: "Script iniciado"
lock: "{{ slots.name }} se ha cerrado"
lock_area: "Cierre efectuado"
valve: "{{ slots.name }} se ha abierto"
5 changes: 5 additions & 0 deletions responses/es/HassVacuumReturnToBase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: es
responses:
intents:
HassVacuumReturnToBase:
default: "Regresando"
5 changes: 5 additions & 0 deletions responses/es/HassVacuumStart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: es
responses:
intents:
HassVacuumStart:
default: "Limpieza iniciada"
18 changes: 18 additions & 0 deletions sentences/es/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,18 @@ lists:
zone:
wildcard: true

position:
range:
type: "percentage"
from: 0
to: 100

volume:
range:
type: "percentage"
from: 0
to: 100

expansion_rules:
abre: "(abr(a|e|ir|í)|sub(a|e|ir|í))"
ahora: "[ahora [mismo]|actual[mente]|en este momento]"
Expand All @@ -340,13 +352,19 @@ expansion_rules:
enciende: "(enc[i]end(a|e|er|é)|conect(a|e|ar|á)|activ(a|e|ar|á)|prend(a|e|er|é))"
ejecuta: "(<enciende>|ejecut(a|e|ar|á)|inici(a|e|ar|á))"
establece: "(pon[ga|er|é]|estable[z]c(a|e|er|é)|ajust(a|e|ar|á)|configur(a|e|ar|á)|cambi(a[r]|á|e))"
establece_abre_cierra: "(<establece>|<abre>|<cierra>)"
establece_sube_baja: "(<establece>|sub(a|e|ir|í)|baj(a|e|ar|á))"
mide: "[que] ([es|está] (mid(e|ie)|medi|indica|marca)[ndo|d(a|o)]|tiene|hay) [por|en]"
name: "[el|la|los|las] {name}"
pausa: "(paus(a|ar|e|á)|par(a|ar|e|á))|det(én|ener|enga|ené)"
pista: "(pista|canción|medio|vídeo|video|elemento)"
posición: "{position}[ ][%|por[ ]ciento]"
puerta: "[el|la] (puerta|portón|cancela|verja|reja|compuerta|portillo)"
reproduce: "(reprodu(ce|cir|cí|zca)|escuchar|oir|ver|visualizar)"
se_encuentra: (se (encuentra|localiza|ubica)|está|mora)
temp: "[el|la] (temperatura|calor|grados)"
temperature: "{temperature} [grados] [{temperature_unit}]"
volumen: "{volume:volume_level}[ ][%|por[ ]ciento]"

# Preguntas
cual_es_la_medida_del_sensor: "(<cual_es>|Qué|Cuánt(a|o)[s]) [(la (cantidad|medida)|el nivel) de ][<class> (de|del|en|desde|por|<mide>)] [[el ](sensor |medidor )[de ]]<name> [<area>]"
Expand Down
10 changes: 10 additions & 0 deletions sentences/es/homeassistant_HassSetPosition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: es
intents:
HassSetPosition:
data:
- sentences:
- "<establece_abre_cierra> [posición de] <name> a[l] <posición>"
requires_context:
domain:
- cover
- valve
5 changes: 5 additions & 0 deletions sentences/es/homeassistant_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ intents:
- scene
- script
- sensor
- sentences:
- <cierra> <name>
excludes_context:
domain:
- valve
2 changes: 2 additions & 0 deletions sentences/es/homeassistant_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ intents:
- scene
- script
- sensor
- vacuum
- valve
8 changes: 8 additions & 0 deletions sentences/es/media_player_HassMediaNext.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: es
intents:
HassMediaNext:
data:
- sentences:
- "[<reproduce>] ([<pista> ]siguiente|siguiente <pista>) [en|para] <name>"
requires_context:
domain: media_player
8 changes: 8 additions & 0 deletions sentences/es/media_player_HassMediaPause.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: es
intents:
HassMediaPause:
data:
- sentences:
- "<pausa> <name>"
requires_context:
domain: media_player
8 changes: 8 additions & 0 deletions sentences/es/media_player_HassMediaUnpause.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: es
intents:
HassMediaUnpause:
data:
- sentences:
- "(contin(úa|uar|úe|uá)|(sigue|seguir|siga|seguí)) <name>"
requires_context:
domain: media_player
8 changes: 8 additions & 0 deletions sentences/es/media_player_HassSetVolume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: es
intents:
HassSetVolume:
data:
- sentences:
- "<establece_sube_baja> [[el] volumen de] <name> a[l] <volumen>"
requires_context:
domain: media_player
9 changes: 9 additions & 0 deletions sentences/es/vacuum_HassVacuumReturnToBase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: es
intents:
HassVacuumReturnToBase:
data:
- sentences:
- "(dev(uelve|uelva|olver|olvé)|retorn(a|ar|e|á)|regres(a|ar|e|á)) <name> [a [la] base]"
- "que <name> (vuelva|regrese|retorne) [a [la] base]"
requires_context:
domain: vacuum
8 changes: 8 additions & 0 deletions sentences/es/vacuum_HassVacuumStart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: es
intents:
HassVacuumStart:
data:
- sentences:
- "<ejecuta> <name>"
requires_context:
domain: vacuum
11 changes: 11 additions & 0 deletions sentences/es/valve_HassTurnOff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: es
intents:
HassTurnOff:
data:
- sentences:
- "<cierra> <name>"
requires_context:
domain: valve
slots:
domain: valve
response: valve
11 changes: 11 additions & 0 deletions sentences/es/valve_HassTurnOn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: es
intents:
HassTurnOn:
data:
- sentences:
- "<abre> <name>"
requires_context:
domain: valve
slots:
domain: valve
response: valve
17 changes: 17 additions & 0 deletions tests/es/_fixtures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ entities:
out: "closed"
attributes:
device_class: curtain
position: "0"

- name: Interruptor dormitorio
id: switch.interruptor_dormitorio
Expand Down Expand Up @@ -738,3 +739,19 @@ entities:
- name: "Mercadona"
id: "todo.mercadona"
state: ""

- name: "Llave de paso"
id: "valve.llave_de_paso"
state: "open"
attributes:
position: "100"

- name: "TV"
id: "media_player.tv"
state: "idle"
attributes:
volume_level: "50"

- name: "Aspiradora"
id: "vacuum.aspiradora"
state: "idle"
18 changes: 18 additions & 0 deletions tests/es/homeassistant_HassSetPosition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: es
tests:
- sentences:
- "abre la cortina dormitorio al 50%"
intent:
name: HassSetPosition
slots:
name: "Cortina dormitorio"
position: 50
response: "Posición establecida"
- sentences:
- "ajusta llave de paso al 100"
intent:
name: HassSetPosition
slots:
name: "Llave de paso"
position: 100
response: "Posición establecida"
9 changes: 9 additions & 0 deletions tests/es/media_player_HassMediaNext.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: es
tests:
- sentences:
- "siguiente pista en TV"
intent:
name: HassMediaNext
slots:
name: "TV"
response: "Reproduciendo siguiente"
9 changes: 9 additions & 0 deletions tests/es/media_player_HassMediaPause.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: es
tests:
- sentences:
- "pausar TV"
intent:
name: HassMediaPause
slots:
name: "TV"
response: "Reproducción en pausa"
9 changes: 9 additions & 0 deletions tests/es/media_player_HassMediaUnpause.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: es
tests:
- sentences:
- "continuar TV"
intent:
name: HassMediaUnpause
slots:
name: "TV"
response: "Continuando reproducción"
10 changes: 10 additions & 0 deletions tests/es/media_player_HassSetVolume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: es
tests:
- sentences:
- "ajustar volumen de TV al 50 por ciento"
intent:
name: HassSetVolume
slots:
name: "TV"
volume_level: 50
response: "Volumen establecido"
10 changes: 10 additions & 0 deletions tests/es/vacuum_HassVacuumReturnToBase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: es
tests:
- sentences:
- "devolver aspiradora a base"
- "que aspiradora vuelva a la base"
intent:
name: HassVacuumReturnToBase
slots:
name: "Aspiradora"
response: "Regresando"
9 changes: 9 additions & 0 deletions tests/es/vacuum_HassVacuumStart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: es
tests:
- sentences:
- "encender aspiradora"
intent:
name: HassVacuumStart
slots:
name: "Aspiradora"
response: "Limpieza iniciada"
10 changes: 10 additions & 0 deletions tests/es/valve_HassTurnOff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: es
tests:
- sentences:
- "cerrar llave de paso"
intent:
name: HassTurnOff
slots:
domain: "valve"
name: "Llave de paso"
response: "llave de paso se ha cerrado"
10 changes: 10 additions & 0 deletions tests/es/valve_HassTurnOn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: es
tests:
- sentences:
- "abrir la llave de paso"
intent:
name: HassTurnOn
slots:
domain: "valve"
name: "Llave de paso"
response: "llave de paso se ha abierto"

0 comments on commit d6c8a13

Please sign in to comment.