Hooray
Use all the parameters in the URL
@muneer I would be very happy if it worked, but this was the first test I had done, but it doesn’t work for me. Can you tell me if you did anything in particular?
Will send you the details when I’m back home.
Thanks, I can’t figure it out, I’m still testing but I can’t get it to work, I don’t understand what I’m doing wrong.
Maybe I can share the project with you to look for the error
This is how the full URL should look like
https://shelly-25-eu.shelly.cloud/device/relay/control?auth_key=XXXXXX1dWlkA7346C7C02D00A2803F9DA01D2061F3EXXXXXX74E52C07264554975660A35E61A6598134206A2B&id=XXXX9999XXXX&channel=0&turn=on
doesn’t work or rather I made a strange discovery.
It works with shared devices that you are not the direct owner of.
So it worked for you with the device I shared with you.
In fact, the response you receive is as follows.
{“isok”:true}
Instead the response from proprietary devices is as follows.
{“isok”:true,“data”:{“device_id”:“e8dbxxxxb098”}}
So in conclusion the solution that worked for you , does not work with proprietary devices that respond with the following error:
{“isok”:false,“errors”:{“wrong_channel”:“Could not control this relay channel!”}}
I sent you a PM with a working solution using your device ID and your authentication key.
Sample output
The solution is something I have suggested earlier but now I tried it myself and can conform it works.
I want to thank @muneer for your patience and the solution about my big problem
API Master Muneer!!!
Thank you for your nice compliment
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.