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.
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.
Comment