I am guessing that is a powerboard - which is almost as bad an idea as its connection to your power outlet - it may be undercover , but being outside it will become a home to ants or other insects
and unless you run a VPN server which you use to access your home network and then control your "wifi switch" , you have a exploitable hole in your routers firewall which is probably already logged on the Shodan Search Engine