I’ve spent hours trying to get this working, and it’s very difficult because SmartThings doesn’t return any debugging data associated with a GET request. (My ultimate goal is to make a PUT request, but I can’t even get a basic GET request to work )
All I want to do is make a get request to a local server, which returns some JSON. This request is working fine using curl & the browser.
and it’s finally working. I needed to include the port in the host, for some reason. Unfortunately it’s still not calling the “parse” method, but debugging that is a whole other issue.
The dni must be either the Mac address for responding device or IP:port in hex. This allows the cloud to route hub replies to the appropriate device handler.
Hi @pstuart The DNI is currently set to the Mac address (eg. C1:23:EB:EC:24:11). The documention recommends against using the IP:port:
For dni, we recommend using MAC address and not use IP and port numbers.
According to the documentation, HubAction takes in a DNI as a paramater, and the default value is null. Maybe passing it in there will work, I’ll have to test this tomorrow.