This is a perl API I found for interfacing with the ELK M1 home automation system