JGoode Posted November 28, 2020 Posted November 28, 2020 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.
MrBill Posted November 28, 2020 Posted November 28, 2020 For best help with programs, right click on the name of the program in your program tree and select COPY TO CLIPBOARD then paste it in a post here. That way there is no confusion. Offhand it sounds like you need to split this program into two programs. The first watches for the conditions, and runs the THEN body of a second program, that programs first statement is DISABLE first program, the last statement is ENABLE first program.
JGoode Posted November 28, 2020 Author Posted November 28, 2020 MrBill, THANKS for the quick reply and suggestion. It worked perfectly! I am sure I will add more to my system, but for now it works great. Thanks again! 1
Recommended Posts