# Issues with the discussion

**URL:** <https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752>\
**Category:** Configuration\
**Created:** [November 16, 2020, 12:15pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752 "2020-11-16T12:15:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamtaro](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hamtaro/32/2373_2.png) [@Hamtaro](https://community.gladysassistant.com/u/Hamtaro)\
**Post date:** [November 16, 2020, 12:15pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/1 "2020-11-16T12:15:47Z")

</div>

Hello

I have a strange behavior via the discussion tab:

 ![Capture d’écran 2020-11-16 à 13.12.54](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/2/20aff77866fb0486f08f273ef2c47af7cbb6cb99.png)

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [November 16, 2020, 12:36pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/2 "2020-11-16T12:36:36Z")

</div>

Does a ceiling turn off? 😃

I’m not sure about that 🤨

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [November 16, 2020, 12:48pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/3 "2020-11-16T12:48:17Z")

</div>

To my mind, the model does not recognize the command «&nbsp;Turn off the kitchen ceiling&nbsp;» because of the spelling mistake on the verb «&nbsp;éteindre&nbsp;» which in the imperative is normally «&nbsp;éteins&nbsp;» with an S 😁

 ![Screenshot 2020-11-16 at 14.40.05](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/f/fa5fbf0ab9aca36b2dd4d23d738f14beb7da84f4.png)

In the model, the command is:

```auto
{
    "label": "light.turn-off",
    "questions": ["Turn off the light in the %room%", "Turn off in the %room%"],
    "answers": ["Extinction des feux...", "I'm turning off the light!"]
}

```

I don’t remember how much tolerance there is for a spelling mistake in a word in the lib we use (nlp.js), there is tolerance for the general syntax of the sentence but I don’t remember for the «&nbsp;word by word&nbsp;» part.

Given that in your sentence the only word that makes sense is that word and it is misspelled, of course the model does not understand… 😃 But I agree that it would be cool if the model were more flexible with errors.

I created an issue to keep the issue in mind, but it’s very very low priority, we have millions of things before that 🙂

> <https://github.com/GladysAssistant/Gladys/issues/958>
>
> This is very low priority
> 
> https://community.gladysassistant.com/t/bugs-avec-l…a-discussion/5752/2

---

<div class="post-metadata">

**Author:** ![Hamtaro](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hamtaro/32/2373_2.png) [@Hamtaro](https://community.gladysassistant.com/u/Hamtaro)\
**Post date:** [November 16, 2020, 1:02pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/4 "2020-11-16T13:02:22Z")

</div>

Thanks for pointing out my grammar…  
But it does solve the issue. Lack of flexibility, all that… 😛

---

<div class="post-metadata">

**Author:** ![Hamtaro](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hamtaro/32/2373_2.png) [@Hamtaro](https://community.gladysassistant.com/u/Hamtaro)\
**Post date:** [November 16, 2020, 1:04pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/5 "2020-11-16T13:04:44Z")

</div>

Another issue

 ![Capture d’écran 2020-11-16 à 14.03.38](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/19ea462a1fb8b32e74139d51efa7ebb4a95e54e5.png)

First order, the light called piano is not physically turned on (and therefore not in the UI) but Gladys says yes.

Second order: it works.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [November 16, 2020, 1:12pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/6 "2020-11-16T13:12:17Z")

</div>

> [@Hamtaro](#):
>
> First order, the light called piano is not physically turned on (and therefore not in the UI) but Gladys says yes.
> 
> Second order: it works.

This is a real bug, not very complicated to fix, I created an issue:

> <https://github.com/GladysAssistant/Gladys/issues/959>
>
> server/lib/device/light/light.command.js/command.js
> 
> Should send a specific me…ssage when no light was found instead of the success message
> 
> 
> ref: https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/5?u=pierre-gilles

---

<div class="post-metadata">

**Author:** ![Hamtaro](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hamtaro/32/2373_2.png) [@Hamtaro](https://community.gladysassistant.com/u/Hamtaro)\
**Post date:** [November 16, 2020, 1:17pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/7 "2020-11-16T13:17:15Z")

</div>

> [@pierre-gilles](#):
>
> That’s a real bug

Oh, how nice of him! 😉

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [November 16, 2020, 1:34pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/8 "2020-11-16T13:34:25Z")

</div>

I had the same experience as you @Hamtaro, it’s true, we should relax the tolerance on typos. 😉

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [November 17, 2020, 8:31pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/9 "2020-11-17T20:31:06Z")

</div>

Shouldn’t we enrich the sentences we can write in Gladys to have something nicer?  
Because we often have «&nbsp;I don’t understand.&nbsp;»

Like: hello, hi, how are you,…  
Basic things for now and to be enriched over time.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [November 17, 2020, 10:24pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/10 "2020-11-17T22:24:04Z")

</div>

> **[Gladys/server/config/brain at master · GladysAssistant/Gladys](https://github.com/GladysAssistant/Gladys/tree/master/server/config/brain)**
>
> A privacy-first, open-source home assistant. Contribute to GladysAssistant/Gladys development by creating an account on GitHub.

That’s where it happens

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [November 18, 2020, 8:41am UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/11 "2020-11-18T08:41:58Z")

</div>

I opened a PR on GitHub, but you need to tell me if what I did is good.  
I could add more sentences later.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [November 18, 2020, 10:35am UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/12 "2020-11-18T10:35:09Z")

</div>

Don’t forget English 😉

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [November 18, 2020, 10:41am UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/13 "2020-11-18T10:41:12Z")

</div>

Yes, of course.  
I will check for the French version if @pierre-gilles accepts my additions, I will do the English version.

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [November 18, 2020, 1:55pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/14 "2020-11-18T13:55:10Z")

</div>

What I find a bit disappointing is that just as everyone is getting used to talking to the Google Assistant… here we are with an «&nbsp;assistant&nbsp;» that doesn’t really understand what we’re saying.

Silly me, I’d like to be able to say:  
«&nbsp;turn on the light in the bedroom&nbsp;»  
«&nbsp;turn on the bedroom light&nbsp;»  
«&nbsp;turn on the light in the bedroom&nbsp;»  
«&nbsp;turn on the bedroom bulb&nbsp;»

And for all of that to have just one result… that the damn bulb gets turned on lol

I might be imagining things, but is this feasible?

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [November 18, 2020, 2:11pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/15 "2020-11-18T14:11:57Z")

</div>

In my opinion, it’s feasible, you just need to put the different turns of phrase in «&nbsp;questions&nbsp;» to get the desired result.

For example when you tell it:  
«&nbsp;questions&nbsp;»: [«&nbsp;Turn on the light in the %room%&nbsp;», «&nbsp;Turn on in the %room%&nbsp;»],  
«&nbsp;answers&nbsp;»: [«&nbsp;Turning on…&nbsp;», «&nbsp;I’m turning on the light!&nbsp;»]

---

<div class="post-metadata">

**Author:** ![Hamtaro](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hamtaro/32/2373_2.png) [@Hamtaro](https://community.gladysassistant.com/u/Hamtaro)\
**Post date:** [November 18, 2020, 2:42pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/16 "2020-11-18T14:42:10Z")

</div>

> [@guim31](#):
>
> Silly I would like to be able to say:  
> “turn on the light in the bedroom”  
> “turn on the bedroom light”  
> “turn it on in the bedroom”  
> “turn on the bedroom bulb”

And it is the case! 😛

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [November 18, 2020, 2:43pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/17 "2020-11-18T14:43:52Z")

</div>

Oh, then I didn’t take the right example, because when I tested the conversation a bit, I got too (too many?) answers: I don’t understand

---

<div class="post-metadata">

**Author:** ![Hamtaro](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hamtaro/32/2373_2.png) [@Hamtaro](https://community.gladysassistant.com/u/Hamtaro)\
**Post date:** [November 18, 2020, 2:45pm UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/18 "2020-11-18T14:45:52Z")

</div>

The issue is the spelling of the trigger, not specifically the articles.  
And it’s annoying when you get a rejection for a «&nbsp;éteint&nbsp;» instead of «&nbsp;éteins&nbsp;»…

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [November 22, 2020, 11:00am UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/19 "2020-11-22T11:00:33Z")

</div>

I am adding sentences to the chat.  
I have added lines with jokes that I will enrich over time.  
What would you like to ask Gladys?

- Shi fu mi
- A number between 0 and 10
- …

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [November 22, 2020, 11:12am UTC](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752/20 "2020-11-22T11:12:45Z")

</div>

Heads or tails!  
It’s always handy not to make a decision 🙂

[Next page](https://community.gladysassistant.com/t/bugs-avec-la-discussion/5752.md?page=2)
