(I edited this 24 hours after posting, think I solved my problem, leaving for reference :-)
Here's what I would like, seemingly stupid in its simplicity but took me a bit of tinkering:
1) Lights in kitchen stay at 15% brightness at all times after dusk and before 10AM.
2) When I walk in the kitchen, and the lights are at 15%, lights to go to 55% or brighten 40%
3) When the kitchen is idle for 4 minutes, return to 15%, lights dim 40%
SETUP
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EE MS14A set on E3 with 4 min delay activity 24 hrs | Named: Kitchen EE
Hi Hat lights with RWS17 (dimmable) | Named: Kitchen HiHats
AHP CM15A
SmartMacro#1 | Code: E3 | Named: "Kitchen EE ON" <- My naming convention EE=Eagle Eye and ON=RF ON Code rec'd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If after dusk and before 10AM AND Flag 2 OFF Then
Brighten Kitchen Hi-Hats 40%
Set Flag 2 ON
SmartMacro#2 | Code: E3 | Named: "Kitchen EE OFF" <- My naming convention EE=Eagle Eye and OFF=RF OFF Code rec'd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If Flag 2 ON
Dim Kitchen Hi-Hats 40%
Set Flag 2 OFF
(FYI: I have a 10AM macro that turns all lights off since I'm usually out of the house by then)
Discussion
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If anyone walks in the kitchen, E3 sends the RF ON code, firing "Kitchen EE ON"
Check for time (between dusk and 10AM) if so, continue.
Check for Flag 2 OFF, if it's off, then we have dimmed the lights, so they need to be raised
Raise Hi-Hats 40%
Set Flag 2 ON (ON for Flag 2 basically means we have brightened the lights)
4 minutes go by and noone is in the kitchen, so E3 sends the RF OFF Code, firing "Kitchen EE OFF"
Check to see if Flag 2 is on (only on if we brightened the lights)
Dim Hi-Hats 40%
Set Flag 2 OFF (OFF for Flag 2 basically means we have dimmed the lights)
Notice: I don't care about the time condition on the Kitchen EE OFF macro since if the FLAG is ON, then we did that work testing time already :-) And after 10AM, Flag 2 will not get set to ON again until after dusk so once E3 fires its final RF OFF code anytime after 10AM, no time test needed on that.
Finally, I'm working on a "global flag" thing that will set A16 on or off depending on if I am home or not based on my exit mode from the house (that's going to be a sensor on the garage door that only fires when it goes up) but that's in progress ... any ideas from anyone would be nice :-)
Nagging Questions For Me ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--> Is there a way to test for BRIGHTNESS level of the light? I mean, of course, this macro is disturbed if someone changes the brightness level while in the kitchen temporarily (guests tend to do this). Or do I have to set the ON/OFF function for modules and then brightness there? This then takes lights to full power then pulls back to the desired level, this flashing is not as cool as a dim/brighten from current level :-)
--> Testing for lights "ON" does not seem to help with brightness/dim levels, am I missing something?
--> How do I test for "inactivity" or no motion? Alternatively, how do I get "MODULE STATUS" for a sensor? For example, Sensor E3 is in wait mode after sending ON RF and has 2 min 12 sec left until inactivity mode. Is the activity log available to other applications or stored somewhere I can parse it with an application I can write on XP? I have a CM19A that seems to be receiving transmitted codes in the house (A MUST FOR DEBUGGING and TESTING!!) so can I get that activity log into another program or an SQL DB? How about sending codes on my own without having to use the CM15A via the CM19A? This may be stupid question, but I have no docs on anything (my girlfriend threw out the box I had in the garage with ALL MY DOCS in it!!).
ULTIMATELY ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I could write in VB or C or something, but how do I get that in the interface? Is this thing running on Assembler or what? How do we get down to the lowest level of this thing to make it do what we need?
Thx in advance!!