I'm pretty new to electrical but I'm pretty sure I wired this correctly. The box has a bunch of wires stuffed in. I have 3 WHITE wire that were screwed together, 2 BLACK wires pigtailed, 1 Red Wire and 1 Green (Ground).
I connected everything as shown in the picture and the light won't turn on. There is power to the switch as it is all set up and connected to Wi-Fi. It switch clicks for on and off but the light never turns on.
Any help would be greatly appreciated. Thanks!