Wiring – 3 Cables in Switch Box and Can’t Figure it out

ceiling-fanlightingwiring

I had a ceiling fan with light in a cabin that I bought. It did not work when we bought it. I've replaced the fan, but the light doesn't work. The wall switch has 3 cables inside. Attached is an actual picture and also a diagram of what's inside the box (the diagram does not include the copper grounds which are twisted all together). I think that one of these cables goes to a nearby wall outlet, one goes to the fan, and one is to the circuit box. But I'm not sure how to determine which goes where. I have wired this thing up a couple times and can get the fan to spin but never can get the light to come on. (yes I've made sure the pull switches were tested too). The wall Switch is one of those Lutron Fan and Light switches. Can someone please help guide me on this?

rendering of what's inside the box

Actual image of the box

Best Answer

I'm going to guess that the upper left wire is the fan/light, and the lower right cable is the outlet. If this is correct, then this is how you need to wire it up:

enter image description here

If the fan and light don't work, try reversing the red and black wires connected to the FAN and LIGHT terminals of the switch.

If that still doesn't work, you'll need to identify the cable bring power to the box. If it's not the cable in the upper right, then you'll need to investigate the wiring in the fan box or the outlet box to make any progress.