Depends on how you want to wire in the transformer. You could just wire a dumb switch or relay to the shelly and that can be used to turn off the lights. you could also program any control4 switch to turn them on or off. The dimmer module would only be to turn off power to the transformer which would be overkill and ideally you would not want to do that as the transformer is powering the shelly and since its wifi will take a moment to boot and connect before it will start responding to commands.