Which motion sensors are you using? that would help to start with. If they are the security module ones, can't think of the number right now, then the macro is running from the PC and not the CM15A. There are issues using conditionals in these types of macros. Let us know and then we can get back to you.