If the devices are already hard-wired, you should have a look at Hubduino. An ESP8266 is quite inexpensive.