Using Motion Sensor as a light switch toggle?

You may be able to do this using CoRE - [OBSOLETE] [BETA MILESTONE 1] CoRE (Community's own Rules Engine)

I’ve only tested with a st motion sensor, a Philips hue bulb and a simple toggle rule in CoRE but it seems useable to me, you would have to wait for the motion sensors state to revert back to inactive but that shouldn’t be a problem…unless you’d use the switch twice very quickly in normal use.

It depends which motion sensor you’re using and how long it takes to switch states, the smart things one reverts to inactive pretty quick (less than 15 seconds and I wouldn’t need to use it twice in that timeframe).