Motion sensor turns light on/off under certain conditions?

There is a way to do that with custom code, but you would need to start from the beginning and rebuild your existing rules so that they are wrapped in the logic to not turn the light off under certain circumstances.

So it can definitely be done, it’s just a lot more complicated than just using the mode and changing the mode manually when you want to ignore the existing rule.

Core is a very sophisticated community – created rules engine. So you could look into that. But I think it would be overkill for this situation. :sunglasses: