m50 / ha-fallback-conversation

HomeAssistant Assist Fallback Conversation Agent
MIT License
81 stars 12 forks source link

Stop Fallback when Nevermind is triggered #41

Closed 33masterman33 closed 49 minutes ago

33masterman33 commented 22 hours ago

Hello, I believe the fallback is working as intended although I feel like it has a small oversight. I wanted to use the standard HA agent because it allows me to add the word "cancel" as a phrase that will stop the processing. The default phrase is "nevermind".

I think the fact that it responds with the action_done with no other information the fallback kicks in and moves on to the secondary agent.

My goal is to have HA detect cancel and stop the entire process, but if my request doesn't contain cancel then the fallback would proceed as it currently does. Is this possible?

Thank you for the consideration. Apologizes for formatting I am on mobile currently.

33masterman33 commented 22 hours ago

I might just have a misunderstanding of the HA conversation agent. It appears that when I did my custom phrase of cancel it doesn't apply as a part of a phrase rather as the whole phrase.

So if I say anything in addition to cancel HA will still process it. I think the fallback works exactly as I expect once I sort out this issue.

33masterman33 commented 49 minutes ago

After I figured out how to properly configure the sentence detection with wildcards I have my desired behavior. While canceling works, it does produce an error in fallback-conversation. I will open a separate issue as it is now a different topic.