I came up with a very unique way to handle this.
If any of these doors open
-Only between the hours of 7:15 AM and 3:05 PM
-Only Monday through Friday
-Wait 30 seconds
-Open this simulated contact sensor
-Wait 5 minutes
-Close this simulated contact sensor
The simulated contact sensor triggers Alexa to say, “An unauthorized entry has been detected, you have 30 seconds to identify yourself, otherwise the authorities will be alerted”
She doesn’t actually alert the authorities, it’s just a scare tactic.
So, the issue was, when someone is off of work/school, she will say this almost every time an outside door is opened.
So, the solution:
Created a simulated switch called ‘Someone is Home’.
Added the following to the above ‘If’ statement before the first Wait
-Switch 'Someone is Home' is OFF
Created an Alexa routine: “Alexa, it’s Neal”
The routine triggers Alexa to say, “Voiceprint authorization accepted. Welcome home Neal. Standing down red alert” (I know, I’m a geek).
The routine also changes the switch ‘Someone is Home’ to ON
Later in the day, another routine (that turns a light on), also turns the switch ‘Someone is Home’ back to OFF
So, now, when someone is off of work/school, they just say “Alexa, it’s …” and the unauthorized announcements are turned off for the day.
I’ve added a routine, “Alexa, it’s …” for each member of the house.
I’ve also added a routine, “Alexa, it’s me” and she will respond saying “Voiceprint authorization not recognized. Me is not on file.”