Node-red. How would you program a bathroom contact light sensor

You’d need open-lights on, closed do nothing, then next close off or if the decide to leave the door open still close?

I’d be using Lutron so if it’s easier and just as fast, I’ll use Hubitat as I have the pro bridge. Would a motion sensor be better for this? If someone is pooping really still will the lights shut off? How about in the shower?

@aaiyar you always know this stuff, lol

If you’re trying to automate bathroom lights, then yes I’d suggest taking into account activities that either don’t involve a lot of movement (sitting on a toilet being one of them, usually :upside_down_face:), or occur in an area of the bathroom that may not have great coverage from the motion sensor (a shower with a curtain being a good example).

Edit: you could use either node-red or built-in Hubitat apps to automate bathroom lights, I’d say it’s more about whether you prefer to use one or the other for this as well as your other automations.

I wish they made like a laser “trip wire” that went straight across the door to monitor in and out

You can affix a "blinder" in the shape of a cylinder on a motion sensor and get a very focused view.. almost like a tripwire. :slightly_smiling_face:

3 Likes

To be clear, I just want walk into bathroom, light on, walk out lights off

Cool idea

1 Like

Have you ever done it? What do u use? I could 3-d print like a cone, with one end being close to pinpoint?

You'll minimally need two motion sensors for that:

  1. A tripwire sensor above the door pointed down (so it detects people entering and leaving).
  2. One or more ceiling mounted sensors that detect human presence.

In my bathroom, I also have a contact sensor on the toilet/washlet seat. When the seat is down, it is used to indicate presence.

1 Like

Do you think the “blinder” idea would work

It does! I make use of it for doorways.

1 Like

Hot damn! Thx. Any type of motion sensor (brand) you’d personally recommend?

Well, I use motion sensors that are not Hubitat-compatible. So I cannot recommend them. But there are several zigbee sensors that work well with Hubitat. Like the Iris V2 and V3 sensors, the SmartThings/Aeotec sensors, and the NYCE sensors.

1 Like

How about sonoff https://www.amazon.com/Wireless-Detector-Required-Batteries-Included/dp/B08BFFJ69V/ref=sr_1_3?dchild=1&keywords=Zigbee%2Bmotion%2Bsensor&qid=1622304869&sr=8-3&th=1

@SmartHomePrimer just noted they work well when they are close to Hubitat, but not so well otherwise.

I use 2 Iris V3 motion sensors only because the way my bathroom dimensions cannot be positioned for just one sensor to not false trigger by someone walking by the bathroom door instead of detecting when someone actually walks "into" the bathroom, at the same time the position of the one motion sensor that triggers the entrance to the bathroom can't detect presence while you are in the bathroom so the second sensor is needed. Both humidity reading from these are used to activate the vent fan when the humidity is above 60%. The vent fan shuts off once the door is open AND the humidity is below 60%.

The lights are triggered off when both sensors have been inactive for 15 seconds OR when the contact sensor on the door opens. The contact sensor closed also operates the vent fan.

1 Like

NYCE ceiling motion sensor is great for bathrooms. Very discrete, doesn’t flash when it detects movement (which could freak someone out in a bathroom if they think it’s a camera or something). And it has temp plus humidity sensors too. Well worth the price.

But they’re not easy to find these days.

1 Like

They are only $12 too

2 Likes

Just got 10 more of them yesterday, seller will take $10 each if you buy 10 of them.

1 Like

Is the 2 sensors per room hard? Also do they light up when motion is detected?

I believe the Iris v3 sensors do. The V2 sensors definitely do. Usually possible to place them discretely enough that the risk of a guest accusing you of being a peeping Tom is probably extremely low :scream:. It’s also probably possible to cover or disable the LED that flashes inside the device (if you open it up, I did once with a V2 sensor I used in my bedroom but decided it wasn’t worth the hassle to actually disable the LED).

1 Like