Switch with on action command, gives error
Posted: Wednesday 23 May 2018 21:13
Hi,
I'm quite new to all this and don't seem to be able to figure this little thing out:
I have created a (virtual) switch, when I click on it, all it has to do is start a JSON command:
http://127.0.0.1:8080/json.htm?type=com ... Up&level=0
So, I figured I have to put this url in the "ON ACTION" section.
But when I click on the switch, nothing happens and the logs give an error: "error opening the url"
However, this url works perfectly initiating the right command when I open it in the browser.
I run the newest version of Domoticz...
Has anyone any idea how to correctly put a JSON command in the On Action section? Or is this not possible?
I'm quite new to all this and don't seem to be able to figure this little thing out:
I have created a (virtual) switch, when I click on it, all it has to do is start a JSON command:
http://127.0.0.1:8080/json.htm?type=com ... Up&level=0
So, I figured I have to put this url in the "ON ACTION" section.
But when I click on the switch, nothing happens and the logs give an error: "error opening the url"
However, this url works perfectly initiating the right command when I open it in the browser.
I run the newest version of Domoticz...
Has anyone any idea how to correctly put a JSON command in the On Action section? Or is this not possible?