To make that work, I think you’ll need to use TWO switches. One inline (and hidden) that controls the power on the light itself, and the other visible but not actually powering the light. Instead, the visible one will send commands. If you hook up Hue lights, that the visible would be programmed to send hue on/off/color changes. If you hook up dumb lights, it sends on/off/dim to the inline switch.