OK, here is my workaround, which seems to work before and after midnight (I'm pretty convinced that my explanation above is correct). The problem was related to a flaw in the "Its nightime" condition which uses "Its after dusk, OR its before dawn". The problem is the OR is combined with the flag check (which is supposed to be AND). There is no way to do this combination in one limb, so I have split the nighttime into two limbs (flags off and after dusk ELSE flags off and before dawn).
C9 on
if on or later than dawn These two conditions added by using the "Its daytime" condition
and on or earlier than dusk
and flags 1, 2 off
delay 00:02 min:sec
C3 brighten by 100%
delay 00:02 min:sec
C3 brighten by 100%
delay 00:01 min:sec
set flag 2 on
C9 on
if flags 1, 2 off
and on or later than dusk
delay 00:01 min:sec
C3 brighten by 100%
delay 00:01 min:sec
C3 brighten first, then dim by 50%
delay 00:01 min:sec
set flag 2 on
C9 on
if flags 1, 2 off
and on or earlier than dawn
delay 00:01 min:sec
C3 brighten by 100%
delay 00:01 min:sec
C3 brighten first, then dim by 49%
delay 00:01 min:sec
set flag 2 on
C9 on
if flag 1 off
and flag 2 on
delay 00:02 min:sec
C3 off
delay 00:02 min:sec
C3 off
delay 00:01 min:sec
set flag 2 off
Yay! My simple macro works after many hours of troubleshooting!
Any comments?
Paul