I used to experiment with Smartthings code a lot 2 years back when web-core integration was working fine. I didn’t follow transition to Edge much, now after 2 years I want to start fixing all the broken routines.
One of the routines I had was announce a contact sensor left open [repeated announcements if the state is maintained] through Amazon Echo Devices/speakers. I used Echo speaks and Webcore then.
Now after transition to Edge, I see scattered posts which don’t exactly accomplish this routine.
Across Sharp tools, Virtual devices etc. what will be the most simple way to execute this routine?
As far as making voice announcements on Echo devices, there is no native integration with ST. The way I do it is by having a virtual contact sensor that opens or closes based on some set of conditions (like my gate opening) and then use that virtual contact sensor in an Alexa routine with an “Alexa Says” action.
My recommendation would be to make the contact sensor being open as a precondition vs a trigger when simply wanting to do something based on the sensor being open for some period of time. When it is used as a trigger the condition is “when the contact goes from closed to open” vs as a precondition it is evaluating the state of the contact sensor, i.e. “if contact sensor is open”. So, the Routine would read as “When the timer gets to X mins and the contact state is open” then “do something”.