Hi All,
I’ve been battling away trying to get custom intents working as I want to be able to say “Play X on Y in Z” and really constraint what Y and Z are.
My intent “works” if i put something unique in it like “abracadabra Play X on Y in Z” however without that uniquness, i easily clash with HassMediaSearchAndPlay which seems to have template sentenses for all sorts.
I suppose what I’m looking for is the ability to some how rank my custom intents more highly than the default ones, or even turn the default ones off, but I cannot find any way to do this.
Apologies if this is a dumb question, I’m reasonably new to custom intents.
I played around a fair bit with customs and sentence triggers earlier in the year and have forgotten some of this, but looking back at some notes I made, here are a couple of thoughts:
If both a Sentence Trigger and a built-in intent matches, the Sentence trigger action seems to take precedence. So maybe try a sentence trigger.
I have written what is called an “extension” to an existing built-in response (an extension is a custom that uses the same name as the built-in) and found that my custom response actions are run instead of the built-in ones. So if HassMediaSearchAndPlay match the intents you like, but you want a different action(s), you can try this method.
Here is one I have not tried. You may want to try to “extend” the existing HassMediaSearchAndPlay built-in intent. Normally the “extended” intent is not suppose to conflict with the built-in one, just “extends” it. However try and see what happens when your custom extension intent of HassMediaSearchAndPlay matches the built-in intents and see if yours takes precedence.