Trying to write a device handler to integration with local network service. I have been beating my head trying to get a local http call to work, but so far nothing. My command method is getting called, and I am returning a HubAction from the method, but the http request is never made. I know my service is up and I can make a curl request and get the expected response.
Here is the code that creates and returns the HubAction, my DNI is set to the hex version of the IP:PORT I have also tried the mac, so far nothing has worked.
Hmm, I think i may have found the issue. The service I am trying to hit is on another subnet within my network, but accessible. If I start the service within the same subnet then it works as expected, so i’m guessing Smartthings is not sending the request to devices not on the same subnet.
That was definitely the issue. It appears Smartthings cannot send a local network request to another subnet.
I setup a raspberry pi to run my service and put it on the same network and it works great.
So many small unknowns in the platform.
I tinker with my hub off and on, so maybe this has been answered, but is any of the Smarthings code or ecosystem open to contribute to, even documentation to help improve this vs. scouring forum posts?