#Optional Word Formatting in GUI sentence triggers
1 messages · Page 1 of 1 (latest)
I'm hoping this becomes a feature. I couldn't even find anything promising about possibly using manual event triggers. I don't want to have to put even more handwritten stuff into yaml files using the file editor just to have a command with optional words. At the same time, I don't want to have to enter all fifteen possible ways I could say "pause the air conditioner for a little bit" since I could said AC, air conditioner, air conditioning, or even cooling. Not to mention, a little bit can be phrased as a bit, a while, a few, etc.
https://www.home-assistant.io/docs/automation/trigger/#sentence-trigger This page shows something to this effect, but I think it's only for if you're using a trigger for a custom sensor that you'd write into a yaml file yourself. It would be nice to be able to format the same way it suggests here.
Use brackets for optional words. Example:
turn on the Air Conditioner[ please]
Or have multiple choices of a phrase wrapped in paranthesis with each choice separated by a pipe. example
turn on the (air conditioner|air conditioning|a c|cooler)
I tried putting in this kind of stuff using the YAML editor, but it if you go back to the visual editor, you just get back "null".
This is already a feature... and you don't need to switch the YAML to use the hassil templates:
I gave it a shot, and commands with this kind of formatting don't seem to work half the time.
It’s probably not quite the same thing but I’ve had some success exposing scripts to OpenAI and having it call them. Got to set a decent description but for a simple script without parameters it should be simple. No isea if your using OpenAI though…
Nah, I'm avoiding Open AI