Skip to content
Lieven Hollevoet edited this page Sep 22, 2014 · 1 revision

Elk M1


This page will contain the information on integrating the Elk M1 into Misterhouse using ether the (built-in) serial port or the Ethernet interface (ELK-M1XEP).

This integration will require the Perl ElkM1::Control module (module support web page Elk M1 ).

To configure and use the Elk M1 just follow these directions:

Add the following to your //~mh/bin/mh.private.ini// file:

code

  1. Serial attached Elk M1
Elk_M1_serial_port = /dev/ttyS4
  1. Need info on Ethernet attached Elk M1
code

In your user code directory also create //~mh/code/elkm1.pl//: code format="perl"

     # Category=ElkM1
     #@ James A. Russo's ElkM1::Control Perl module
     # create a new Elk M1 Device instance
     $ip_patio_light = new ElkM1_Device($myELK,"A1");
     # Example use, turn the patio lamp at 10 minutes before sun set
     if(time_now("$Time_Sunset-0:10")) {
         $ip_patio_light->set("ON");
     }
     # Example use, turn the patio lamp off at midnight
     if(time_now "12:00 AM") {
         $ip_patio_light->set("OFF");
     }

code

More to follow (12/17/2007)


Clone this wiki locally