oddly - I've been toying for days now with just such a thing. take a look at :
@OldChicagoPete recently added a virtual switch to enable disable, so you could set your ramp up (I offset my sunrise ~29 mins for twilight) . It might be possible to use this app to accomplish your goal, using the virtual switch to toggle it on and off with a rule(s) at the times you want.