Is this possible with a Wye Bulb and contact sensor


I have a contact sensor on the bathroom door. Next I want to replace the bathroom bulb with a Wyze Bulb. Is the following automation possible:

(i) Bulb on when someone opens the door after sunset
(ii) Bulb remains on till the bathroom is occupied (door may be shut or remain open)
(iii) Bulb turns off after the person exits and closes the bathroom door
(iv) Bulb should not come on during day time


I think this scenario would be problematic at best. But might be possible with a door contact sensor and a motion sensor, and a schedule. But I know that similar situations say at hospital rest rooms or restaurants often require a patron that has been suddenly left in the dark to wave their hands around to turn the lights back on. :slightly_smiling_face:


My office has bathrooms with motion sensor lights and stalls. If you’re the only one in the bathroom better bring a flashlight because 30 seconds after you close that stall door the lights are going out :wink:

That being said, @ashish the best option in this case is to use a motion sensor rather than a contact sensor on the door. There is no way for a contact sensor to tell if someone just entered or left, only that the door opened. I would also suggest setting a longer timeout for “sensor has been clear for”, like 5 or 10 minutes just to be sure the light doesn’t go out while the room is occupied.

As for turning on the light only during the day, Wyze has said they’re working on scheduled shortcuts but nothing has been released yet. If you can wait that would be the easiest option, otherwise you’ll have to involve IFTTT and a third-party automation engine like,, etc.


What he said ^^^^^ :smile::smile::smile::smile:

1 Like

Thanks for the explanation. So the bulbs and the sensor combination offers very limited possibilities :frowning:

I would not say that, Wyze works hard to add value to their products all the time. But the specific situation you describe is not yet directly supported. You would most likely need an “occupancy detector” like that used by Ecobee’s sensor.

You are right, I didn’t know about occupancy detectors. I have to find some that can work with Wyze and are not very expensive.
I was thinking the Wyze motion detectors can fulfill that objective but seems that the sensors are very different.

Most true occupancy detectors combine a heat (PIR) sensor with an active motion sensor. That way they consider a space occupied if there is motion and/or a heat source detected. Of course a person at rest, would no longer show active motion but would of course still show a heat source. It’s why occupancy sensors often fail in a bathroom, the stall doors and walls block both motion and heat.

I appreciate the explanation. I just saw there’s one installed in my office area as well. From a quick internet search, they are still expensive and may need a workaround to have them work with the Wyze system. So I guess I have to wait till another solution emerges.