Your dimmer approach should work without problem.