I use an X10 outdoor RF motion sensor (A1 on trigger) to start a series of X10 commands. The issue is that the motion sensor sends multiple Ai on commands, and each one starts the macro, even while it is running. I have tried adding a state variable and only run the macro if the state variable is =0 with the first line in the macro setting the variable to >=1 then reset the variable to 0 at the end of the macro. The "then" is entered and the variable is set to 1, but the remaining commands of the "then" do not execute and the variable stays at "1". I am a newbee and I am sure it is something simple, but so far I have not been sucessful. I have a hardware solution that will create a single X10 signal (RF receiver plus 555 timer), but I am sure the 994 should be able to do this in software.
Any suggestions would be appreciated.