Looking for idea to check for bathroom occupancy

@Oliver_Baumgart I use the passage trough sensor now for a few days and I am not happy. I have 3 of them at around 80cm height position and mostly default settings. Just changed the Time interval in which both sensors must be triggered to 3 seconds so there you can walk slower trough the sensor and set Time interval until the next motion is detected to 500ms. But sometimes the sensors work great but mostly they do not detect motion or detect them double. Not sure if I can fix that with changing setting. How his your experience with this sensors? What are your settings? How did you position them?

If you are using a motion sensor only to turn on the bathroom light, can’t you use a simple occupancy sensor switch like the Luron Maestro? Their built-in motion sensors are really good at detection and I use them in all of my friend’s bathrooms without problems (including showers).

Here is the Amazon link.
https://www.amazon.com/Lutron-Maestro-Required-Single-Pole-MS-OPS2-WH/dp/B005WM3ALC/ref=sr_1_5?crid=1QZR1DH7AA2ZM&keywords=occupancy+switch&qid=1551609442&s=gateway&sprefix=occupancy+switch%2Caps%2C188&sr=8-5

Maybe for bathroom but then I would need two. And in other rooms there is more a problem. Thats why I tried the solution from above with the passage trough sensor, but they do not work very stable.

Using the Lutron Maestro switches is still cheaper than buying two motion sensors and two smart switches, or smart bulbs…what are you using now to control the lights remotely? Smart bulbs or smart switch?

As written on top I use a motion sensor and a switch for now. But I tried going with the Homematic solution. There you only have 1 sensor not 2 and only 1 switch but you should know how many persons are in a room. The is the benefit, just using motion sensor to switch the light on in easy. But shutting the light automatic off when the last person left the room its nice. But for now the passage sensor to not work very reliable, maybe need to change the position or the config.

Yes…the Lutron Maestro switch has a motion sensor built inside the light switch. And it’s only $20 USD. The motion detection works very well and can detect movement much better than Z-Wave or Zigbee motion sensors. You can also set a time limit, so the Lutron switch will turn off after 1, 5, or 15 minutes of inactivity. It works perfectly in the bathrooms I installed it in. And you’re looking for a solution for your bathroom…maybe you shouldn’t overcomplicate things and use a simpler solution.

The only problem with Lutron Maestro is the motion sensor is on the switch, so if the location of the switch is not good, then maybe it won’t detect motion. But I’ve installed a switch that was far away from the bathroom entrance, and the Lutron Maestro is still able to detect motion well. It has a 180 degree view.

And how do you handle multiple persons entering a room? Or how do you know if all people left the room and not just sitting still?

Lutron Maestro can detect slight movements if the person is sitting on the toilet. Unless you are a statue, you are going to be making some movements on the toilet.Trust me, the motion detection works. It even works when I’m showering behind a curtain.

I don’t really understand your need to track multiple people entering a room. All you need to detect is if there is motion detected in the bathroom, then turn on the lights. It doesn’t matter if it’s one person or two people, the switch detects motion from any person. If one person leaves the bathroom and the other stays in the bathroom, there is still motion detected from that one person in the bathroom. If both people leave the bathroom, then there is no motion detected and the light will turn off after 1, 5, or 15 minutes of inactivity (depending on what your settings are).

Hi skyscryer,

to count the person(s) in the bathroom i have one passage through sensor and one PIR sensor (fibaro). i have also figure out what the best position and configuration is. Now i have a config for my environment with a near 100% correct function. The passage through sensor is in 160cm high. The Time interval in which both sensors must be triggered is 3 seconds. Set Time interval until the next motion is detected to 1500ms. Sensorempfindlichkeit 90%.

Here my Counter automation include 2 automation to correct the counter in the case of a error. The entity: binary_sensor.fibaro_system_fgms001zw5_motion_sensor_sensor is the PIR sensor. I hope this helps!

###########Counter Badezimmer#################
  • alias: “Badezimmer Personen Zähler (hoch)”
    trigger:

    • platform: state
      entity_id: sensor.000c5709ae6808_3_passage_counter_value
      condition:
      condition: and
      conditions:
      • condition: numeric_state
        entity_id: counter.personen_im_badezimmer
        below: 2
        action:
    • service: counter.increment
      entity_id: counter.personen_im_badezimmer
  • alias: “Badezimmer Personen Zähler (runter)”
    trigger:

    • platform: state
      entity_id: sensor.000c5709ae6808_2_passage_counter_value
      condition:
      condition: and
      conditions:
      • condition: numeric_state
        entity_id: counter.personen_im_badezimmer
        above: 0
        action:
    • service: counter.decrement
      entity_id: counter.personen_im_badezimmer
  • alias: “Setzen eine Personen bei Bewegungung im Badezimmer”
    trigger:
    platform: state
    entity_id: binary_sensor.fibaro_system_fgms001zw5_motion_sensor_sensor
    to: ‘on’
    condition:
    condition: and
    conditions:
    - condition: state
    entity_id: counter.personen_im_badezimmer
    state: ‘0’
    action:

    • service: counter.increment
      entity_id: counter.personen_im_badezimmer
  • alias: “Reset Counter Personen keine Bewegungung im Badezimmer”
    trigger:

    • platform: state
      entity_id: binary_sensor.fibaro_system_fgms001zw5_motion_sensor_sensor
      to: ‘off’
      for:
      minutes: 60
      condition:
      condition: and
      conditions:
      • condition: numeric_state
        entity_id: counter.personen_im_badezimmer
        above: ‘0’
        action:
    • service: counter.reset
      entity_id: counter.personen_im_badezimmer
      ###################################################################
1 Like

This might sound silly but if you just want to know the bathroom is occupied why not add the state of the light (or the smart switch that turned it on) as the trigger that the room is occupied?
You can then add conditions that turn the light off after a period of no movement OR the light switch was turned off?

I want to know the bathroom is occupied to do several things also to switch the light on or off.

I’m still unsure of how occupation should be executed.
Still trying to come up with a more reliable system here.

i ditched infrared based motion sensors in the bathroom about two years ago. first they produced a lot of false negatives due to heat from the radiator, second, they don’t detect people sitting on the loo or takiing a shower and third they have a limited field of vision.

i replaced them with a „radar“ sensor mounted on the ceiling (acually above the ceiling, out of sight) and they „see“ even the slightest movement and also movements behind the shower curtain. actually they see through walls and i had to shield parts of the field of vision.

but since i switched to these sensors i reduced false positives and almost never miss an occupancy. exception: from time to time i manage to sit on the loo longer than 5 minutes without moving. but thats only possible if read something on my mobile.

If you read the initial post you see my problem is not checkin occupancy but checkin occupancy direct if persons left the room. So I do not have the light on extra minutes after leaving the room. Or doing the automations and scripts direct when leaving the room.

I use a magnet sensor and simply toggle the light when the door/magnet is opened.