I'm trying to replace old dimmer and timer (sitting side by side) with new Leviton dimmer and Lutron timer, however the box got me confused as it appears all neutral white wires are tied together in one nut and are not attached to anything - please see picture. There are also white wires coming out of top and bottom on the left switch..How do i go about connecting the dimmer and timer? Dimmer has ground (green), red and black. Timer has red, ground, white and black wires.
On the left dimmer - I tried to connect red wire from new dimmer to red and black from the box (circled top left on the pic in red/black).
I also connected black wire from the box (circled in black) to black wire on the new dimmer.
On the timer on the right - I connected black wire from box (circled in black) to the white wire on the new timer and then I connected black wire (circled on the bottom left in black) to the black wire on the new timer.
I also connected red wire from new timer to red wire on the dimmer switch on the left as there is no red wire coming out of the box on the right for some reason.
Grounding wires (green) both are connected to each of the box's screws - on the left and right of the pic.
When I made connections, i lost some power in nearby locations i.e. bathroom and some kitchen outlets.