I have openhab running on an old laptop on our LAN. It is reading from sensors and can send commands to lightbulbs and power sockets.
For power sockets I am using belkin wemo.
For lightbulbs i am using mi.lights from wifilights.co.nz with a wifi bridge.
For sensors, so far, i have the netatmo hooked up.