This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
new flow - possible?
scocz
Member
any way to create a flow where homey replies you with "i couldnt understand you" when it gets a command it doesnt know and just executes when it does recognize it?
Comments
because now, it turns to rainbow, i think it could be very usefull know haveing negative feedback, so homey could stay on listening mode, without having to trigger it again
So:
- when Homey starts listening, set a variable to the current time
- when Homey recognizes something/triggers an action, set the variable to 0.
- if the variable is set, and the current time > value of the variable + 5 seconds, then say "I'm sorry, I don't understand what you mean" ?
When does homey recognize something? Some commands are internal ones, some are defined by the user. Homey does probably know when it has no match, we don't. You need a voice trigger that fires when no match was found. you would probably also want a label to be used in the 'Ask confirmation' condition where you can repeat what homey received as input like 'Sorry, I did not understand you. Did you mean :'[label]. Then you want some way to process the NO answer to this question. All not possible at the moment without using a geek solution. I proposed several enhancements for flow management but no reponse yet from Athom.
Ok, this should work
Flow1 : when [Motion sensor triggered] then [start Countdown1 1 sec] + [start Countdown2 10 sec]
Flow2 : when [Countdown1] and [Confirmation : "Are you Ruben?"] then ["Greetings Ruben"] + [stop Countdown2]
Flow3 : when [Countdown2] then ["warning"] + [Play a sound "Alarm.wav"]
Now I have to teach the dog and cats to say yes
I currently have the issue with no response about 95% of the time I talk to Homey currently (started with 0.8.29 and making speech useless, before my voice recognition was pretty good). I'm still not sure what is happening, either the voice sample is not send to Athom's processing server at all or the speech to text services do not give a reply. It would be nice to know in both cases that Homey was unable to process the speech to text (once again, something that is different than misunderstood the text).
@Phuturist
It's pretty easy to know if it's the right/expected response; If the response that comes back does not trigger anything at all in homey, homey doesn't know what to do with it -> "I'm sorry I don't understand you"
Flow1 : when [Homey starts listening] then [set 'stillListening' global variable to 1] + [start Countdown1 5 sec]
Flow2 : when [Countdown1] and ['stillListening' variable = 1] then ["I'm sorry, I don't understand what you mean""] + [set 'stillListening' variable to 0]
(all other flows:) [set 'stillListening' variable to 0]
That '5 sec' may have to be tweaked a bit, also depending on the speed of the speech recognition servers...
You will have to test this for internal commands. I wonder.
Flow: when [internal command is recognized] then [set 'stillListening' variable to 0] and [trigger the original internal command] (preferably without having to set this up for every single internal command)
... which I guess is not possible yet.