Fhem is a GPL'd perl server for house automation.