You are a good nephew. I love when Perl can help people in real life.
Have you run into MisterHouse? It's specifically for home automation and written in Perl. Seems like it just needs perl and your customized routines. Not sure about device support.