Using Motion to turn lights on - Toggle On Disables Motion

What is a good way of integrating toggle on off control with motion control on light switches so its on motion control whenever the toggle on isnt activated?

In the routine that is triggered by motion:

You should be able to add an additional IF statement with the + symbol, like:

IF

Motion sensor > motion detected
+
Switch > ON

THEN

>(whatever you want to happen when motion is enabled)

You should see two options underneath the IF statement when you have 2 or more.

select the “when all conditions are met” option, that will ensure motion alone doesn’t trigger the motion action. Only when the switch is also on,

Add switch as precondition

But how do I get it setup so when I turn the switch on it disables the motion routine until I turn the switch back off?

If switch off (precondition)
If motion detected
then
whatever your motion actions are

You could also use “toggled up” if your switch supports that.

That won’t work because you’ve specified two trigger conditions, motion detected and switch on. He wants a bounding condition (precondition) where the motion routine doesn’t do anything if the light is on, so a precondition of “switch is off” will do the job.