Hello and thank you to all who support this community. I posted earlier but accidentally hit solved and don’t know how to “unsolve”.
I have two smart light sockets in our laundry room controlled by Alexa. I bought a zigbee motion sensor and added it to my HE. I imported the device into Alexa and made two routines. The first routine turns the sockets on when activity is detected. The second turns the sockets off after no activity for 1 minute. The first works fine if I walk in the lights come on. The second doesn’t work at all. It never turns the lights off no matter how long no activity is reported. The sensor events in HE shows when the sensor detects no activity but it goes t appear that the Alexa routine is being triggered. I feel like I’m missing something simple. Any thoughts?
This is the first time I’ve used a motion sensor I thought maybe 1 minute wasn’t long enough for some reason so I changed it to 5 minutes. No difference. It’s like the second routine never runs.
I guess my question is why don't you do this through hubitat using the simple automation rule? This way you don't need to rely on a cloud based device to go out to the internet, go to their servers, only to come back from the internet into HE to turn off/on the device. A much simpler way would be to use Simple Automation rule.. As you can see with this rule, it turns on both the over head lights and the sconce lights when motion is detected, then goes off after 5 mins of inactivity. (This would ensure that if I walked back in then the rule would reset).
This makes complete sense. Unfortunately the dockets do not appear to be able to be controlled by HE. They are WiFi sockets that are controlled by Alexa. Thank you for the support though!
With those I'd suggest setting up a virtual outlet/switch and then add routines to Alexa that tell it to turn on/off the WiFi device based on the status of the virtual.
That would have been my next suggestion (Why I went back and edited my response ) That said, If you can, replace those sockets with some lifx bulbs. That way they're 100% local instead of relying on the cloud...