How to activate a virtual motion sensor with a virtual switch?

This should be a good start:

4 Likes