A1) Give a description of the problem
The script stops working if the door is opened and then closed before the first wait command is finished. If the door closes before the first wait command it restarts and doesn’t open the virtual sensor. If the door is closed after the wait command is finished everything works fine.
2) What is the expected behavior?
I want Alexa to Announce by name when someone enters the house. I’ve created a virtual door sensor for this and created a piston to open the virtual sensor and then close it later. Alexa has a routine to speak when she sees the virtual sensor open.
I have the delay before the Open so he has time to come into the house and be within earshot of the Echo.
3) What is happening/not happening?
If the door closes within the 16 second wait the sensor doesn’t open. From looking at the logs it looks like when the door is closed the piston runs again and then stops because the door sensor change was to closed instead of open.
**4) Post a Green Snapshot of the piston!