zsima Posted August 9, 2019 Posted August 9, 2019 Hi: I am fairly new to isy and have what to me seems like a simple question. I have the isy set up and controlling many devices. At the same time I have Homeseer running mainly for some legacy purposes and for some easy Graphical user interface. I would like to have isy send the following JSON to Homeseer http://192.168.1.218/JSON?request=controldevicebyvalue&ref=4608&value=100 what modules if any do I need to get for this to be able to be done? and exactly how would I go about doing this? Thanks in advance for any advice.
larryllix Posted August 9, 2019 Posted August 9, 2019 @zsima You would need the Network Resources module. This is simply an enable code from UDI after purchase via inside your Admin Console. Here is a screen shot of one I use using variables to insert values into the header.
paulbates Posted August 9, 2019 Posted August 9, 2019 Welcome to the UDI forums zsima! To follow Larry's advice above... you buy the Network Module by going to the help/purchase modules menu option in the Admin Console Paul
zsima Posted August 10, 2019 Author Posted August 10, 2019 Thank you both for your replies Larry, if you do not mind can you show me a screenshot how my example of http://192.168.1.218/JSON?request=controldevicebyvalue&ref=4608&value=100 would be entered into network resiurces?
larryllix Posted August 10, 2019 Posted August 10, 2019 1 hour ago, zsima said: Thank you both for your replies Larry, if you do not mind can you show me a screenshot how my example of http://192.168.1.218/JSON?request=controldevicebyvalue&ref=4608&value=100 would be entered into network resiurces? This is just a guess as there are many ways to create NRs, dependant on the protocol requirements at the server end, but....
zsima Posted August 11, 2019 Author Posted August 11, 2019 Larry Thank you very much for your reply, Is there any detailed documentation as to how to use network resources? I am able to copy your screen as far sas Host, port, path is concerned but when I try use ADD I am given a list of choices and am not sure how to get the exact details correct. The documentation in the Wikki pages are all pretty sparse.
larryllix Posted August 11, 2019 Posted August 11, 2019 5 minutes ago, zsima said: Larry Thank you very much for your reply, Is there any detailed documentation as to how to use network resources? I am able to copy your screen as far sas Host, port, path is concerned but when I try use ADD I am given a list of choices and am not sure how to get the exact details correct. The documentation in the Wikki pages are all pretty sparse. It's been a while since I have created a NR. I don't know of any better instructions. I don't remember seeing any list of choices. The Add button is to create a new NR and then you need to edit the pseudo name for it. After you would d.click on the right side of the chart to edit the parameters on the page, I have been showing the screenshots of. When you are done you MUST save the NR before it is actually installed, and before you can test the NR. Briefly GET is the most common style of call where all the information is contained in the URL line. POST is where the information is installed in the chart below and cannot be seen in the URL by prying eyes. This is dependant on what the device demands to communicate. Success can be measured by the response shown, whether N/A or OK, etc., and whether the device does something. ISY cannot decode and interpret complex responses some equipment would respond with. I cannot help you much more than the above. Perhaps somebody else can join in here with more knowledge of NR's and/or Homeseer protocol style.
zsima Posted August 11, 2019 Author Posted August 11, 2019 Larry thank you for all your help. If anyone can help with detailed instructions as to how to get NR to send a JSON. command to Homeseer I would really appreciate it. Larry as per attached screenshot , I got as far as creating the new NR , what I was referring to was after the NR is created I am not sure how to get the request into the header section.
paulbates Posted August 11, 2019 Posted August 11, 2019 Its likely a post and not a get. If so, don't put the actual request in the path. It will go in the body below. Here's an example of one that posts json to a service. You probably don't need SNI checked on your local server.. not sure if HS added that or not.
paulbates Posted August 11, 2019 Posted August 11, 2019 Another suggestion is to use the Postman windows app. You can experiment with building your rest calls more quickly to see what works. Then you create the NR based on what you get to work.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.