Home assistant (https://home-assistant.io/) combined with zwave devices gives you an open source controller and a LAN only network of things. You can also to in to hundreds of existing devices/platforms. The platform is growing rapidly in capabilities and integrations.