Most smart switches require a neutral (white) wire to maintain a Wi-Fi connection, but if your home was built before 1985 (or thereabouts), this might not be an option. If you fall into the latter ...