Page 1 of 1

Switch with on action command, gives error

Posted: Wednesday 23 May 2018 21:13
by jhbackus
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?

Re: Switch with on action command, gives error

Posted: Wednesday 23 May 2018 22:01
by SweetPants
Did you add 127.0.0.1 to your 'local network' settings?

Re: Switch with on action command, gives error

Posted: Wednesday 23 May 2018 22:46
by jhbackus
Thanks, that was it!