Flickering bulbs, Aeotec, and luck?

You might read this wiring it might help your understanding of the wires.

John