Random word gets added to spoken sentence


I have the following sentence in my sentences.ini using Kaldi/fsticuffs:

\[set] (timer|countdown) in [$Room{Room}] to (0..60){Value} (seconds|minutes|hours){Unit}

If I speak a sentence omiting the unit like
set timer to 2
there is always a random unit added.

How can I avoid this? I want such a sentence resulting in an error.


Make the {unit} slot optional and return an error in your intent handler when it is not defined.

Nice one!

Thanks a lot