HomeKit work without any internet connection. But, you won't get access to Siri, Automations, and HomeKit devices that use the cloud.