Twist the a few ground wires collectively in the first box and protected them having a wire nut. Then, link the top on the shortest ground wire on the eco-friendly terminal to the switch. Some smart switches have a dimmer purpose, to help you regulate the extent of the lights' https://safe-electrical-wiring33210.alltdesign.com/the-greatest-guide-to-smart-light-switch-white-clear-frame-53855525