Or a dynamo system
Of course, if you went with a dynamo-powered headlight, you would get the automatic on/off feature you'd like, and there are no batteries to run down. I don't recall reading about dynamo-powered lights that give a good daytime-visible flash, however.