opensourceautomation / Open-Source-Automation

Open Source Automation is a home and commercial automation engine
www.opensourceautomation.com
GNU Lesser General Public License v3.0
97 stars 62 forks source link

Speech - Add Parameter Prompt support for Methods #362

Open VaughnRupp opened 7 years ago

VaughnRupp commented 7 years ago

If a method is called that has parameters, but none are given, prompt for them if the prompt option is selected on that method.

Example Dimmer Method "ON" has a level parameter.

"Dim on Bedroom light" is heard by grammar, it sees the "Level" parameter and is set to prompt, so it asks "What level?" the answer to that prompt is passed to the previous method as PARAM1.

VaughnRupp commented 7 years ago

The prompt support that is being used now can bee seen when executing a method from the object page on the web ui, it will prompt for parameters. And the grammar set also supports questions, so these two features just need to be linked together.