Sonoff ZBMINIR2 driver

In your use case scenario, the Relay Detach Mode will not be effective - actually, you are using a form of a detached relay mode already.