Ability to call a scene with parameters

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 Message action and define the message, and add a Speak on a Speaker action 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 Info scene 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 Configuration section of a scene, or in a new section between Configuration and Triggers, 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 Scene action, if it is a scene with parameters, be able to define the parameter(s) in fields.

This is a duplicate of this request :slight_smile:

But I’m 100% okay with this request!

Oh yes, indeed, it’s the same. @pierre-gilles I’ll leave it to you to decide which one to keep…

I hadn’t thought to do that in the 3-4 I’d seen as duplicates, I closed the old one and the new one (or vice versa, I don’t even remember, and that was 2 days ago :sweat_smile:).
I’ll fix all that to keep the histories.

I’ve merged the topic, so I’m closing this one.