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?
Switch with on action command, gives error
Moderator: leecollings
Switch with on action command, gives error
Last edited by jhbackus on Wednesday 23 May 2018 22:02, edited 1 time in total.
Re: Switch with on action command, gives error
Did you add 127.0.0.1 to your 'local network' settings?
Re: Switch with on action command, gives error
Thanks, that was it!