I am try to configure a Shelly2.5 via HTTP requests from a custom application.
Most of it is working fine, but I am having an issue with setting a URL for ‘out_on_url’ (and others).
In the below my PC is at 192.168.0.10 and the Shelly2.5 is at 192.168.0.73
I need to pass multiple parameters on the url (eg http://192.168.0.10:14001/relaychange?de…elay=0&state=on).
If I enter the URL in the web interface it works correctly, however if I try to set it remotely via HTTP (eg http://192.168.0.73/settings/actio…abled=true&urls[]=http://192.168.0.10:14001/relaychange?devicename=shelly25_001&relay=0&state=on), it stops at the first “&” in my url, only setting to (http://192.168.0.10:14001/relaychange?de…me=shelly25_001), after which the shelly also stops actioning the URL until changed via web interface and rebooted.
I have tried enclosing the url part in double quotes (eg http://192.168.0.73/settings/actions?index=0&name=out_on_url&enabled=true&urls[]=”http://192.168.0.10:14001/relaychange?devicename=shelly25_001&relay=0&state=on”), but it then includes the first double quote in the url set, and still stops at the first & in my url ( ie "http://192.168.0.10:14001/relaychange?de…me=shelly25_001)
I have also tried (http://192.168.0.73/settings/actions?index=0&name=out_on_url&enabled=true&"urls[]=http://192.168.0.10:14001/relaychange?devicename=shelly25_001&relay=0&state=on") but that hasn’t worked either.
Can someone assist me and show how I need to format the “settings/actions” request to pass a url that includes an embedded &, as everything I have tried seems to be taking the first & in my url string as the next & in the settings/actions request