Objective dim or brighten a light over a period of 30 minutes.
This uses 2 macros programed with the AHP software.
First you will need to determine what the minimum brightness that is visible for your light at night. This will likely be higher than you think. Let's say for example that your light is no longer visible at 10%. It could easily be higher but this is a good figure for this example. This will mean your dusk range will need to be from 100% down to 10%. Likewise your dawn range will be from 10% to 100%. That means for this example you have a range of 90 to divide by 30 min or 15 every 5 min. So this is how I would do it...
Dusk P11 On (C9) Steven Lamp
Brighten then dim to 98% ;Absolute setting of 98% brightness
Delay for 05:00
(C9) Steven Lamp Dim by 15% ;relative dim by 15%
Delay for 05:00
(C9) Steven Lamp Dim by 15%
Delay for 05:00
(C9) Steven Lamp Dim by 15%
Delay for 05:00
(C9) Steven Lamp Dim by 15%
Delay for 05:00
(C9) Steven Lamp Dim by 15%
Delay for 05:00
(C9) Steven Lamp Dim by 15%
(C9) Steven Lamp OFF ;If you are not using a soft start module, omit this step
;and say a prayer that you don't have a power interruption
Dawn P12 On (C9) Steven Lamp On ;Omit if not using a soft start module
(C9) Steven Lamp Brighten by 15% ;relative brighten by 15%
Delay for 05:00
(C9) Steven Lamp Brighten by 15%
Delay for 05:00
(C9) Steven Lamp Brighten by 15%
Delay for 05:00
(C9) Steven Lamp Brighten by 15%
Delay for 05:00
(C9) Steven Lamp Brighten by 15%
Delay for 05:00
(C9) Steven Lamp Brighten by 15%
Delay for 05:00
(C9) Steven Lamp Brighten by 15%
Keep in mind that the percent "dimming" or "brightening" is an incremental amount of full brightness and not based on the current light level. i.e. Unlike your elementary math problem where a 10% loss of money from a starting point of $100 would leave you with $90 followed by another 10% loss of money leaving you with $81, a 10% dim from 100% is 90% followed another dim of 10% is 80%.
( This piece of trivia presented for all the math teachers out there.
)
If the above light change is too abrupt, use increments in smaller amounts with a shorter delay between the increments.
e.g. A 3% change every minute. I don't think a change this small would be noticeable at least not for most lighting situations for most people. That said, the perceptional change may not be linear. i.e. A 3% increase from a level of 10% light may be more noticeable than from 95% to 98%.
For any other arrangements, I'll leave the math to you.
Now simply program an on time for each macro and there you have it.
Teaser: A smaller looping macro could be made to handle dusk and dawn but the above is easier to understand. The looping macro would need an exit built in with flags or time. A timed window approach would be the easiest but would only work for a regular wakeup time. One using flags would be a lot trickier and might involve the using so many else macros that the above would be more practical.