Crews are working to restore power after thousands across Sydney woke up to a blackout.