I would get a Z-Wave daughter board and use Z-Wave devices for controlling the electronics. Z-wave devices aren't Internet connected so you only have to worry about locking down the Pi.
Apparently there's already an open source project called Home Assistant for this purpose.
Apparently there's already an open source project called Home Assistant for this purpose.
https://home-assistant.io/