-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fr] Add new intents for cover, valve, vacuum, media player (#1973)
* [Fr] Add new intents for cover, valve, vacuum, media player I had to exclude the vacuum domain in homeassistant_HassTurnOff and homeassistant_HassTurnOn, not sure about the impact of that change. * Roll back on test/en/media_player_HassMediaNext.yaml * Update media_player_HassMediaNext.yaml * [Fr] HassMediaPause.yaml Changed response and test of HassMediaPause.yaml --> replace "Pause" with "Lecture en pause" * [Fr] Reviewed responses and removed expansion_rules Removed <volume> and <position> expansion rules Updated tests accordingly use <regle>, <ouvre> and <ferme> in sentences * [Fr] Update HassMediaNext Update the response: Suivant --> Média suivant Add an expansion_rule <media> with media types (chanson, film...) * [Fr] Reviewed verbs in new intents New expansion rules for handling infinitive form of verbs In the expansion_rule <lire>, I added a nominal form of verbs (lecture, reprise) as they can be used as orders with media players (For example: "Lecture sur la TV" ) Note: I also sorted the expansion rules <capteur> that was in the questions category * [Fr] fix HassVacuumReturnToBase verb + response update Use the expansion_rule <renvoie> Update responses for HassVacuumStart : "démarré" --> "Nettoyage démarré and HassMediaUnpause "Reprise" --> "Lecture relancée" * [Fr] adjustments on media_player_Hass... - sentences/fr/_common: split verbs "lire" and "reprendre". add "média" value in <media> expansion_rule - sentences/fr/media_player_HassUnpause: add an intent to cover "Reprends/reprendre la lecture sur [...]" - sentences/fr/media_player_HassSetVolume : Deleted unuseful spaces in intent - test/fr/media_player_HassMediaUnpause: add a test for covering all intents
- Loading branch information
Showing
31 changed files
with
280 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
language: fr | ||
responses: | ||
intents: | ||
HassMediaNext: | ||
default: "Média suivant" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
language: fr | ||
responses: | ||
intents: | ||
HassMediaPause: | ||
default: "Lecture en pause" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
language: fr | ||
responses: | ||
intents: | ||
HassMediaUnpause: | ||
default: "Lecture relancée" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
language: fr | ||
responses: | ||
intents: | ||
HassSetPosition: | ||
default: "Position réglée" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
language: fr | ||
responses: | ||
intents: | ||
HassSetVolume: | ||
default: "Volume réglé" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ responses: | |
fans: "Ventilateurs éteints" | ||
cover: "Fermé" | ||
lock: "Ouvert" | ||
valve: "Fermé" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ responses: | |
lock: "Fermé" | ||
scene: "Activée" | ||
script: "Démarré" | ||
valve: "Ouvert" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
language: fr | ||
responses: | ||
intents: | ||
HassVacuumReturnToBase: | ||
default: "Retour à la base" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
language: fr | ||
responses: | ||
intents: | ||
HassVacuumStart: | ||
default: "Nettoyage lancé" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
language: fr | ||
intents: | ||
HassSetPosition: | ||
data: | ||
- sentences: | ||
- "<regle> [la position de] [<le>]{name} à {position}<pourcent>" | ||
- "(<ouvre>|<ferme>) [<le>]{name} à {position}<pourcent>" | ||
requires_context: | ||
domain: | ||
- cover | ||
- valve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ intents: | |
excludes_context: | ||
domain: | ||
- cover | ||
- vacuum | ||
- valve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ intents: | |
excludes_context: | ||
domain: | ||
- cover | ||
- vacuum | ||
- valve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
language: fr | ||
intents: | ||
HassMediaNext: | ||
data: | ||
- sentences: | ||
- "<media> suivant[e] sur [<le>]{name}" | ||
- "<mets> (<le>|au|à la) <media> suivant[e] [sur] [<le>]{name}" | ||
requires_context: | ||
domain: media_player |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
language: fr | ||
intents: | ||
HassMediaPause: | ||
data: | ||
- sentences: | ||
- "<mets> [<le>]{name} sur pause" | ||
- "Pause sur [<le>]{name}" | ||
requires_context: | ||
domain: media_player |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
language: fr | ||
intents: | ||
HassMediaUnpause: | ||
data: | ||
- sentences: | ||
- "<lis> sur [<le>]{name}" | ||
- "<reprends> [la lecture] sur [<le>]{name}" | ||
requires_context: | ||
domain: media_player |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: fr | ||
intents: | ||
HassSetVolume: | ||
data: | ||
- sentences: | ||
- "<regle> [le volume de] [<le>]{name} à {volume:volume_level}<pourcent>" | ||
requires_context: | ||
domain: media_player |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: fr | ||
intents: | ||
HassVacuumReturnToBase: | ||
data: | ||
- sentences: | ||
- "<renvoie> [<le>]{name} [(à|sur) (sa|la) base]" | ||
requires_context: | ||
domain: vacuum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: fr | ||
intents: | ||
HassVacuumStart: | ||
data: | ||
- sentences: | ||
- "<demarre> [<le>]{name}" | ||
requires_context: | ||
domain: vacuum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
language: fr | ||
intents: | ||
HassTurnOff: | ||
data: | ||
- sentences: | ||
- "<ferme> [<le>]{name}" | ||
requires_context: | ||
domain: valve | ||
slots: | ||
domain: valve | ||
response: valve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
language: fr | ||
intents: | ||
HassTurnOn: | ||
data: | ||
- sentences: | ||
- "<ouvre> [<le>]{name}" | ||
requires_context: | ||
domain: valve | ||
slots: | ||
domain: valve | ||
response: valve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
language: fr | ||
tests: | ||
- sentences: | ||
- "Mets le rideau de la chambre à 50%" | ||
intent: | ||
name: HassSetPosition | ||
slots: | ||
name: "rideau de la chambre" | ||
position: 50 | ||
response: "Position réglée" | ||
- sentences: | ||
- "Ouvre le rideau de la chambre à 50%" | ||
intent: | ||
name: HassSetPosition | ||
slots: | ||
name: "rideau de la chambre" | ||
position: 50 | ||
response: "Position réglée" | ||
- sentences: | ||
- "Ajuste la position de la valve principale à 100%" | ||
intent: | ||
name: HassSetPosition | ||
slots: | ||
name: "valve principale" | ||
position: 100 | ||
response: "Position réglée" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
language: fr | ||
tests: | ||
- sentences: | ||
- "Morceau suivant sur TV" | ||
intent: | ||
name: HassMediaNext | ||
slots: | ||
name: "TV" | ||
response: "Média suivant" | ||
- sentences: | ||
- "Passe au film suivant sur la TV" | ||
intent: | ||
name: HassMediaNext | ||
slots: | ||
name: "TV" | ||
response: "Média suivant" | ||
- sentences: | ||
- "Mets la chanson suivante sur la TV" | ||
intent: | ||
name: HassMediaNext | ||
slots: | ||
name: "TV" | ||
response: "Média suivant" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: fr | ||
tests: | ||
- sentences: | ||
- "Mets la TV sur pause" | ||
- "Pause sur TV" | ||
intent: | ||
name: HassMediaPause | ||
slots: | ||
name: "TV" | ||
response: "Lecture en pause" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
language: fr | ||
tests: | ||
- sentences: | ||
- "reprends la lecture sur TV" | ||
- "lecture sur TV" | ||
- "lire sur TV" | ||
intent: | ||
name: HassMediaUnpause | ||
slots: | ||
name: "TV" | ||
response: "Lecture relancée" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: fr | ||
tests: | ||
- sentences: | ||
- "Ajuste le volume de la TV à 50 pourcent" | ||
intent: | ||
name: HassSetVolume | ||
slots: | ||
name: "TV" | ||
volume_level: 50 | ||
response: "Volume réglé" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
language: fr | ||
tests: | ||
- sentences: | ||
- "Renvoie Nestor sur sa base" | ||
intent: | ||
name: HassVacuumReturnToBase | ||
slots: | ||
name: "Nestor" | ||
response: "Retour à la base" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
language: fr | ||
tests: | ||
- sentences: | ||
- "Démarre Nestor" | ||
intent: | ||
name: HassVacuumStart | ||
slots: | ||
name: "Nestor" | ||
response: "Nettoyage lancé" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: fr | ||
tests: | ||
- sentences: | ||
- "ferme la valve principale" | ||
intent: | ||
name: HassTurnOff | ||
slots: | ||
domain: "valve" | ||
name: "valve principale" | ||
response: "Fermé" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: fr | ||
tests: | ||
- sentences: | ||
- "Ouvre la valve principale" | ||
intent: | ||
name: HassTurnOn | ||
slots: | ||
domain: "valve" | ||
name: "valve principale" | ||
response: "Ouvert" |