Skip to content

[FR] Add "ouvrir" and "fermer" to light intents #3153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jbblanchet
Copy link
Contributor

Add "ouvrir" and "fermer" to turn lights on and off, to support French Canadians specificity.

Reference:

I didn't add any tests around setting light color. I wouldn't use "ouvrir" in that context.

augmente: "(augmente|augmenter|monte|monter)"
demarre: "(démarre|démarrer|lance|lancer)"
diminue: "(diminue|diminuer|baisse|baisser)"
eclaire: "(éclaire|éclairer|illumine|illuminer)"
eteins: "(éteint|eteint|éteins|eteins|éteindre|eteindre|désactive|désactiver|stoppe|stopper|arrête|arrêter|coupe|couper|<eteins_dirty>)"
eteins: "(éteint|eteint|éteins|eteins|éteindre|eteindre|désactive|désactiver|stoppe|stopper|arrête|arrêter|coupe|couper|ferme|fermer|<eteins_dirty>)"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added ferme and fermer here instead of <ferme>, because the definition of <ferme> includes .

@@ -493,12 +493,12 @@ expansion_rules:

# Verbs
active: "(active|activer|joue|jouer|exécute|exécuter|démarre|démarrer|lance|lancer)"
allume: "(allume|allumer|active|activer|démarre|démarrer)"
allume: "(allume|allumer|active|activer|démarre|démarrer|ouvre|ouvrir)"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as ferme below, didn't want to include <monte> by transitivity.

@andreasbrett andreasbrett changed the title Add "ouvrir" and "fermer" to light intents for French [FR] Add "ouvrir" and "fermer" to light intents May 1, 2025
Copy link
Contributor

@jlpouffier jlpouffier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super cool! Thx

@jlpouffier
Copy link
Contributor

@piitaya Let's keep an eye on collision with other intent when this drops out.
I'm thinking about users that are really using Allumer X and ouvrir X on two different Xs

@jlpouffier jlpouffier merged commit 210bfeb into home-assistant:main May 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants