Hello
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
Thank you
Lokkye
October 10, 2023, 8:31am
2
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?
Hi @Lokkye
Thanks for your feedback!
That’s indeed the point of my proposal
I’ll test that and let you know
Lokkye
October 13, 2023, 6:16am
5
@Checconio : Thank you very much for the tests
@pierre-gilles : The small PR that does the job :
master ← callemand:execute_scene_from_chat
ouvert 05:55AM - 13 Oct 23 UTC
### Pull Request check-list
To ensure your Pull Request can be accepted as fa… st as possible, make sure to review and check all of these items:
- [x] If your changes affects code, did your write the tests?
- [x] Are tests passing? (`npm test` on both front/server)
- [x] Is the linter passing? (`npm run eslint` on both front/server)
- [x] Did you run prettier? (`npm run prettier` on both front/server)
- [x] If you are adding a new features/services, did you run integration comparator? (`npm run compare-translations` on front)
- [x] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community ([french forum](https://community.gladysassistant.com/)/[english forum](https://en-community.gladysassistant.com/)) for testing before merging.
### Description of change
Add the capability to launch a scene from the chat with sentences :
- Launch [scene name]
- Run [scene name]
- Lance la scène [scene name]
- Lance [scene name]

@Lokkye Thanks for the PR, indeed I had coded this feature via the ChatGPT integration but I had forgotten to add the local phrases It’s fine with me, and merged into master.
It will be included in the next Gladys release!
This feature is available in Gladys Assistant 4.30!