HomeKit sends commands from your iPhone or a Home Hub directly to the target smart devices over the local network, so it will continue to work normally when the internet is down. The only things you lose are Siri voice commands (which need Apple’s servers), and remote access.