Use a non-ip based automation tech. ZWave, zigbee, insteon, knx and RadioRa2 are popular choices.
Pick a controller that doesn't need the cloud. Hubitat, HomeSeer, ISY994 and HomeAssistant are likewise popular. These controllers at most need internet access for initial set up and software updates.
You can lock them down completely or open specific ports for emails, remote access, etc.
Read the wiki. Its full of terms and info you can use as jump off points.
https://www.reddit.com/r/HomeAutomation/wiki/index/