Simon,
THought you might like to know, I did find one issue you might find interesting.
I tested the system and
found a mistakeWhen the EE is set to DARK ONLY, it does go to "sleep" for the delay it is set and
DOES NOT detect any further motion!! So the US and the UK units operate the same, it appears.
So for example, if I have the EE set to dark only, and a 4 minute delay, the following happens:
On motion -> ON signal sent on the code the unit is set to
Delay time counter starts -> Motion sensor is off during this time
Delay time is reached -> OFF signal is sent on the code unit is set to
NOW ... if I set the EE to 24 hr operation, then the pseudo-code I mentioned in the previous post is accurate. The EE will restart the timer every time it detects motion, and it keeps looking for motion ALL THE TIME! So the following occurs under this setting (NOTE this is a revision of my previous post taking OUT the "if it is dark" condition):
1: If I sense motion Then ...
2: Send ON signal via RF to whatever code I am set to.
3: Now that I sent a code, I need to wait for no motion so I can send an OFF code.
4: While I sense no motion for whatever time I am set to wait in minutes, I will ...
5: Keep waiting, unless I I sense motion during this time and if I do then I will ....
6: Restart my wait time as if I just sent my ON code, which means I will now start over at line 4 now otherwise, I will continue to line 7.
7: I'm done counting my wait period and I have not detected any motion so ...
8: Send OFF signal on whatever code I am set to.
9: Start waiting for motion again and if I sense motion, go back to line 1 and start processing.
So the only way to get your intitial system working is to use a FLAG, IMO.
I resolved this months ago with a macro which is why it is behaving like I said originally. So in the logic I posted, the "If it is dark, and I am set to dark" is being handled by the macro as "After Dusk and before Dawn" with the EE set to 24 hr motion. NOW, this, of course, kills batteries much quicker
The macro, in order to do this, HOWEVER, requires a FLAG!!
I was not keeping notes at that time, but I do remember that the macro kept firing and was making me crazy. Finally, I solved it with a flag.
What I learned was, with 24 hr motion set EE's you must use flags or it will keep sending the signal over and over. A FLAG setting lets the macro ignore the multiple sends and only do the work once. Setting a flag to on when it fires the first time, and then testing for the flag status on each corresponding fire of the signal firing the macro, means it ignores it. Once the delay time is reached, then you clear the flag and the process begins again. Don't forget, you need an OFF macro as well, this is where you clear the flag. Then the ON event will activate when it sends again b/c it passes the "is the flag clear" test.
Make sense? If not, I'll do something detailed if you want to use a macro. I'm sure there are other posts with brighter people in here on this, but now that it's back in my memory, I can write something if you need it. Sorry to say, there is no way, as far as my tests show, to do what you want without a macro/AHP. If you give me the codes of the units in play, I can write a little app you can use to test and prove what I'm saying. Give me time though
Let me know if this is all clear, I'll write a little "White Paper" kind of thing at some point, but many things demand attention these days and committing to definite time frames is hard!!
Anyway, have to run to a New Year's party now, HAPPY NEW YEAR ... cheers!
FYI: Here is my log from my final test.Notice the following:
1) At ID 125 my N9 macro fired via motion turning on my kitchen lights at 10:30 PM
2) I went in and out of the kitchen and notice all the N9 ON commands, these were ignored by my macro due to the FLAG status
3) IF my EE were set to DARK ONLY, this unit would have rec'd an OFF command at 10:34 PM, it is on a four minute delay.
4) Notice at the end, ID 147, it turned off nearly 4 minutes exactly at 10:36 PM from the LAST ON transmit at ID 145.
The
accurate time is on the same line as the ID number, b/t/w, the TIME:xxxx value is from the unit itself which is wrong, don't know why.
Hope this helps!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 125 12/31/2008 10:30:51 PM
RF N9 On (0 ) Time: 1/1/2009 3:30:51 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 126 12/31/2008 10:30:52 PM
RF N9 On (-1 ) Time: 1/1/2009 3:30:51 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 127 12/31/2008 10:30:53 PM
PLC M2 Bright (25 ) Time: n/a P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen Hi-Hat Lights
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 128 12/31/2008 10:30:54 PM
RF N10 Off (0 ) Time: 1/1/2009 3:30:54 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 129 12/31/2008 10:30:55 PM
RF N10 Off (-1 ) Time: 1/1/2009 3:30:55 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 130 12/31/2008 10:30:55 PM
PLC N10 Off (n/a) Time: n/a P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 131 12/31/2008 10:32:01 PM
RF N9 On (0 ) Time: 1/1/2009 3:32:01 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 132 12/31/2008 10:32:02 PM
RF N9 On (-1 ) Time: 1/1/2009 3:32:01 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 133 12/31/2008 10:32:03 PM
PLC N9 On (n/a) Time: n/a P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 134 12/31/2008 10:32:15 PM
RF N9 On (0 ) Time: 1/1/2009 3:32:15 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 135 12/31/2008 10:32:16 PM
RF N9 On (-1 ) Time: 1/1/2009 3:32:15 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 136 12/31/2008 10:32:17 PM
PLC N9 On (n/a) Time: n/a P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 137 12/31/2008 10:32:22 PM
RF N9 On (0 ) Time: 1/1/2009 3:32:22 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 138 12/31/2008 10:32:23 PM
RF N9 On (-1 ) Time: 1/1/2009 3:32:22 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 139 12/31/2008 10:32:24 PM
PLC N9 On (n/a) Time: n/a P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 140 12/31/2008 10:32:28 PM
RF N9 On (0 ) Time: 1/1/2009 3:32:28 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 141 12/31/2008 10:32:30 PM
RF N9 On (-1 ) Time: 1/1/2009 3:32:29 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 142 12/31/2008 10:32:31 PM
PLC N9 On (n/a) Time: n/a P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 143 12/31/2008 10:32:35 PM
RF N9 On (0 ) Time: 1/1/2009 3:32:35 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 144 12/31/2008 10:32:36 PM
RF N9 On (-1 ) Time: 1/1/2009 3:32:35 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 145 12/31/2008 10:32:37 PM
PLC N9 On (n/a) Time: n/a P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 146 12/31/2008 10:36:24 PM
RF N9 Off (0 ) Time: 1/1/2009 3:36:24 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID: 147 12/31/2008 10:36:25 PM
RF N9 Off (-1 ) Time: 1/1/2009 3:36:24 AM P1: n/a EXT: n/a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Kitchen EE Unit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ALERT: 3+ alert! W/T/F? N9 had 17 transmits in a row! Was that necessary?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~