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?
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 ), 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.
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.
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.
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.
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 . 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).