How to replace a single light switch with an electric dimmer switch
Technically that is the wrong switch for what its doing. That switch is designed to isolate both the incoming live and neutral. However i can see it has been jerry rigged per se as the incoming live and neutral at the top has been bridged to serve another purpose. You are going to have an issue with it. Are you able to indicate which of those cables goes where?