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.
Ask for nothing? (no confirmation on a question, to start action)
keverjeroen
Member
Hi,
I am trying to let Homey ask me a question and let him take an action, if there is NO answer or stops the flow if there is an answer. Better, if it is any answer, not just yes or nog, but any words.
Example 1:
- Homey: Is anyone home?
- <silence during the orange ring>
- Homey: Turns lights off
Example 2:
- Homey: Is anyone home?
- Human: Yes, I am. (or just any word)
- Homey: Turns the lights on
Anyone an idea if this can work? And what flows I need?
I am trying to let Homey ask me a question and let him take an action, if there is NO answer or stops the flow if there is an answer. Better, if it is any answer, not just yes or nog, but any words.
Example 1:
- Homey: Is anyone home?
- <silence during the orange ring>
- Homey: Turns lights off
Example 2:
- Homey: Is anyone home?
- Human: Yes, I am. (or just any word)
- Homey: Turns the lights on
Anyone an idea if this can work? And what flows I need?
Comments
When saying "Ja" nothing happens and lights stay on.
When saying nothing at all, all is to bed, lights go off.
What I need is this:
If precens score <1, Then Ask question (Homey: Are you still at home?)
If any answer, Then start flow A (Human: Yes, ahum, ok, yep, ja, miauw, joehoe, or just any words (or sound))
Else start flow B (complete silence, no words are spoken, no sound is heared)
When the 'else' function is implemented by Athom, the last part should work. But the first part not..
- If presence score < 1, then set a variable "NoOneHome = 1", start a timer and ask a question
- If any answer, then set the variable NoOneHome = 0, and start flow A
- If the timer reacher 0, and NoOneHome is still 1, then start flow B
No need to wait for the else-part implementation
1. If presence score < 1 and the variable NoOneHome = 0 , then set "NoOneHome = 1", start a timer and say "Anybody home?"
2. If user says anything, and "NoOneHome = 1", then set the variable NoOneHome = 0, and start flow A
3. If the timer reacher 0, and NoOneHome is still 1, then start flow B (in this situation, don't forget to set NoOneHome back to 0 at some stage... for example as soon as the presence score goes back up.!)
Note that in (1) I don't let Homey Ask a question anymore, he just says something.
So I guess you'll just have to train the people in your household to respond with a clear "yes" when Homey asks them. Otherwise Homey will turn off the lights... so they won't eaisly make that mistake a second time