I'm new to this, just got my first motion
sensor yesterday, but when it detects
motion it sends an "on" command and then
an "off" command a certain time later, from
1 minute to (I think) 256 minutes later. I
guess it depends on exactly what you want
to do as to whether or not it will work.
Also, I'm new to macros, but you could
probably set up a macro to turn something
off when the motion sensor sends the "on"
command to the macro.