Bathroom Lights

This might do the trick for you, except i haven’t added multiple light control yet and it sounds like you have multiple lights (hue’s). “Bathroom Light/Fan Control” (Thread: Bathroom Light Control ; GitHub project source, testing branch: https://github.com/rayzurbock/SmartThings-BathroomLightControl/tree/testing). I designed the app with a single switch for light, another switch for fan, a motion sensor, and a humidity sensor. I’m probably still far from perfecting it, but it’s a good start I think.

  • Turn light on when there is motion, schedule to turn off after a motion is inactive for x minutes
  • Change from motion based light timer to a longer humidity based light timer and optionally turn on an exhaust fan if humidity is rising above the average as based on the last several polls (since the motion sensor cannot detect motion behind the shower curtain).
  • Change from humidity based light timer to motion timer when humidity is falling.