Pages for logged out editors узнать больше
If you need several such motion detectors, then in order not to copy the code, you can wrap the creation of the rule and variables in a function: