Trigger a scene by sending a message/phrase to Gladys

Hello :slight_smile:

I just had a feature idea for Gladys, specifically for the chat feature.

I think it would be interesting to be able to add a « chat » trigger in scenes and to define keywords or phrases that would trigger the scenes.

That would allow executing complex scenes just by sending a word to Gladys.

For example: I send the word « Report » in the Gladys chat and via a scene I send back in the chat all the sensor information I want.

Currently we can already send back a message via a scene but we cannot « receive » one.

I hope my explanation is clear and will seem useful to you :wink:

Thank you

Hello @Checconio :

I’ve worked a bit on this new feature.
I can launch a scene from the chat.
Does this match your request?

Here is the Docker image with the changes: delogzway/gladys:execute_scene_from_chat

Could you run tests on your side?

1 Like

Hi @Lokkye

Thanks for your feedback!

That’s indeed the point of my proposal :slight_smile:

I’ll test that and let you know :wink:

That’s great!

1 Like

@Checconio : Thank you very much for the tests :slight_smile:

@pierre-gilles : The small PR that does the job :

2 Likes

@Lokkye Thanks for the PR, indeed I had coded this feature via the ChatGPT integration but I had forgotten to add the local phrases :slight_smile: It’s fine with me, and merged into master.

It will be included in the next Gladys release!

3 Likes

This feature is available in Gladys Assistant 4.30!