Hello,
I'm new to the forum and need some help. I have the smart macro plug-in. I want to set E5 (Front door lights) to come on at dusk every day (full power for now), at 10:30 pm Sunday thru Thursday turn down to 75% power, at 11:30 Friday and Saturday turn down to 75% power, off at dawn. Anytime the H6 (motion detector) sees motion during the turn down periods turn power up to 100% for 4 minutes then back to preset condition.
Question
1. Can I do this all from 1 smart macro or do I need to have timers, 1 for Sunday thru Thursday for dusk to 10:30, 1 for Friday and Saturday dusk to 11:30. Then a timer for each with the lower power til dawn. Then a macro for the motion sensor?
Thanks for the help!
There are a few ways to accomplish this, using a combination of timers and macros.
The timers would be used to turn the lights on at dusk, dim them at the appropriate time, and then turn them off at dawn.
The macros would be used to handle the motion-triggered activity. I think some of the motion sensors have an adjustable "timeout" period, after which they send the "off" command for whatever HouseCode/UnitCode they are set.
If you can set that timeout to 4 minutes, then the sensor will send the "off" command after it doesn't see motion for 4 minutes.
You would then create two simple conditional macros (on a different housecode/unitcode than the light switch).
The conditions for both would be based on the day/time of when you want the lights to be dimmed.
The "on" macro would set the light to full brightness. The "off" macro would dim it down to 75%.
If you can leave the 4-minute delay to the motion sensor, then you should get more reliable operation (since multiple triggers won't cause multiple delays to start, and your light won't keep dimming up and down.
One alternative would be to actually use a macro (activated by a timer) to dim the light and set a flag. You would then use another macro to turn the light off and clear the flag.
The flag could then be used as a much simpler condition for the motion-activated macros. (if the flag is set, then run the macro - if not, don't.)
Of course, this assumes you are using lamp modules (or wall switches) that are dimmable, and are using dimmable bulbs in them.
You COULD use a conditional macro with a flag or two, and integrate the delay right into the timer, but that's a lot more work.