First thing to do. Turn off electricity at fuse box for that circuit if you haven't all ready. We know that the green is ground, I beleive L is the white. Look at the package that the switch came in. The package may have paper instructions inside also. Most likely the wiring there is to control the fan/lights independantly.