I propose to enhance the Start Scene action by allowing parameters to be passed to it.
I present a use case:
- In many of my scenes, I systematically do two things: send an audio message to my connected speaker and send the same message as text via Telegram to my phone. Thus, if I am at home I hear the information and if I am outside I receive the information.
- When building the scene, this forces me to add a
Send Messageaction and define the message, and add aSpeak on a Speakeraction by defining the same message. And since I often build the message with a variable, it really needs to be entered manually because copying/pasting with variables is not possible. - It would be much more practical to have a
Broadcast Infoscene that accepts a text parameter, and that this scene performs both actions. And then from any scene I could achieve both effects in a single action: calling the scene with the text as a parameter.
I therefore propose the following improvement:
- In the
Configurationsection of a scene, or in a new section betweenConfigurationandTriggers, have the ability to define one or more parameters by giving them a name (and possibly a type). - In the scene, be able to use these parameters as variables {{ param1. Parameter Name }}, {{ param2. Parameter Name }}.
- In the
Start Sceneaction, if it is a scene with parameters, be able to define the parameter(s) in fields.