Also, since you’re just getting started, you might be interested in the device class features FAQ. The light switch discussion starts around post 40 in that thread (this is a clickable link)
Also, check out the quick browse lists in the community – created wiki, in particular the project report section and the “get started“ list there. Lots of good ideas and resources.