Why does my MacBook Air occasionally become extremely dim after being idle?
With the information provided my Initial impression points to your "Energy Saver" preferences where the "Automatically reduce brightness before going to sleep" option is enabled. The dimming not occurring before 30 mins is likely due to the "Computer Sleep" settings your MacBook Air is set to.