michele.verda Posted September 11 Share Posted September 11 Hello. I'm trying to access data from a Philips Hue bridge. Testing with Postman I can get the GET values correctly. I have clearly set the hue-application-key in the header. If I try to replicate the same call in a Shelly script I receive the error -114-1: Connection error: -15 Here is the code I am testing: Shelly.call( "HTTP.Request", { method: "GET", url: "https://192.168.x.x/clip/v2/resource/grouped_light/xyxyxyxyxyxyxyx", headers: {"hue-application-key": "???????????????"} }, function (result, errorCode, errorMessage) { if (errorCode === 0) { console.log("Success. Result is:", result.body); } else { console.log("There was an error:", errorCode + errorMessage); } } ); Any suggestions on how to solve? Thanks in advance. Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
cLick Posted September 12 Share Posted September 12 Maybe your computer can reach the bridge but the Shelly device can't? Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
michele.verda Posted September 13 Author Share Posted September 13 Thank you for the answer. If I use the old API V1 the Shelly can reach the Bridge. Using the V2 API, that I need to use new functions, it doesn't work. Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.