Twist the three ground wires alongside one another in the very first box and secure them having a wire nut. Then, hook up the top of the shortest floor wire for the green terminal around the switch. ) You will also require a neutral wire, so it could be tricky https://smart-power-point19639.onesmablog.com/p-hub-system-an-overview-75488261