more G-Labs products

Author Topic: Using generic serial port / virtual module  (Read 1004 times)

March 23, 2015, 03:59:42 AM
Read 1004 times

BruceS

  • *
  • Information
  • Newbie
  • Posts: 13
I am new to HG and I am converting an old home automation server.   I have an old Ocelot/Adicon 2500 controller that polls the dry contact status of all the doors in my house.  I used the HG generic serial example to successfully create the attached program that reads the Ocelot serial port to log and speak the door events.    Could someone guide me on how to make each door look like a virtual module so I can view the door status as a widget?  Could I then associate a door icon to it? 

March 23, 2015, 04:21:29 AM
Reply #1

enterprised

  • ****
  • Information
  • Sr. Member
  • Posts: 101
  • Things are only impossible until they are not
Have a look at the Alarm Sensor code in the attachment from this post.
It does exactly what you look for but for a different alarm system. With some modification the code could be made to work for you.

http://www.homegenie.it/forum/index.php?topic=741.0
4a 75 73 74 20 61 20 70 65 72 73 6f 6e 20 68 61 76 69 6e 67 20 66 75 6e 20 77 69 74 68 20 68 6f 6d 65 20 61 75 74 6f 6d 61 74 69 6f 6e
enterprised == guytpetj

March 24, 2015, 03:18:24 AM
Reply #2

BruceS

  • *
  • Information
  • Newbie
  • Posts: 13
Thank you for the lead.  That was helpful.  It took some effort but I've got a test version working based on the Alarm Sensor.  I can post my results when I clean up and test my code a bit further.