In Gladys Assistant, it is possible to create scenes: a set of actions executed consecutively or in parallel.
The scenes are entirely personalized: it is the user who composes this action suite in the Gladys scene editor.
These scenes can be triggered manually, or automatically via a trigger.
Some examples :
- A "turn off the whole house" scene, which would turn off all the lights in the house. This scene is useful in manual triggering if you want to be able to cut everything at home remotely.
- An "Intrusion alert" scene, which sends a Telegram message to the user. This scene would be configured to run after an "If motion is detected" trigger.
To create a scene, you can go to the "Scenes" tab of your Gladys interface, and click on the "New +" button.
Then you can choose a name for your scene, as well as an icon. This icon is only useful in the Gladys interface.
You are now in the scene editor. Let's analyze each part of the editor together:
- Triggers: If you add triggers to your scene (which is optional), they will appear here. The same scene can be triggered by several different triggers. These triggers are all independent. Adding several triggers simply means: "When this event occurs OR When this event occurs OR ..."
- An action block: a scene is split into one or more action blocks. When you add actions to this action block, all actions in the block will run in parallel. If you add actions to the next action block (not visible in this screenshot), the scene will wait until action block # 1 is finished before moving on to the next one. So you can parallelize the different actions, and not just do sequential, powerful right?
- Execute: This button allows you to test the execution of the scene. This button does not take triggers into account, it only executes action blocks.
- Save: This button saves the scene.
- Delete: This button deletes the scene.
- Add trigger: This button allows you to add a trigger to the scene. You can add as many triggers as you want.
- Add action: This button adds an action to the action block.
- Click on the scene title to edit it.