Beiträge von D4rio
-
-
Hello,
I have a UNI device, and I need to check the status of each channel via REST API. The official documentation (Shelly Uni: /relay/{index} – API Reference) states that the sequent HTTP request should be sent:
<SERVER_URL>/device/relay/{IDX}?auth_key=XXXX&id=XXXX
However, when I send the request I get error 404 "Requested method was not found" for any index value.
I tried both GET and POST, and I got the same error 404.
If I omit the index, I receive a simple JSON with just isok=true, nothing else.
The only working HTTP method currently is the status request:
<SERVER_URL>/device/status?auth_key=XXXX&id=XXXX
Which, on the downside, yields more info than needed.
What am I doing wrong with the relay API call? Is this a bug?