If I activate it the light just turns on without flickering, I tried using normal timers, I tried it without states, I tried it with global variables and I'm just stuck quite frankly.
:state=0:lightoff,state=1
:state=1,activated=1:localvar=0,state=2
:state=2,varequal=0,etimergreater=200:lighton,lightintensity=0,etimerstart,incvar=1
:state=2,varequal=1,etimergreater=200:lightintensity=20,etimerstart,incvar=1
:state=2,varequal=2,etimergreater=200:lightintensity=25,etimerstart,incvar=1
:state=2,varequal=3,etimergreater=200:lightintensity=30,etimerstart,incvar=1
:state=2,varequal=4,etimergreater=200:lightintensity=35,etimerstart,incvar=1
:state=2,varequal=5,etimergreater=200:lightintensity=40,etimerstart,incvar=1
:state=2,varequal=6,etimergreater=200:lightintensity=20,etimerstart,incvar=1
:state=2,varequal=7,etimergreater=200:lightintensity=50,etimerstart,incvar=1
:state=2,varequal=8,etimergreater=200:lightintensity=55,etimerstart,incvar=1
:state=2,varequal=9,etimergreater=200:lightintensity=20,etimerstart,incvar=1
:state=2,varequal=10,etimergreater=200:lightintensity=65,etimerstart,incvar=1
:state=2,varequal=11,etimergreater=50:lightintensity=70,etimerstart,incvar=1
:state=2,varequal=12,etimergreater=50:lightintensity=80,etimerstart,incvar=1
:state=2,varequal=13,etimergreater=50:lightintensity=20,etimerstart,incvar=1
:state=2,varequal=14,etimergreater=50:lightintensity=100,etimerstart,incvar=1
:state=2,varequal=15,etimergreater=200:lightintensity=120,etimerstart,incvar=1
:state=2,varequal=16,etimergreater=300:lightintensity=140,etimerstart,setvar=0
:state=5:lightintensity=150
I appear to have burst into flames...