bwoodfl Posted January 30, 2014 Posted January 30, 2014 Hi, I just got my UBI (www.theubi.com) it seems to work pretty good. I am trying to see if there is a way to have the UBI control my lights, etc through my ISY. I don't know much of anything about programming, the UBI can make http Get and POST commands but I don't know what that is. Is that something that would work with my UBI? Several months ago, I sent Michael a link to the ubi and he contacted the designers of the ubi, but I don't know if anything came from that or not. Is this possible to do? Thanks, Bill
garybixler Posted January 30, 2014 Posted January 30, 2014 Hi Bill Yes you can have the Ubi send HTTP Rest commands to the ISY to control your Insteon and other devices. Here is an example for turning a light on. (http://user:pass@your Internet address:port/rest/nodes/1F F7 5C 1/cmd/DON) At this time you would need to enter your Internet ISP address and port number to the ISY as the Ubi doesn't do local HTTP but may in the future. Gary
bwoodfl Posted January 30, 2014 Author Posted January 30, 2014 Hi BillYes you can have the Ubi send HTTP Rest commands to the ISY to control your Insteon and other devices. Here is an example for turning a light on. (http://user:pass@your Internet address:port/rest/nodes/1F F7 5C 1/cmd/DON) At this time you would need to enter your Internet ISP address and port number to the ISY as the Ubi doesn't do local HTTP but may in the future. Gary Hi Gary, Thanks, but I need more help. Not sure about programming much. Would this be correct: http://user:pass@XX.XXX.XX.XX:80/rest/nodes/26 4A 66 1/cmd/DON Not sure what port to use (80) Does that go as http request GET or POST? If it is post which of the following: Text URL encoded json xml This is the Custom Behavior Screen Any help or explanation would be appreciated. Once I get the idea in my head I think I would be ok. Thanks, Bill
garybixler Posted January 30, 2014 Posted January 30, 2014 Hi Bill Your custom behavior is correct except there should be a space between 66 and 1 in your nodes. This would be a GET command which is the default. Also it probably would not be a good idea to use port 80 as your router may assume it is for him. I use port 5010 and you would need to forward that through the router to your ISY's local address. And also configure the ISY to reflect that port as well or translate port 5010 to 80 in the router if you want to keep 80 as your ISY port.
Recommended Posts