Announcement

Collapse
No announcement yet.

Arduino sketch to talk ethernet to HST interface for device control and status

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Arduino sketch to talk ethernet to HST interface for device control and status

    Arduino HSTouch client proof of concept
    looking to this as a posible way to tie Arduino to HS over Ethernet
    sketch attached



    This sketch connects to Homeseer via the HSTouch ip interface.
    It has a button and a led tied to a HS device.
    The button sends a device toggle command and the led shows the state
    of the HS device from HST incoming messages.

    This is proof of concept so code is not pretty.
    I'm just trying to understand the protocol and do some stability tests currently

    - no error checking
    - does not process ACK's so sent commands are not verified
    - Delays in code for testing and due to no ACK support yet
    - device number hard coded
    - User/Pass hard codded for now


    So far it works pretty well. Code is fairly well self explanatory,
    press button and HS device changes, HS device status changes and HS updates
    led with device change message.
    Attached Files

    #2
    Were you able to get any further with this?

    Comment


      #3
      Originally posted by NeverDie View Post
      Were you able to get any further with this?
      Yes It has been working for me over the last 2 months or so. The low level function have not really changed as they worked, I just wrapped them in a transport library to keep it clean. It need a little clean up but if you want to try it just PM me and I will send you a copy.

      Comment


        #4
        Are you doing this using HSPRO (i.e. HomeSeer 2.x)?

        Comment


          #5
          Originally posted by NeverDie View Post
          Are you doing this using HSPRO (i.e. HomeSeer 2.x)?
          Yes my production box is HSPRO 2.X. IM in process of converting to V3 so my Dev box is V3.

          Comment

          Working...
          X