If it's just the coming home function, and you've got the highline display, then it's an easy fix through the convenience menu.
If lights don't come on when it gets dark (or in a tunnel etc), then it's possibly the sensor behind the interior mirror. Have you by any chance just had a new windscreen? There's a thread on here somewhere where the replacement caused problems with autolights.
IIRC, there's a light sensor inside the car as well.
Failing that, then I'm sorry I haven't a clue.