Detached relay function to more sonoff switch devices

I suggest you can add this function to more sonoff switches and relays (like mini r2) so, you don´t have to change hardware to add smart lights.

A non-elegant way to obtain same behavior could be disconnecting live outputs and connects directly to live input so, power won´t get off when press buttons. And you smart switch can be converted in a scene controller, so you can create scenes to control your smart bulb.