DomoticHome is a project mainly written in ..., it's free.
Make domotic easier with Teensy and/or Arduino