Hi,
I have an overhead light in my bedroom controlled by a WS465 wall switch on address A14. I also have a slim-line wall switch set to A13-A16 controlling the light, fan and other bedroom devices.
Then I installed a motion detecter that will, between the hours of 4:00PM and 9:30PM, turn the bedroom light on when you enter the room. (This uses two macros on C10, On and Off)
The problem is using the slim-line switch to turn off the light when ypou leave the room. The motion detecter will frequently detect you doing this and will turn the light back on. So I wrote this macro and attached it to A14 Off:
Trigger Conditions A14 Off and
Flag Status Off - 14
End Trigger Conditions
Set Flags [14]
Turn Bedroom Light OFF
WAIT for 10 Seconds
Turn Bedroom Light OFF
WAIT for 5 Seconds
Clear Flags [14]
I use similar macros to tuen off light elsewhere thaqt work just fine. The problem is that the trigger condition for this macro is the same condition it is trying to effect. That why the flag. So it will only run once.
But it doesn't. It runs even when the light is turned on, putting it into a repeating on-off loop.
What am I missing?
Thanks.