WYZE SENSE MOTION DETECTOR AND ALEXA SPEAKING THE ALERT
Thank you for that device handler. I just purchased a Wyze sense motion detector. (5/12/2019). I wanted to integrate it with my SmartThings Hub and have Alexa report when there is motion detected. Here is what I did. It seems like a lot of work but it really wasn’t. It did take me many hours to figure out WHAT to do.
- In the SmartThings Hub I created a virtual switch named “virtual front door motion detector”.
- using IFTTT I turn that virtual front door motion detector switch on when motion is detected.
- using IFTTT I turn that virtual front door motion detector switch off when motion is cleared.
- I copied this device handler source code, “Simulated Alexa Button” and created a new device handler on my SmartThings Hub using the IDE. Google how to do that if you need to. It was easy.
- In SmartThings I created a new device, “simulated front door motion detector” based on the new device handler created above.
- In SmartThings I created an automation to turn on the simulated Alexa button if the virtual front motion detector turns on and another to turn it off in the same manner. The motion detector has a problem with my east facing front door when the sun is hitting my front door. It detects motion too often. So I have this automation only run from noon until 3 AM.
- In the Alexa at app I created a routine that would notice if the simulated front door motion detector turned on and if so it would play a custom message “front door, motion”.
I did something similar but simpler for the doorbell. I created another simulated Doorbell switch from the Device handler created above. In the SmartThings app I created a lighting app that enables the simulated doorbell switch when the real doorbell switch is enabled. In Alexa I have it play the message “doorbell, ring ring ring” when the simulated doorbell switch is enabled. Cool!
Worked great with my limited testing tonight. Time will tell.
My house has a lot of automation. I have a SmartThings hub. I have a Konnected security system. I have 8 to 10 smart outlets that turn on lights and fans, and night lights. I now have a motion detector directed at my front porch. I have light switches that are connected to the SmartThings hub. My security system is amazing. It recognizes when four different cell phones are near my house and disables the security system. It recognizes when all four are gone from the house and enables the security system. The security system texts me immediately if any sensor goes off. I have 5 Echo (Alexa) Devices. I can turn on and off the lights in my family room via Alexa. I can turn on and off lights in multiple bedrooms via Alexa. Alexa reports when any door opens, closes. There are a few things that are run by schedule. The front porch lights come on 1/2 hour before sunset and turn off 1/2 hour after sunrise. My bedroom lights and turn on via a schedule. The family room lights turn on at midnight. The living room lights turn on at sunset and turn off at 1 AM. I have a doorbell sensor and Alexa reports when someone pushes the doorbell and I get a text message.
I also have standalone occupancy and vacancy switches and dimmers throughout my house. For example, the lights in the kitchen are on a vacancy switch. If no one is in the kitchen, after five minutes the lights will turn out. The light over the kitchen sink is an occupancy switch and will turn on when someone walks toward the kitchen or in the kitchen. The bathrooms have occupancy switches and dimmers so that when someone enters the bathroom the light turns on instantly, and turns off when they leave. I also have a bunch of Wyze cameras.