#Optional Word Formatting in GUI sentence triggers

1 messages · Page 1 of 1 (latest)

clear schooner
#

When using strictly the GUI for automation programming, is there a way to clean this up so I can have optional or missing words and still trigger my actions without having to write out every permutation?

stone belfry
#

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".

Home Assistant

All the different ways how automations can be triggered.

wind lodge
stone belfry
#

I gave it a shot, and commands with this kind of formatting don't seem to work half the time.

restive kayak
#

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…

stone belfry
#

Nah, I'm avoiding Open AI