I want to create an automation that will ask a question and wait for a response. But I need to process that response within the automation.
I currently have two use cases in mind:
When my garage door opens as I arrive, I want the VPE that I have in my garage to ask “is Don there” every 60 seconds until I say yes. Then when I do so, read out the items on a specific task list (the “returning home list”) that contains a list of things I need to do when I arrive home.
In the past, when my alarm goes off I have sometimes turned it off while I was still sleeping. So when it is time for the alarm, I want my bedroom VPE to sound an alarm. When I tell it to stop or press the button, I want it to select 2 random single-digit numbers and tell me to add them together. If I give it the correct answer, it’ll cancel the alarm otherwise, it’ll start playing the alarm again. If 5 minutes pass and the sensor in the hallway hasn’t detected my presence, the alarm starts again and can’t be stopped unless a button on the dashboard in the hall (or my phone) is pressed.
Here is an example of my integration, which by presence sensor asks me if I need light. Your task will require more work with variables, but I think you’ll figure it out.