VPN/Proxy erkannt
Es scheint, dass Sie einen VPN- oder Proxy-Dienst verwenden. Bitte beachten Sie, dass die Nutzung eines solchen Dienstes die Funktionalität dieser Webseite einschränken kann.
-
There seems to be something wrong with latest firmware versions (tested on 1.6.1 and 1.6.2) while trying to pass headers in an HTTP GET Request.
Here is the request part of the script:
let h = { "Authorization": CONFIG.token };
Shelly.call(
STRINGS.httpRequest,
{
method: STRINGS.httpGet,
headers: h,
url: deviceApiUrl,
},
function (res, errorCode, errorMessage, ud) {
print(errorCode + " " + errorMessage);
if(errorCode == 0) {
print(res.body);
let r = JSON.parse(res.body);
let state = r.attributes.isOn;
print(state);
}
}, null);
Alles anzeigen
While on 1.5.1 I get an error message because the header is too long, on 1.6.1 and 1.6.2, this same script returns:
-114 -2: No headers received
Any help appreciated. I am trying to interface directly with a Dirigera Zigbee hub and it uses a very large authentication token in the requests. I was under the impression that the length of each header was bumped to something like 1K... What am i missing here?
Thanks!
-
Did you find a solution?
I'm stuck at the same problem, need to get some parameters from HA since I want to controll a heater mixer with the shelly. And the logic should be intentionally implemented within the shelly to eliminate overheating of the floor if HA is not available
I have the same problem, in a similar situation. In my case I am trying to change the state of a light connected to the IKEA Dirigera hub. My token is way too long (around 450 bytes) are I guess only a firmware change will solve this specific problem. 
I have been using several Shelly I4 wired to my wall switches to control my Ikea smart lights currently connected to Philips hue hub. But my problem is that I would like to keep the functionality of my Ikea remotes but the Philips hue hub forgets them after a few days and they stop controlling the hub connected lights. Putting the lights under the Ikea Dirigera hub would solve my remotes issue but now the shellys can't talk to the Ikea hub beacause of huge token length... 