Beiträge von DirkausAff
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.
-
-
:\Users\adm-lokal-bl.RMS-NB-046>curl -X POST "https://shelly-205-eu.shelly.cloud/v2/devices/api…1563A3F0XXXXXXX" -H "accept: application/json" -H "content-type: application/json" -d "{\"id\":\"c4d8d553d294\",\"channel\":0,\"on\":true}"
{"isok":false,"errors":{"invalid_token":"The login information is invalid! Please login again!"},"error":"UNAUTHORIZED"}Irgend was stimmt nicht mit d
-
-
-
-
curl -X POST "https://shelly-205-eu.shelly.cloud/device/relay/control" -H "Authorization: Bearer MzVlZDE2dWlkAFEC20604775A8FF8626671130A89D8992830B3ADAFECA1563A3F0E439F7327CF1419CCA2F0XX" -H "Content-Type: application/json" -d "{\"device_id\":\"c4d8d553d294\",\"turn\":\"on\"}"
gibt Antwort:{"isok":false,"errors":{"invalid_token":"The login information is invalid! Please login again!"}}
-
Hallo, schön so schnell eine Antwort zu bekommen.
Also der Request funktioniert, hier bekomme ich eine Antwort:
https://shelly-205-eu.shelly.cloud/device/status?auth_key=MzVlZDE2dWlkAFEC20604775A8FF8626671130A89D8990992830B3ADAFECXXXXXXXXXX&id=c4d8d553d2
Der hier nicht
curl -X POST "https://shelly-205-eu.shelly.cloud/device/relay/control" \ -H "Authorization: Bearer MzVlZDE2dWlkAFEC20604775A8FF8626671130A89D8990992830B3ADAFEXXXXXXXXXX" \ -H "Content-Type: application/json" \ -d '{ device_id: "c4d8d553d294", turn: "on" }' Edit Moderation: AUTH Key anonymisiert
-
Hallo, ich kenne mich nicht so gut aus, ich wollte mein Shelly Plus Uni per https Request über die Cloud abfragen und steuern. Abfrage über url im Browser funktioniert, deshalb gehe ich davon aus das API-Key und ID stimmen. Beim Schaltbefehl über post (Chat GPT sagt ich soll es zuerst mal über Curl probieren), kommt die Fehlermeldung, dass der API Key nicht aktzeptiert wird.
Grüße
Dirk