I have a cable modem with the ethernet connected through a Trendnet (TEG-S5g) switch on the way to my router. I have a plugin Caseta dimmer set to on / off mode and it powers the Trendnet switch. I can use the pico remote or the Lutron app on my iPhone to turn on and off the house internet. I have automation set up on the Lutron app to shut off the wifi at night and turn it on in the morning. I can shut down the wifi remotely (using Homekit), but can't turn it back on remotely, since I need the internet connection for that (having the automation insures that it will turn itself on within a day).