Motion Lighting app help with disable motion

I want to set the motion lighting in my bathroom to disable turning off lights when the shower fan switch is turned on. The motion lights keep turning off when I am in the shower because the sensor cant see me. Here is a pic of my set up but this doesn't seem to work. Please help.

Have you tried putting in under the enable the bathroom fan being off?

Not sure I understand. I want it to disable the lights turning off when the fan is on not off.

Enable logging and post the logs. Sometimes I just have to delete and recreate a motion lighting app to get things working right. It can be a bit buggy and sometimes a setting will get stuck enabled even when you disable it.

Going to do that now........ I may have to switch to rule machine instead because I would also like it to do full bright during day but only a dim setting at night. I don't see anyway to make motion lights do this.

When you say "it doesn't work" what exactly is happening? You describe what you want to happen but not what is actually happening. Maybe I'm not understanding the problem statement. Are you saying that the lights still turn off when there is no motion even when the fan is on?

Also, do you ever turn these lights on by the switch? if so, you have to define that in the rule as well.

What type of motion sensor is this? a 1 minute timeout is not very long. My bathroom motion rule has a timeout of 3 minutes.

There is if you use modes. Then you can do dimmers (or scenes, etc.) per mode. I like this because I'm not strictly bound by a time I've configured in the automation--e.g., if it gets dark earlier than normal because it's really cloudy, I can manually switch to Evening mode and my lighting automations will behave accordingly. (I swear I'm going to try to automate that someday too, but indoor lux is hard.) Just something to consider!

I'm not making this stuff up: Motion and Mode Lighting Apps - Hubitat Documentation

That's delay per mode. Not level per mode.

Please read farther down or try it yourself. It's there.

AH HA!
You have to enable in the main screen before going into the light settings. My apologies.
image

Which seems like an odd place to put it since it doesn't affect the motion sensors...they are static. Also, once enabled it can't be disabled. That's a little odd.

exactly the lights still turn off even though the fan is on. I do have a switch for the lights but never use it anymore since I have the motion turn the lights on. This is a smart things motion sensor and works well. I just can't seem to set up a way to make the motion rule pause turning off the lights. I want the fan to pause the motion off and then reactivate when the fan is turned off.

I havent really got in to setting modes. with 4 kids they would be all over the place LOL

the log doesn't show much.

That's not the right logs. Click on "Logs" in the left hand menu... the very bottom option in your screenshot.

How so? Since you're not using them for anything else, you could set them up and use Mode Manager (a built-in app) to change them based on time. Then you won't have time "hard-coded" into your automations and have the ability to change their behavior at will by changing mode. You could mimic the existing/desired behavior by default exactly.

If you mean that it would be different for every room, that's something else. :slight_smile: In some such cases, you may be able to get away with using virtual switches for a similar purpose (e.g., don't turn on if this switch is on).

One thing to be careful of when using modes for time-based stuff, if you are away, the modes don't change at that time of day any more. I want my outdoor lights to still come on in the evening even if we are away, so mode-based lighting doesnt work there.

Not if you just don't use Away mode. :slight_smile: I don't because I don't find it logical to mix time- and presence-based conditions into what is essentially one global variable. That being said, I probably could: I don't have any lights that turn on or change based on mode change events. My modes are mostly for lighting and are based on time of day and sunrise/sunset (as a proxy for lux, which I'll try to get to work better some day). HSM states are separate from mode (I don't think this conflation helps new users either) and I handle thermostat settings and other things based on actual presence (we've got that now :)) or motion inactivity as a proxy for the same.

But you have lots of options. :slight_smile:

Here is the log..... The fan being turned on doesn't even show in the log

Does the fan change state on the device page?