This seems like an easy problem but I cannot seem to solve it, I might be missing something simple here.
I’m trying to turn on my kitchen lights when motion is detected (with as little delay as possible) and then turn them off about 5-minutes after motion has stopped being detected. I have the following setup:
- Wyze Motion Sensor
- Kasa (TP-Link) Smart Light Switch (HS200)
- SmartThings Hub
- Google Home (not sure if this is at all useful here)
Wyze is not integrated with Kasa directly, and Wyze is also not integrated with SmartThings. So using IFTTT I was able to do something like:
- IF Wyze motion detected THEN turn on the Kasa Smart Light Switch
- IF Wyze motion clears THEN turn off the Kasa Light Switch
The problem is that if Wyze doesn’t detect motion for 30 seconds in the kitchen e.g. slowly stirring a pot, it will clear and turn the Kasa light switch off, so I wanted a longer period before it clears. The Wyze app actually offers a cool rules engine which includes the ability to set a configurable trigger for the length of for which the motion sensor is clear before an action is initiated…this is exactly what I’d want to control but that Wyze rules engine’s actions cannot reach externally to IFTTT or any other service, it can only trigger actions to its own Wyze bulbs, plugs, etc. and Wyze does not make bulbs yet that would fit the recessed lighting I have in my kitchen. Ideally Wyze would just add the ability for the rules action to hit an external service like IFTTT.
I feel like there might be some option to do something with virtual switches in SmartThings, but that seems slower and I still cannot figure out the logic there to get it right since the motion detected and 30-second clear notification are basically nearly immediate one-time events.
Alternatively, maybe the solution is to buy a SmartThings motion sensor or something directly compatible with Kasa, but I’m unfamiliar with those devices and whether it has the ability to have a configurable clear (no motion detected) period.
Anyways, looking forward to hearing any ideas people might have.